2015-05-18 17:51:25 +00:00
|
|
|
%global srcname pkgconfig
|
|
|
|
|
|
|
|
Name: python-%{srcname}
|
2018-02-18 13:26:21 +00:00
|
|
|
Version: 1.3.1
|
2018-06-19 09:13:21 +00:00
|
|
|
Release: 2%{?dist}
|
2015-05-18 17:51:25 +00:00
|
|
|
Summary: A Python interface to the pkg-config command line tool
|
|
|
|
|
|
|
|
License: MIT
|
2016-12-04 11:13:20 +00:00
|
|
|
URL: https://github.com/matze/pkgconfig
|
|
|
|
Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
|
2015-05-18 17:51:25 +00:00
|
|
|
|
|
|
|
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-12-04 11:13:20 +00:00
|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 7
|
2016-10-12 21:34:56 +00:00
|
|
|
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
|
2018-02-18 13:26:21 +00:00
|
|
|
Requires: %{_bindir}/pkg-config
|
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
|
2018-02-18 13:26:21 +00:00
|
|
|
Requires: %{_bindir}/pkg-config
|
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}
|
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-12-04 11:13:20 +00:00
|
|
|
%{python2_sitelib}/%{srcname}-*.egg-info/
|
|
|
|
%{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-12-04 11:13:20 +00:00
|
|
|
%{python3_sitelib}/%{srcname}-*.egg-info/
|
|
|
|
%{python3_sitelib}/%{srcname}/
|
2015-05-18 17:51:25 +00:00
|
|
|
|
|
|
|
%changelog
|
2018-06-19 09:13:21 +00:00
|
|
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.3.1-2
|
|
|
|
- Rebuilt for Python 3.7
|
|
|
|
|
2018-02-18 13:26:21 +00:00
|
|
|
* Sun Feb 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.3.1-1
|
|
|
|
- Update to 1.3.1
|
|
|
|
|
2018-02-09 09:49:18 +00:00
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2017-07-27 11:18:27 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-11 09:57:58 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-12-19 17:20:37 +00:00
|
|
|
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.2.2-2
|
|
|
|
- Rebuild for Python 3.6
|
|
|
|
|
2016-12-04 11:13:20 +00:00
|
|
|
* Sun Dec 04 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.2.2-1
|
|
|
|
- Update to 1.2.2
|
|
|
|
|
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
|