diff --git a/python-persist-queue.spec b/python-persist-queue.spec new file mode 100644 index 0000000000000000000000000000000000000000..42d6af0fe161eb8166eca22a386c1d3a4ca02ea4 --- /dev/null +++ b/python-persist-queue.spec @@ -0,0 +1,52 @@ +%global pypi_name persist-queue + +Name: python-%{pypi_name} +Version: 0.5.1 +Release: 1 +Summary: A single process, persistent multi-producer, multi-consumer queue + +License: BSD +URL: https://github.com/peter-wangxu/persist-queue +Source0: https://github.com/peter-wangxu/persist-queue/archive/refs/tags/v0.5.1.tar.gz +BuildArch: noarch + +%description +A single process, persistent multi-producer, multi-consumer queue + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +BuildRequires: python3-devel +BuildRequires: python3-mock +BuildRequires: python3-nose2 +BuildRequires: python3-msgpack +BuildRequires: python3-setuptools + +Requires: python3-msgpack + +%description -n python3-%{pypi_name} +A single process, persistent multi-producer, multi-consumer queue + + +%prep +%setup -n %{pypi_name}-%{version} + +%build +%py3_build + +%install +%py3_install + +%check +nose2 persistqueue.tests.test_queue + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.rst +%{python3_sitelib}/* +%exclude %{python3_sitelib}/tests + +%changelog +* Wed Jul 7 2021 Lianguo Wang - 0.5.1-1 +- Initial package for openEuler, version is 0.5.1 diff --git a/v0.5.1.tar.gz b/v0.5.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..a4aca09e68f3e2063830d71718dec1320ba3da12 Binary files /dev/null and b/v0.5.1.tar.gz differ