summaryrefslogtreecommitdiff
path: root/python-backend.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 10:10:38 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 10:10:38 +0000
commitf4438bb6dc73be5b77e8f15eb434c35352c0fd44 (patch)
tree900db601cc9a62f98076aaaba3f222ec79eefa87 /python-backend.spec
parent41e0a34c51a417680c60fbf886d407113af4d379 (diff)
automatic import of python-backendopeneuler20.03
Diffstat (limited to 'python-backend.spec')
-rw-r--r--python-backend.spec72
1 files changed, 72 insertions, 0 deletions
diff --git a/python-backend.spec b/python-backend.spec
new file mode 100644
index 0000000..f23eb37
--- /dev/null
+++ b/python-backend.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-backend
+Version: 0.2.4.1
+Release: 1
+Summary: Backend Utility Tools
+License: MIT
+URL: https://github.com/tr4n2uil/backend.django
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/89/c9/f96c6b89e318e607903bae0fcfefefaa76008914c18bd990baec9e39eca0/backend-0.2.4.1.zip
+BuildArch: noarch
+
+
+%description
+Backend Utility Tools for Python Django
+
+%package -n python3-backend
+Summary: Backend Utility Tools
+Provides: python-backend
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-backend
+Backend Utility Tools for Python Django
+
+%package help
+Summary: Development documents and examples for backend
+Provides: python3-backend-doc
+%description help
+Backend Utility Tools for Python Django
+
+%prep
+%autosetup -n backend-0.2.4.1
+
+%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-backend -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.4.1-1
+- Package Spec generated