summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-muntjac.spec87
-rw-r--r--sources1
3 files changed, 89 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..4204d85 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Muntjac-1.1.2.tar.gz
diff --git a/python-muntjac.spec b/python-muntjac.spec
new file mode 100644
index 0000000..fe99306
--- /dev/null
+++ b/python-muntjac.spec
@@ -0,0 +1,87 @@
+%global _empty_manifest_terminate_build 0
+Name: python-Muntjac
+Version: 1.1.2
+Release: 1
+Summary: Web application GUI toolkit
+License: UNKNOWN
+URL: http://www.muntiacus.org/
+Source0: https://mirrors.aliyun.com/pypi/web/packages/fb/56/eba7e0c76762273fde8ed7d06714347e1beaf7a655875fd7d59a991f61f6/Muntjac-1.1.2.tar.gz
+BuildArch: noarch
+
+
+%description
+A web application GUI toolkit.
+Muntjac_ is a translation of Vaadin_ to the Python_ programming language. It
+is similar to GUI toolkits for desktop applications, such as PyQT_, wxPython_
+and PyGTK_. However, it can be used to create dynamic, browser independent,
+web applications. There is no need to write HTML, Javascript or RPC code,
+just server-side Python.
+
+%package -n python3-Muntjac
+Summary: Web application GUI toolkit
+Provides: python-Muntjac
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-Muntjac
+A web application GUI toolkit.
+Muntjac_ is a translation of Vaadin_ to the Python_ programming language. It
+is similar to GUI toolkits for desktop applications, such as PyQT_, wxPython_
+and PyGTK_. However, it can be used to create dynamic, browser independent,
+web applications. There is no need to write HTML, Javascript or RPC code,
+just server-side Python.
+
+%package help
+Summary: Development documents and examples for Muntjac
+Provides: python3-Muntjac-doc
+%description help
+A web application GUI toolkit.
+Muntjac_ is a translation of Vaadin_ to the Python_ programming language. It
+is similar to GUI toolkits for desktop applications, such as PyQT_, wxPython_
+and PyGTK_. However, it can be used to create dynamic, browser independent,
+web applications. There is no need to write HTML, Javascript or RPC code,
+just server-side Python.
+
+%prep
+%autosetup -n Muntjac-1.1.2
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-Muntjac -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..5c124ee
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+a5600167d8f8368f79c6c555903100b0 Muntjac-1.1.2.tar.gz