2015-05-18 17:51:25 +00:00
|
|
|
%global srcname pkgconfig
|
|
|
|
%global _docdir_fmt %{name}
|
|
|
|
|
|
|
|
Name: python-%{srcname}
|
|
|
|
Version: 1.1.0
|
2015-06-18 20:17:32 +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/%{srcname}
|
|
|
|
Source0: https://github.com/matze/%{srcname}/archive/v%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
BuildRequires: python-setuptools
|
2015-05-18 18:04:49 +00:00
|
|
|
# For tests
|
|
|
|
BuildRequires: python-nose
|
2015-05-18 17:51:25 +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 python3-%{srcname}
|
|
|
|
Summary: A Python3 interface to the pkg-config command line tool
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
2015-05-18 18:04:49 +00:00
|
|
|
# For tests
|
|
|
|
BuildRequires: python3-nose
|
2015-05-18 17:51:25 +00:00
|
|
|
|
|
|
|
%description -n python3-%{srcname}
|
|
|
|
pkgconfig is a Python3 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.
|
|
|
|
|
|
|
|
%prep
|
2015-05-18 18:04:49 +00:00
|
|
|
%setup -q -n %{srcname}-%{version}
|
2015-05-18 17:51:25 +00:00
|
|
|
# Strip shbang
|
|
|
|
find -name \*.py | xargs sed -i '/^#!\/usr\/bin\/.*python/d'
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__python2} setup.py build
|
|
|
|
%{__python3} setup.py build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
|
|
%{__python2} setup.py install --skip-build --root %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__python2} setup.py test
|
|
|
|
%{__python3} setup.py test
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
2015-05-18 18:04:49 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
2015-05-18 17:51:25 +00:00
|
|
|
%{python2_sitelib}/*
|
|
|
|
|
|
|
|
%files -n python3-%{srcname}
|
2015-05-18 18:04:49 +00:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst
|
2015-05-18 17:51:25 +00:00
|
|
|
%{python3_sitelib}/*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
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
|