From 1d74a29857a0d92eca2b8615b4522912f4722f65 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Oct 07 2018 21:52:16 +0000 Subject: Drop Python 2 package for Fedora 30+ (bugz #1634974) --- diff --git a/python-locket.spec b/python-locket.spec index aaf3fd5..93e751a 100644 --- a/python-locket.spec +++ b/python-locket.spec @@ -29,6 +29,7 @@ module in the standard library. Specifically, their behaviour is: * Behaviour of locks after fork is undefined. +%if 0%{?fedora} > 30 %package -n python2-%{srcname} Summary: File-based locks for Python for Linux and Windows BuildRequires: python2-devel @@ -61,6 +62,7 @@ module in the standard library. Specifically, their behaviour is: * If a process holds a lock, any thread in that process can call release() to change the state to unlocked. * Behaviour of locks after fork is undefined. +%endif %package -n python%{python3_pkgversion}-%{srcname} @@ -96,24 +98,32 @@ module in the standard library. Specifically, their behaviour is: %build +%if 0%{?fedora} > 30 %py2_build +%endif %py3_build %install %py3_install +%if 0%{?fedora} > 30 %py2_install +%endif %check +%if 0%{?fedora} > 30 PYTHONPATH=%{buildroot}%{python2_sitelib} nosetests-%{python2_version} +%endif PYTHONPATH=%{buildroot}%{python3_sitelib} nosetests-%{python3_version} +%if 0%{?fedora} > 30 %files -n python2-%{srcname} %license LICENSE %doc README.rst %{python2_sitelib}/%{srcname}* +%endif %files -n python%{python3_pkgversion}-%{srcname} %license LICENSE @@ -122,6 +132,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} nosetests-%{python3_version} %changelog +* Sun Oct 7 2018 Orion Poplawski - 0.2.0-10 +- Drop Python 2 package for Fedora 30+ (bugz #1634974) + * Sat Jul 14 2018 Fedora Release Engineering - 0.2.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild