diff --git pyscard/pyscard.spec pyscard/pyscard.spec.tmp index 0472a65bbc..ae63d37d1b 100644 --- pyscard/pyscard.spec +++ pyscard/pyscard.spec.tmp @@ -1,6 +1,6 @@ Name: pyscard Version: 1.9.5 -Release: 4%{?dist} +Release: 5%{?dist} Summary: A framework for building smart card aware applications in Python Group: Development/Libraries @@ -17,15 +17,26 @@ BuildRequires: python2-devel BuildRequires: python3-devel BuildRequires: pcsc-lite-devel BuildRequires: swig >= 1.3.31 -Requires: pcsc-lite - -%description -The pyscard smartcard library is a framework for building smart card aware -applications in Python. The smartcard module is built on top of the PCSC API -Python wrapper module. +%global _description\ +The pyscard smartcard library is a framework for building smart card aware\ +applications in Python. The smartcard module is built on top of the PCSC API\ +Python wrapper module.\ +\ This is the python2 package. +%description %_description + +%package -n python2-%{name} +Summary: %summary +Requires: pcsc-lite +%{?python_provide:%python_provide python2-%{name}} +# Remove before F30 +Provides: pyscard%{?_isa} = %{version}-%{release} +Obsoletes: pyscard < %{version}-%{release} + +%description -n python2-%{name} %_description + %package -n python3-%{name} Summary: A framework for building smart card aware applications in Python Requires: pcsc-lite @@ -52,7 +63,7 @@ chmod 755 %{buildroot}%{python2_sitearch}/smartcard/scard/*.so %{__python3} setup.py install --root %{buildroot} chmod 755 %{buildroot}%{python3_sitearch}/smartcard/scard/*.so -%files +%files -n python2-%{name} %license LICENSE %doc README %doc smartcard/doc/* @@ -67,6 +78,10 @@ chmod 755 %{buildroot}%{python3_sitearch}/smartcard/scard/*.so %{python3_sitearch}/%{name}-%{version}-py*.egg-info %changelog +* Sat Aug 12 2017 Zbigniew Jędrzejewski-Szmek - 1.9.5-5 +- Python 2 binary package renamed to python2-pyscard + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Thu Aug 03 2017 Fedora Release Engineering - 1.9.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild