summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-21 11:29:04 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-21 11:29:04 +0000
commitfdcdf36c7f506db9fe68ea0b3d336d0599b80f34 (patch)
tree9e0af9536da5783e0f7b5c6750bc75c7b9459cbd
parent6becaaa62f1e0d4e2c6c33103d71cbb1f2974a5b (diff)
automatic import of python-retask
-rw-r--r--.gitignore1
-rw-r--r--python-retask.spec110
-rw-r--r--sources2
3 files changed, 42 insertions, 71 deletions
diff --git a/.gitignore b/.gitignore
index be871d4..1035682 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/retask-1.1.0.tar.gz
+/retask-0.4.tar.gz
diff --git a/python-retask.spec b/python-retask.spec
index 8e08da3..4cdd8f4 100644
--- a/python-retask.spec
+++ b/python-retask.spec
@@ -1,82 +1,52 @@
-%global _empty_manifest_terminate_build 0
-Name: python-retask
-Version: 1.1.0
-Release: 1
-Summary: Task Queue implementation in python using redis.
-License: MIT License
-URL: https://pypi.org/project/retask/
-Source0: https://mirrors.nju.edu.cn/pypi/web/packages/4e/4a/2d5e40f1999f7951b6fc0617fca6a0eccd45dab12aac4cd0f26757f9354f/retask-1.1.0.tar.gz
-BuildArch: noarch
-
-Requires: python3-redis
-
-%description
-retask is a python module to create distributed task
-queues using Redis.
-You can read the latest documentation `here <http://retask.readthedocs.org/>`_.
-Release build is done via [asaman](https://pypi.org/project/asaman/) from the tarball.
+Name: python-retask
+Version: 0.4
+Release: 1
+Summary: Python module to create and manage distributed task queues
+
+License: MIT
+URL: http://retask.readthedocs.org/en/latest/index.html
+Source0: https://pypi.python.org/packages/source/r/retask/retask-%{version}.tar.gz
+
+BuildArch: noarch
+
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-redis
+BuildRequires: python3-six
+
+
+%global _description\
+Python module to create and manage distributed task queues using redis.
+
+%description %_description
+
%package -n python3-retask
-Summary: Task Queue implementation in python using redis.
-Provides: python-retask
-BuildRequires: python3-devel
-BuildRequires: python3-setuptools
-BuildRequires: python3-pip
-%description -n python3-retask
-retask is a python module to create distributed task
-queues using Redis.
-You can read the latest documentation `here <http://retask.readthedocs.org/>`_.
-Release build is done via [asaman](https://pypi.org/project/asaman/) from the tarball.
-
-%package help
-Summary: Development documents and examples for retask
-Provides: python3-retask-doc
-%description help
-retask is a python module to create distributed task
-queues using Redis.
-You can read the latest documentation `here <http://retask.readthedocs.org/>`_.
-Release build is done via [asaman](https://pypi.org/project/asaman/) from the tarball.
+Summary: %{summary}
+%{?python_provide:%python_provide python3-retask}
+Requires: python3-redis
+Requires: python3-six
+
+%description -n python3-retask %_description
+
%prep
-%autosetup -n retask-1.1.0
+%setup -q -n retask-%{version}
+
%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-retask -f filelist.lst
-%dir %{python3_sitelib}/*
-
-%files help -f doclist.lst
-%{_docdir}/*
+
+
+%files -n python3-retask
+%doc LICENSE
+%{python3_sitelib}/retask*/
+
%changelog
-* Tue Mar 21 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.0-1
-- Package Spec generated
+* Tue Mar 21 2023 lichaoran <pkwarcraft@hotmail.com> - 0.4-1
+- Initial release
diff --git a/sources b/sources
index 512a7af..b6bd475 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-ec286201e1092724778861ecf0a86e9f retask-1.1.0.tar.gz
+2ba793e34c3acab7104a6c59d459a943 retask-0.4.tar.gz