|
|
93cadd |
%global srcname pkgconfig
|
|
|
93cadd |
%if 0%{?fedora} && 0%{?fedora} <= 30
|
|
|
93cadd |
%bcond_without python2
|
|
|
93cadd |
%else
|
|
|
93cadd |
%bcond_with python2
|
|
|
93cadd |
%endif
|
|
|
93cadd |
|
|
|
93cadd |
Name: python-%{srcname}
|
|
|
93cadd |
Version: 1.5.2
|
|
|
93cadd |
Release: 1%{?dist}
|
|
|
93cadd |
Summary: Python interface to the pkg-config command line tool
|
|
|
93cadd |
|
|
|
93cadd |
License: MIT
|
|
|
93cadd |
URL: https://github.com/matze/pkgconfig
|
|
|
93cadd |
Source: %{pypi_source}
|
|
|
93cadd |
|
|
|
93cadd |
BuildArch: noarch
|
|
|
93cadd |
|
|
|
93cadd |
%description
|
|
|
93cadd |
pkgconfig is a Python module to interface with the pkg-config command line
|
|
|
93cadd |
tool and supports Python 2.6+.
|
|
|
93cadd |
|
|
|
93cadd |
It can be used to
|
|
|
93cadd |
|
|
|
93cadd |
* check if a package exists
|
|
|
93cadd |
* check if a package meets certain version requirements
|
|
|
93cadd |
* query CFLAGS and LDFLAGS
|
|
|
93cadd |
* parse the output to build extensions with setup.py
|
|
|
93cadd |
|
|
|
93cadd |
If pkg-config is not on the path, raises EnvironmentError.
|
|
|
93cadd |
|
|
|
93cadd |
%if %{with python2}
|
|
|
93cadd |
%package -n python2-%{srcname}
|
|
|
93cadd |
Summary: Python2 interface to the pkg-config ocmmand line tool
|
|
|
93cadd |
%{?python_provide:%python_provide python2-%{srcname}}
|
|
|
93cadd |
BuildRequires: python2-devel
|
|
|
93cadd |
BuildRequires: python2-setuptools
|
|
|
93cadd |
Requires: %{_bindir}/pkg-config
|
|
|
93cadd |
|
|
|
93cadd |
%description -n python2-%{srcname}
|
|
|
93cadd |
pkgconfig is a Python module to interface with the pkg-config command line
|
|
|
93cadd |
tool and supports Python 2.6+.
|
|
|
93cadd |
|
|
|
93cadd |
It can be used to
|
|
|
93cadd |
|
|
|
93cadd |
* check if a package exists
|
|
|
93cadd |
* check if a package meets certain version requirements
|
|
|
93cadd |
* query CFLAGS and LDFLAGS
|
|
|
93cadd |
* parse the output to build extensions with setup.py
|
|
|
93cadd |
|
|
|
93cadd |
If pkg-config is not on the path, raises EnvironmentError.
|
|
|
93cadd |
|
|
|
93cadd |
Python 2 version.
|
|
|
93cadd |
%endif
|
|
|
93cadd |
|
|
|
93cadd |
%package -n python3-%{srcname}
|
|
|
93cadd |
Summary: Python3 interface to the pkg-config command line tool
|
|
|
93cadd |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
93cadd |
BuildRequires: python3-devel
|
|
|
93cadd |
BuildRequires: python3-setuptools
|
|
|
93cadd |
Requires: %{_bindir}/pkg-config
|
|
|
93cadd |
|
|
|
93cadd |
%description -n python3-%{srcname}
|
|
|
93cadd |
pkgconfig is a Python module to interface with the pkg-config command line
|
|
|
93cadd |
tool and supports Python 2.6+.
|
|
|
93cadd |
|
|
|
93cadd |
It can be used to
|
|
|
93cadd |
|
|
|
93cadd |
* check if a package exists
|
|
|
93cadd |
* check if a package meets certain version requirements
|
|
|
93cadd |
* query CFLAGS and LDFLAGS
|
|
|
93cadd |
* parse the output to build extensions with setup.py
|
|
|
93cadd |
|
|
|
93cadd |
If pkg-config is not on the path, raises EnvironmentError.
|
|
|
93cadd |
|
|
|
93cadd |
Python 3 version.
|
|
|
93cadd |
|
|
|
93cadd |
%prep
|
|
|
93cadd |
%autosetup -n %{srcname}-%{version}
|
|
|
93cadd |
# We need to keep egg-info as a directory
|
|
|
93cadd |
# https://github.com/sdispater/poetry/issues/866
|
|
|
93cadd |
sed -i -e s/distutils.core/setuptools/ setup.py
|
|
|
93cadd |
|
|
|
93cadd |
%build
|
|
|
93cadd |
%if %{with python2}
|
|
|
93cadd |
%py2_build
|
|
|
93cadd |
%endif
|
|
|
93cadd |
%py3_build
|
|
|
93cadd |
|
|
|
93cadd |
%install
|
|
|
93cadd |
%if %{with python2}
|
|
|
93cadd |
%py2_install
|
|
|
93cadd |
%endif
|
|
|
93cadd |
%py3_install
|
|
|
93cadd |
|
|
|
93cadd |
%if %{with python2}
|
|
|
93cadd |
%files -n python2-%{srcname}
|
|
|
93cadd |
%license LICENSE
|
|
|
93cadd |
%doc README.rst
|
|
|
93cadd |
%{python2_sitelib}/%{srcname}-*.egg-info/
|
|
|
93cadd |
%{python2_sitelib}/%{srcname}/
|
|
|
93cadd |
%endif
|
|
|
93cadd |
|
|
|
93cadd |
%files -n python3-%{srcname}
|
|
|
93cadd |
%license LICENSE
|
|
|
93cadd |
%doc README.rst
|
|
|
93cadd |
%{python3_sitelib}/%{srcname}-*.egg-info/
|
|
|
93cadd |
%{python3_sitelib}/%{srcname}/
|
|
|
93cadd |
|
|
|
93cadd |
%changelog
|
|
|
93cadd |
* Sun Mar 21 2021 Chedi Toueiti <chedi.toueiti@gmail.com> - 1.5.2-1
|
|
|
93cadd |
- Update to version 1.5.2
|
|
|
93cadd |
|
|
|
93cadd |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-9
|
|
|
93cadd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
93cadd |
|
|
|
93cadd |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-8
|
|
|
93cadd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
93cadd |
|
|
|
93cadd |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.5.1-7
|
|
|
93cadd |
- Rebuilt for Python 3.9
|
|
|
93cadd |
|
|
|
93cadd |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-6
|
|
|
93cadd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
93cadd |
|
|
|
93cadd |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5.1-5
|
|
|
93cadd |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
|
93cadd |
|
|
|
93cadd |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5.1-4
|
|
|
93cadd |
- Rebuilt for Python 3.8
|
|
|
93cadd |
|
|
|
93cadd |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.1-3
|
|
|
93cadd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
93cadd |
|
|
|
93cadd |
* Mon Jul 22 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5.1-2
|
|
|
93cadd |
- Drop python2 for Fedora 31+ (bug #1694619)
|
|
|
93cadd |
|
|
|
93cadd |
* Mon Apr 1 2019 Orion Poplawski <orion@nwra.com> - 1.5.1-1
|
|
|
93cadd |
- Update to 1.5.1
|
|
|
93cadd |
- Patch setup.py to revert to setuptools
|
|
|
93cadd |
|
|
|
93cadd |
* Sun Mar 31 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.5.0-1
|
|
|
93cadd |
- Update to 1.5.0
|
|
|
93cadd |
|
|
|
93cadd |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-4
|
|
|
93cadd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
93cadd |
|
|
|
93cadd |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-3
|
|
|
93cadd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
93cadd |
|
|
|
93cadd |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.3.1-2
|
|
|
93cadd |
- Rebuilt for Python 3.7
|
|
|
93cadd |
|
|
|
93cadd |
* Sun Feb 18 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.3.1-1
|
|
|
93cadd |
- Update to 1.3.1
|
|
|
93cadd |
|
|
|
93cadd |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-5
|
|
|
93cadd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
93cadd |
|
|
|
93cadd |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-4
|
|
|
93cadd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
93cadd |
|
|
|
93cadd |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.2-3
|
|
|
93cadd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
93cadd |
|
|
|
93cadd |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.2.2-2
|
|
|
93cadd |
- Rebuild for Python 3.6
|
|
|
93cadd |
|
|
|
93cadd |
* Sun Dec 04 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.2.2-1
|
|
|
93cadd |
- Update to 1.2.2
|
|
|
93cadd |
|
|
|
93cadd |
* Wed Oct 12 2016 Orion Poplawski <orion@cora.nwra.com> - 1.1.0-7
|
|
|
93cadd |
- Fix build for EPEL
|
|
|
93cadd |
|
|
|
93cadd |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-6
|
|
|
93cadd |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
93cadd |
|
|
|
93cadd |
* Sun Feb 14 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.1.0-5
|
|
|
93cadd |
- Make package compliant with new packaging guidelines
|
|
|
93cadd |
|
|
|
93cadd |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-4
|
|
|
93cadd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
93cadd |
|
|
|
93cadd |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-3
|
|
|
93cadd |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
93cadd |
|
|
|
93cadd |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-2
|
|
|
93cadd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
93cadd |
|
|
|
93cadd |
* Mon May 18 2015 Orion Poplawski <orion@cora.nwra.com> - 1.1.0-1
|
|
|
93cadd |
- Add BR on python-nose
|
|
|
93cadd |
- Combined build
|
|
|
93cadd |
|
|
|
93cadd |
* Sun May 17 2015 Orion Poplawski <orion@cora.nwra.com> - 1.1.0-1
|
|
|
93cadd |
- Initial package
|