Fix build for EPEL

This commit is contained in:
Orion Poplawski 2016-10-12 15:34:56 -06:00
parent 49357054e7
commit 3fe3ff1e0a

View File

@ -3,7 +3,7 @@
Name: python-%{srcname}
Version: 1.1.0
Release: 6%{?dist}
Release: 7%{?dist}
Summary: A Python interface to the pkg-config command line tool
License: MIT
@ -29,9 +29,15 @@ If pkg-config is not on the path, raises EnvironmentError.
Summary: A Python2 interface to the pkg-config ocmmand line tool
%{?python_provide:%python_provide python2-%{srcname}}
BuildRequires: python2-devel
%if 0%{?rhel} <= 7
BuildRequires: python-setuptools
# For tests
BuildRequires: python-nose
%else
BuildRequires: python2-setuptools
# For tests
BuildRequires: python2-nose
%endif
%description -n python2-%{srcname}
pkgconfig is a Python module to interface with the pkg-config command line
@ -48,15 +54,15 @@ If pkg-config is not on the path, raises EnvironmentError.
Python 2 version.
%package -n python3-%{srcname}
%package -n python%{python3_pkgversion}-%{srcname}
Summary: A Python3 interface to the pkg-config command line tool
%{?python_provide:%python_provide python3-%{srcname}}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
# For tests
BuildRequires: python3-nose
BuildRequires: python%{python3_pkgversion}-nose
%description -n python3-%{srcname}
%description -n python%{python3_pkgversion}-%{srcname}
pkgconfig is a Python module to interface with the pkg-config command line
tool and supports Python 2.6+.
@ -93,12 +99,15 @@ find -type f -name '*.py' -exec sed -i -e '1{\@^#!/usr/bin/env python@d}' {} ';'
%doc README.rst
%{python2_sitelib}/%{srcname}*
%files -n python3-%{srcname}
%files -n python%{python3_pkgversion}-%{srcname}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{srcname}*
%changelog
* Wed Oct 12 2016 Orion Poplawski <orion@cora.nwra.com> - 1.1.0-7
- Fix build for EPEL
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-6
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages