diff --git a/python-txamqp.spec b/python-txamqp.spec index 4abb338a4c..746a4b013a 100644 --- a/python-txamqp.spec +++ b/python-txamqp.spec @@ -2,7 +2,7 @@ Name: python-%{upstream_name} Version: 0.7.0 -Release: 4%{?dist} +Release: 5%{?dist} Summary: A Python library for communicating with AMQP peers and brokers using Twisted License: ASL 2.0 @@ -31,12 +31,13 @@ Requires: amqp %description -n python2-%{upstream_name} %_description -%package thrift +%package -n python2-%{upstream_name}-thrift Summary: Contributed Thrift libraries for Twisted Requires: %{name} = %{version}-%{release} Requires: python2-thrift +%{?python_provide:%python_provide python2-%{upstream_name}-thrift} -%description thrift +%description -n python2-%{upstream_name}-thrift txAMQP also includes support for using Thrift RPC over AMQP in Twisted applications. @@ -57,10 +58,13 @@ sed -i '/^#!\/usr\/bin\/env python/,+1 d' src/txamqp/codec.py %exclude %{python2_sitelib}/%{upstream_name}/contrib/thrift %{python2_sitelib}/txAMQP-%{version}-*.egg-info -%files thrift +%files -n python2-%{upstream_name}-thrift %{python2_sitelib}/%{upstream_name}/contrib/thrift %changelog +* Sun Dec 17 2017 Zbigniew Jędrzejewski-Szmek - 0.7.0-5 +- Also rename the binary thrift subpackage to python2-txamqp-thrift + * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 0.7.0-4 - Python 2 binary package renamed to python2-txamqp See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3