summaryrefslogtreecommitdiff
path: root/python-anilius.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-10 07:53:29 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-10 07:53:29 +0000
commit98c8ba433f06f54ae582b588bd96581d3e80c9fc (patch)
treed16a264340555604bf7c9dfe6e52849d048b9314 /python-anilius.spec
parent3671d73fd1d0584f6c6306e44fe1c71a6a4a1e42 (diff)
automatic import of python-anilius
Diffstat (limited to 'python-anilius.spec')
-rw-r--r--python-anilius.spec72
1 files changed, 72 insertions, 0 deletions
diff --git a/python-anilius.spec b/python-anilius.spec
new file mode 100644
index 0000000..f6ad435
--- /dev/null
+++ b/python-anilius.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-Anilius
+Version: 2.0.3rc1
+Release: 1
+Summary: A high performance grpc micro framework based on python
+License: MIT License
+URL: https://github.com/Malivix/Anilius
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/38/c1/6b19022ad1bb7528b52c136242c00728e43c762e498fa124786e1210d9bf/Anilius-2.0.3rc1.tar.gz
+BuildArch: noarch
+
+
+%description
+# Anilius
+
+%package -n python3-Anilius
+Summary: A high performance grpc micro framework based on python
+Provides: python-Anilius
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-Anilius
+# Anilius
+
+%package help
+Summary: Development documents and examples for Anilius
+Provides: python3-Anilius-doc
+%description help
+# Anilius
+
+%prep
+%autosetup -n Anilius-2.0.3rc1
+
+%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-Anilius -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.0.3rc1-1
+- Package Spec generated