diff --git a/PyPAM.spec b/PyPAM.spec index 8ae73a5..4bdf93e 100644 --- a/PyPAM.spec +++ b/PyPAM.spec @@ -1,16 +1,9 @@ -%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5) -%{!?python_sitelib: %global python_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} -%{!?python_sitearch: %global python_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} -%endif - -%if 0%{?fedora} %global with_python3 1 -%endif Summary: PAM bindings for Python Name: PyPAM Version: 0.5.0 -Release: 40%{?dist} +Release: 41%{?dist} # Note that the upstream site is dead. Source0: http://www.pangalactic.org/PyPAM/%{name}-%{version}.tar.gz Url: http://www.pangalactic.org/PyPAM @@ -21,9 +14,8 @@ Patch3: PyPAM-0.5.0-memory-errors.patch Patch4: PyPAM-0.5.0-return-value.patch Patch5: PyPAM-python3-support.patch License: LGPLv2 -BuildRequires: python2-devel pam-devel +BuildRequires: pam-devel BuildRequires: gcc -%filter_provides_in %{python2_sitearch}/PAM.so$ %filter_provides_in %{python3_sitearch}/PAM*.so$ %filter_setup @@ -32,17 +24,6 @@ PAM (Pluggable Authentication Module) bindings for Python. %description %_description -%package -n python2-pypam -Summary: %summary -Requires: python2 -%{?python_provide:%python_provide python2-pypam} -# Remove before F30 -Provides: PyPAM = %{version}-%{release} -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 @@ -69,8 +50,6 @@ cp -a . %{py3dir} %endif %build -CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" %{__python2} setup.py build - %if 0%{with_python3} pushd %{py3dir} %set_build_flags @@ -79,8 +58,6 @@ popd %endif %install -%{__python2} setup.py install --root=$RPM_BUILD_ROOT - %if 0%{?with_python3} pushd %{py3dir} %{__python3} setup.py install --root=$RPM_BUILD_ROOT @@ -92,21 +69,12 @@ chmod 644 examples/pamtest.py rm -f examples/pamexample %check -PYTHONPATH=build/lib.linux-`uname -m`-%{python2_version}/ %{__python2} tests/PamTest.py - %if 0%{with_python3} pushd %{py3dir} PYTHONPATH=build/lib.linux-`uname -m`-%{python3_version}/ %{__python3} tests/PamTest.py popd %endif -%files -n python2-pypam -%{python2_sitearch}/PAM.so -%{python2_sitearch}/*.egg-info -%license COPYING -%doc AUTHORS NEWS README ChangeLog INSTALL -%doc examples - %if 0%{?with_python3} %files -n python3-PyPAM %{python3_sitearch}/PAM*.so @@ -117,6 +85,9 @@ popd %endif %changelog +* Fri Jul 12 2019 Miroslav Suchý 0.5.0-41 +- stop building python2 bindings + * Thu Jan 31 2019 Fedora Release Engineering - 0.5.0-40 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild