From a7b48d8ceca549171030ba2f74e102e4f6ad6f6c Mon Sep 17 00:00:00 2001 From: FrantiĊĦek Zatloukal Date: Dec 15 2021 13:07:19 +0000 Subject: python-amqp 5.0.7 --- diff --git a/.gitignore b/.gitignore index cd0cbc0..668ff71 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ /amqp-5.0.3.tar.gz /amqp-5.0.5.tar.gz /amqp-5.0.6.tar.gz +/amqp-5.0.7.tar.gz diff --git a/python-amqp.spec b/python-amqp.spec index 41e9fce..30b4e68 100644 --- a/python-amqp.spec +++ b/python-amqp.spec @@ -1,16 +1,5 @@ -%if 0%{?rhel} && 0%{?rhel} < 8 -%bcond_with python3 -%bcond_with tests -%bcond_without python2 -%else -%bcond_without python3 +# Tests can optionally be disabled %bcond_without tests -%bcond_with python2 -%endif - -%if 0%{?fedora} >= 31 -%bcond_with python2 -%endif # These Sphinx docs do not build without sphinx_celery packaged %bcond_with sphinx_docs @@ -18,8 +7,8 @@ %global srcname amqp Name: python-%{srcname} -Version: 5.0.6 -Release: 3%{?dist} +Version: 5.0.7 +Release: 1%{?dist} Summary: Low-level AMQP client for Python (fork of amqplib) License: BSD @@ -28,11 +17,9 @@ Source0: https://files.pythonhosted.org/packages/source/a/%{srcname}/%{sr BuildArch: noarch %if %{with sphinx_docs} -BuildRequires: python-sphinx >= 0.8 +BuildRequires: python3-sphinx %endif - - %description Low-level AMQP client for Python @@ -41,37 +28,11 @@ This is a fork of amqplib, maintained by the Celery project. This library should be API compatible with librabbitmq. -%if %{with python2} -%package -n python2-%{srcname} -Summary: Client library for AMQP -Requires: python2-vine >= 1.1.3 -BuildRequires: python2-devel -BuildRequires: python2-setuptools -%if %{with tests} -BuildRequires: python2-nose -BuildRequires: python2-case -BuildRequires: python2-pytest -BuildRequires: python2-mock -BuildRequires: python2-vine -%endif -%{?python_provide:%python_provide python2-%{srcname}} - -%description -n python2-%{srcname} -Low-level AMQP client for Python - -This is a fork of amqplib, maintained by the Celery project. - -This library should be API compatible with librabbitmq. - -%endif - -%if %{with python3} %package -n python3-%{srcname} Summary: Client library for AMQP BuildRequires: python3-devel BuildRequires: python3-setuptools %if %{with tests} -BuildRequires: python3-case BuildRequires: python3-pytest BuildRequires: python3-vine >= 5.0.0 %endif @@ -88,11 +49,9 @@ This is a fork of amqplib, maintained by the Celery project. This library should be API compatible with librabbitmq. -%endif %package doc Summary: Documentation for python-amqp - Requires: %{name} = %{version}-%{release} %description doc @@ -102,26 +61,11 @@ Documentation for python-amqp %prep %autosetup -n %{srcname}-%{version} - %build -%if %{with python2} -%py2_build -%endif - -%if %{with python3} %py3_build -%endif - - %install -%if %{with python2} -%py2_install -%endif - -%if %{with python3} %py3_install -%endif %if %{with sphinx_docs} # docs generation requires everything to be installed first @@ -141,33 +85,14 @@ popd %check %if %{with tests} - -%if %{with python2} -# Skip test_transport because the "patching" fixture -# is not loading currently for python2. -py.test-2 t/unit -k "not test_transport" -%endif - -%if %{with python3} py.test-3 t/unit %endif -%endif -%if %{with python2} -%files -n python2-%{srcname} -%doc Changelog README.rst -%license LICENSE -%{python2_sitelib}/%{srcname} -%{python2_sitelib}/%{srcname}-%{version}-py%{python2_version}.egg-info -%endif - -%if %{with python3} %files -n python3-%{srcname} %doc Changelog README.rst %license LICENSE %{python3_sitelib}/%{srcname} %{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info -%endif %files doc %license LICENSE @@ -177,6 +102,12 @@ py.test-3 t/unit %changelog +* Wed Dec 15 2021 Frantisek Zatloukal - 5.0.7-1 +- python-amqp 5.0.7 +- drop Python 2 subpackage/clean spec +- drop dependency on python-case +- drop dependency on python-nose and python-nose (cstratak) + * Fri Jul 23 2021 Fedora Release Engineering - 5.0.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild diff --git a/sources b/sources index 1828768..870474c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (amqp-5.0.6.tar.gz) = bf15fad413bedb2f57dfaa03986f4abfc8fb169d5e324d5741b94a1e3776f2590e7686774c69dfdda848b484dbc1e6d0fa78a4a3125cf08ab20eaf7192885252 +SHA512 (amqp-5.0.7.tar.gz) = 3c0d051ad677fa410e4301ab86478583affc1e42651ce5c9b34a07a179aa4fb15811a81884facbdc393b0646a23cab20ee7943b276b8ef770e9707b9bd23d06a