2015-05-18 17:51:25 +00:00
|
|
|
%global srcname pkgconfig
|
|
|
|
%global _docdir_fmt %{name}
|
|
|
|
|
|
|
|
Name: python-%{srcname}
|
|
|
|
Version: 1.1.0
|
2016-10-12 21:34:56 +00:00
|
|
|
Release: 7%{?dist}
|
2015-05-18 17:51:25 +00:00
|
|
|
Summary: A Python interface to the pkg-config command line tool
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
URL: https://github.com/matze/%{srcname}
|
|
|
|
Source0: https://github.com/matze/%{srcname}/archive/v%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
|
|
|
|
|
|
|
|
BuildArch: noarch
|
2016-02-14 09:03:04 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
pkgconfig is a Python module to interface with the pkg-config command line
|
|
|
|
tool and supports Python 2.6+.
|
|
|
|
|
|
|
|
It can be used to
|
|
|
|
|
|
|
|
* check if a package exists
|
|
|
|
* check if a package meets certain version requirements
|
|
|
|
* query CFLAGS and LDFLAGS
|
|
|
|
* parse the output to build extensions with setup.py
|
|
|
|
|
|
|
|
If pkg-config is not on the path, raises EnvironmentError.
|
|
|
|
|
|
|
|
%package -n python2-%{srcname}
|
|
|
|
Summary: A Python2 interface to the pkg-config ocmmand line tool
|
|
|
|
%{?python_provide:%python_provide python2-%{srcname}}
|
2015-05-18 17:51:25 +00:00
|
|
|
BuildRequires: python2-devel
|
2016-10-12 21:34:56 +00:00
|
|
|
%if 0%{?rhel} <= 7
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
# For tests
|
|
|
|
BuildRequires: python-nose
|
|
|
|
%else
|
2016-02-14 09:03:04 +00:00
|
|
|
BuildRequires: python2-setuptools
|
2015-05-18 18:04:49 +00:00
|
|
|
# For tests
|
2016-02-14 09:03:04 +00:00
|
|
|
BuildRequires: python2-nose
|
2016-10-12 21:34:56 +00:00
|
|
|
%endif
|
2015-05-18 17:51:25 +00:00
|
|
|
|
2016-02-14 09:03:04 +00:00
|
|
|
%description -n python2-%{srcname}
|
2015-05-18 17:51:25 +00:00
|
|
|
pkgconfig is a Python module to interface with the pkg-config command line
|
|
|
|
tool and supports Python 2.6+.
|
|
|
|
|
|
|
|
It can be used to
|
|
|
|
|
|
|
|
* check if a package exists
|
|
|
|
* check if a package meets certain version requirements
|
|
|
|
* query CFLAGS and LDFLAGS
|
|
|
|
* parse the output to build extensions with setup.py
|
|
|
|
|
|
|
|
If pkg-config is not on the path, raises EnvironmentError.
|
|
|
|
|
2016-02-14 09:03:04 +00:00
|
|
|
Python 2 version.
|
|
|
|
|
2016-10-12 21:34:56 +00:00
|
|
|
%package -n python%{python3_pkgversion}-%{srcname}
|
2015-05-18 17:51:25 +00:00
|
|
|
Summary: A Python3 interface to the pkg-config command line tool
|
2016-10-12 21:34:56 +00:00
|
|
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
|
|
|
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
2015-05-18 18:04:49 +00:00
|
|
|
# For tests
|
2016-10-12 21:34:56 +00:00
|
|
|
BuildRequires: python%{python3_pkgversion}-nose
|
2015-05-18 17:51:25 +00:00
|
|
|
|
2016-10-12 21:34:56 +00:00
|
|
|
%description -n python%{python3_pkgversion}-%{srcname}
|
2016-02-14 09:03:04 +00:00
|
|
|
pkgconfig is a Python module to interface with the pkg-config command line
|
2015-05-18 17:51:25 +00:00
|
|
|
tool and supports Python 2.6+.
|
|
|
|
|
|
|
|
It can be used to
|
|
|
|
|
|
|
|
* check if a package exists
|
|
|
|
* check if a package meets certain version requirements
|
|
|
|
* query CFLAGS and LDFLAGS
|
|
|
|
* parse the output to build extensions with setup.py
|
|
|
|
|
|
|
|
If pkg-config is not on the path, raises EnvironmentError.
|
|
|
|
|
2016-02-14 09:03:04 +00:00
|
|
|
Python 3 version.
|
2015-05-18 17:51:25 +00:00
|
|
|
|
2016-02-14 09:03:04 +00:00
|
|
|
%prep
|
|
|
|
%autosetup -n %{srcname}-%{version}
|
|
|
|
# Strip shebang
|
|
|
|
find -type f -name '*.py' -exec sed -i -e '1{\@^#!/usr/bin/env python@d}' {} ';'
|
2015-05-18 17:51:25 +00:00
|
|
|
|
|
|
|
%build
|
2016-02-14 09:03:04 +00:00
|
|
|
%py2_build
|
|
|
|
%py3_build
|
2015-05-18 17:51:25 +00:00
|
|
|
|
|
|
|
%install
|
2016-02-14 09:03:04 +00:00
|
|
|
%py2_install
|
|
|
|
%py3_install
|
2015-05-18 17:51:25 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
%{__python2} setup.py test
|
|
|
|
%{__python3} setup.py test
|
|
|
|
|
2016-02-14 09:03:04 +00:00
|
|
|
%files -n python2-%{srcname}
|
2015-05-18 18:04:49 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
2016-02-14 09:03:04 +00:00
|
|
|
%{python2_sitelib}/%{srcname}*
|
2015-05-18 17:51:25 +00:00
|
|
|
|
2016-10-12 21:34:56 +00:00
|
|
|
%files -n python%{python3_pkgversion}-%{srcname}
|
2015-05-18 18:04:49 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
2016-02-14 09:03:04 +00:00
|
|
|
%{python3_sitelib}/%{srcname}*
|
2015-05-18 17:51:25 +00:00
|
|
|
|
|
|
|
%changelog
|
2016-10-12 21:34:56 +00:00
|
|
|
* Wed Oct 12 2016 Orion Poplawski <orion@cora.nwra.com> - 1.1.0-7
|
|
|
|
- Fix build for EPEL
|
|
|
|
|
2016-07-19 10:58:57 +00:00
|
|
|
* 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
|
|
|
|
|
2016-02-14 09:03:04 +00:00
|
|
|
* Sun Feb 14 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.1.0-5
|
|
|
|
- Make package compliant with new packaging guidelines
|
|
|
|
|
2016-02-04 20:29:28 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-11-10 16:42:09 +00:00
|
|
|
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
|
|
2015-06-18 20:17:32 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-05-18 18:04:49 +00:00
|
|
|
* Mon May 18 2015 Orion Poplawski <orion@cora.nwra.com> - 1.1.0-1
|
|
|
|
- Add BR on python-nose
|
|
|
|
- Combined build
|
|
|
|
|
2015-05-18 17:51:25 +00:00
|
|
|
* Sun May 17 2015 Orion Poplawski <orion@cora.nwra.com> - 1.1.0-1
|
|
|
|
- Initial package
|