diff --git PyPAM/PyPAM.spec PyPAM/PyPAM.spec.tmp index 7f365a4025..3debda7578 100644 --- PyPAM/PyPAM.spec +++ PyPAM/PyPAM.spec.tmp @@ -10,7 +10,7 @@ Summary: PAM bindings for Python Name: PyPAM Version: 0.5.0 -Release: 30%{?dist} +Release: 31%{?dist} # Note that the upstream site is dead. Source0: http://www.pangalactic.org/PyPAM/%{name}-%{version}.tar.gz Url: http://www.pangalactic.org/PyPAM @@ -24,14 +24,25 @@ License: LGPLv2 Group: Development/Libraries BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python2-devel pam-devel -Requires: python %filter_provides_in %{python_sitearch}/PAM.so$ %filter_provides_in %{python3_sitearch}/PAM*.so$ %filter_setup -%description +%global _description\ PAM (Pluggable Authentication Module) bindings for Python. +%description %_description + +%package -n python2-pypam +Summary: %summary +Requires: python +%{?python_provide:%python_provide python2-pypam} +# Remove before F30 +Provides: PyPAM%{?_isa} = %{version}-%{release} +Obsoletes: PyPAM < %{version}-%{release} + +%description -n python2-pypam %_description + %if 0%{?with_python3} %package -n python3-PyPAM Summary: PAM bindings for Python 3 @@ -92,7 +103,7 @@ PYTHONPATH=build/lib.linux-`uname -m`-%{python3_version}/ %{__python3} tests/Pam popd %endif -%files +%files -n python2-pypam %defattr(-, root, root, -) %{python_sitearch}/PAM.so %{python_sitearch}/*.egg-info @@ -108,6 +119,10 @@ popd %endif %changelog +* Sat Aug 12 2017 Zbigniew Jędrzejewski-Szmek - 0.5.0-31 +- Python 2 binary package renamed to python2-pypam + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Wed Aug 02 2017 Fedora Release Engineering - 0.5.0-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild