From 6f07c70b6c097b07e20252348fbcd3ccf3850683 Mon Sep 17 00:00:00 2001 From: Matthias Runge Date: Mon, 16 Nov 2015 09:47:42 +0100 Subject: [PATCH] fix ftbfs and provide python2-fasteners --- python-fasteners.spec | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/python-fasteners.spec b/python-fasteners.spec index 904ca3a..a091e84 100644 --- a/python-fasteners.spec +++ b/python-fasteners.spec @@ -6,7 +6,7 @@ Name: python-%{pypi_name} Version: 0.13.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A python package that provides useful locks License: ASL 2.0 @@ -27,6 +27,23 @@ BuildRequires: python-nose A python package that provides useful locks. +%package -n python2-%{pypi_name} +Summary: A python package that provides useful locks +Obsoletes: python-%{pypi_name} < 0.13.0-3 + +BuildRequires: python2-six +BuildRequires: python2-devel + +# tests +BuildRequires: python2-testtools +BuildRequires: python2-nose + +Requires: python2-six + +%description -n python2-%{pypi_name} +A python package that provides useful locks. + + %if 0%{?with_python3} %package -n python3-%{pypi_name} Summary: A python package that provides useful locks @@ -86,13 +103,13 @@ popd %endif # with_python3 %check -nosetests-2.7 +nosetests-%{python2_version} %if 0%{?with_python3} -nosetests-3.4 +nosetests-%{python3_version} %endif # with_python3 -%files +%files -n python2-%{pypi_name} %doc README.rst %license LICENSE %{python2_sitelib}/%{pypi_name} @@ -108,6 +125,9 @@ nosetests-3.4 %changelog +* Mon Nov 16 2015 Matthias Runge - 0.13.0-3 +- Fix build + * Tue Nov 10 2015 Fedora Release Engineering - 0.13.0-2 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5