Fix build for EPEL
This commit is contained in:
parent
49357054e7
commit
3fe3ff1e0a
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: python-%{srcname}
|
Name: python-%{srcname}
|
||||||
Version: 1.1.0
|
Version: 1.1.0
|
||||||
Release: 6%{?dist}
|
Release: 7%{?dist}
|
||||||
Summary: A Python interface to the pkg-config command line tool
|
Summary: A Python interface to the pkg-config command line tool
|
||||||
|
|
||||||
License: MIT
|
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
|
Summary: A Python2 interface to the pkg-config ocmmand line tool
|
||||||
%{?python_provide:%python_provide python2-%{srcname}}
|
%{?python_provide:%python_provide python2-%{srcname}}
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
|
%if 0%{?rhel} <= 7
|
||||||
|
BuildRequires: python-setuptools
|
||||||
|
# For tests
|
||||||
|
BuildRequires: python-nose
|
||||||
|
%else
|
||||||
BuildRequires: python2-setuptools
|
BuildRequires: python2-setuptools
|
||||||
# For tests
|
# For tests
|
||||||
BuildRequires: python2-nose
|
BuildRequires: python2-nose
|
||||||
|
%endif
|
||||||
|
|
||||||
%description -n python2-%{srcname}
|
%description -n python2-%{srcname}
|
||||||
pkgconfig is a Python module to interface with the pkg-config command line
|
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.
|
Python 2 version.
|
||||||
|
|
||||||
%package -n python3-%{srcname}
|
%package -n python%{python3_pkgversion}-%{srcname}
|
||||||
Summary: A Python3 interface to the pkg-config command line tool
|
Summary: A Python3 interface to the pkg-config command line tool
|
||||||
%{?python_provide:%python_provide python3-%{srcname}}
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
||||||
# For tests
|
# 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
|
pkgconfig is a Python module to interface with the pkg-config command line
|
||||||
tool and supports Python 2.6+.
|
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
|
%doc README.rst
|
||||||
%{python2_sitelib}/%{srcname}*
|
%{python2_sitelib}/%{srcname}*
|
||||||
|
|
||||||
%files -n python3-%{srcname}
|
%files -n python%{python3_pkgversion}-%{srcname}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python3_sitelib}/%{srcname}*
|
%{python3_sitelib}/%{srcname}*
|
||||||
|
|
||||||
%changelog
|
%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
|
* 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
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user