diff --git a/python-rhsm.spec b/python-rhsm.spec index 60f9222436..3f2515adaa 100644 --- a/python-rhsm.spec +++ b/python-rhsm.spec @@ -10,7 +10,7 @@ Name: python-rhsm Version: 1.20.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A Python library to communicate with a Red Hat Unified Entitlement Platform Group: Development/Libraries @@ -31,22 +31,28 @@ BuildRequires: python-setuptools BuildRequires: python-six BuildRequires: openssl-devel +# rpm-python is an old name for python2-rpm but RHEL6 uses the old name + +%{?python_provide:%python_provide %{name}} + +%global _description \ +A small library for communicating with the REST interface of a Red Hat Unified\ +Entitlement Platform. This interface is used for the management of system\ +entitlements, certificates, and access to content. + +%package -n python2-%{name} +Summary: %summary %if %use_m2crypto Requires: %{?suse_version:python-m2crypto} %{!?suse_version:m2crypto} %endif Requires: python-dateutil Requires: python-iniparse -# rpm-python is an old name for python2-rpm but RHEL6 uses the old name Requires: rpm-python Requires: python-six Requires: python-rhsm-certificates = %{version}-%{release} +%{?python_provide:%python_provide python2-%{name}} -%{?python_provide:%python_provide %{name}} - -%global _description \ -A small library for communicating with the REST interface of a Red Hat Unified\ -Entitlement Platform. This interface is used for the management of system\ -entitlements, certificates, and access to content. +%description -n python2-%{name} %{_description} %description %{_description} @@ -105,7 +111,7 @@ install etc-conf/ca/*.pem %{buildroot}%{_sysconfdir}/rhsm/ca %clean rm -rf %{buildroot} -%files -n %{name} +%files -n python2-%{name} %defattr(-,root,root,-) %doc README %dir %{python2_sitearch}/rhsm @@ -128,6 +134,10 @@ rm -rf %{buildroot} %attr(644,root,root) %{_sysconfdir}/rhsm/ca/*.pem %changelog +* Sun Dec 17 2017 Zbigniew Jędrzejewski-Szmek - 1.20.2-2 +- Python 2 binary package renamed to python2-rhsm + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Mon Oct 09 2017 Kevin Howell 1.20.2-1 - 1354667: Better message for proxy/identity cert issue (wpoteat@redhat.com) - 1319927: [RFE] sub-man automatically enables yum plugins (jhnidek@redhat.com)