python-pkgconfig/python-pkgconfig.spec

154 lines
4.6 KiB
RPMSpec
Raw Normal View History

2015-05-18 17:51:25 +00:00
%global srcname pkgconfig
Name: python-%{srcname}
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
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
%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
%if 0%{?rhel} && 0%{?rhel} <= 7
2016-10-12 21:34:56 +00:00
BuildRequires: python-setuptools
# For tests
BuildRequires: python-nose
%else
BuildRequires: python2-setuptools
2015-05-18 18:04:49 +00:00
# For tests
BuildRequires: python2-nose
2016-10-12 21:34:56 +00:00
%endif
Requires: %{_bindir}/pkg-config
2015-05-18 17:51:25 +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.
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
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}
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.
Python 3 version.
2015-05-18 17:51:25 +00:00
%prep
%autosetup -n %{srcname}-%{version}
2015-05-18 17:51:25 +00:00
%build
%py2_build
%py3_build
2015-05-18 17:51:25 +00:00
%install
%py2_install
%py3_install
2015-05-18 17:51:25 +00:00
%check
%{__python2} setup.py test
%{__python3} setup.py test
%files -n python2-%{srcname}
2015-05-18 18:04:49 +00:00
%license LICENSE
%doc README.rst
%{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
%{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
* Sun Feb 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.3.1-1
- Update to 1.3.1
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* 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
* 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
* 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
* Sun Feb 14 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.1.0-5
- Make package compliant with new packaging guidelines
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* 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
* 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