summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--python-cadasta-workertoolbox.spec86
-rw-r--r--sources1
3 files changed, 88 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..58fb5ae 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/cadasta-workertoolbox-0.6.0.tar.gz
diff --git a/python-cadasta-workertoolbox.spec b/python-cadasta-workertoolbox.spec
new file mode 100644
index 0000000..7fff7b8
--- /dev/null
+++ b/python-cadasta-workertoolbox.spec
@@ -0,0 +1,86 @@
+%global _empty_manifest_terminate_build 0
+Name: python-cadasta-workertoolbox
+Version: 0.6.0
+Release: 1
+Summary: Cadasta Worker Toolbox
+License: GNU Affero General Public License v3.0
+URL: https://github.com/Cadasta/cadasta-workertoolbox
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/85/09/d5102eac188775309db712c54cb5cd8c6cd8fd371fe63eb0e845be0b3933/cadasta-workertoolbox-0.6.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-SQLAlchemy
+Requires: python3-boto3
+Requires: python3-celery
+Requires: python3-kombu
+Requires: python3-mock
+Requires: python3-psycopg2
+Requires: python3-pycurl
+Requires: python3-raven
+
+%description
+|PyPI version| |Build Status| |Requirements Status|
+A collection of helpers to assist in quickly building asynchronous
+workers for the Cadasta system.
+
+%package -n python3-cadasta-workertoolbox
+Summary: Cadasta Worker Toolbox
+Provides: python-cadasta-workertoolbox
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-cadasta-workertoolbox
+|PyPI version| |Build Status| |Requirements Status|
+A collection of helpers to assist in quickly building asynchronous
+workers for the Cadasta system.
+
+%package help
+Summary: Development documents and examples for cadasta-workertoolbox
+Provides: python3-cadasta-workertoolbox-doc
+%description help
+|PyPI version| |Build Status| |Requirements Status|
+A collection of helpers to assist in quickly building asynchronous
+workers for the Cadasta system.
+
+%prep
+%autosetup -n cadasta-workertoolbox-0.6.0
+
+%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-cadasta-workertoolbox -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..74a83cc
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+6c9b22e5247b977ce90ee2c088d7964e cadasta-workertoolbox-0.6.0.tar.gz