-
-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#3494 add python3-pkgconfig so we can build python3-lz4 against the s…
…ystem library
- Loading branch information
Showing
3 changed files
with
66 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
%define _disable_source_fetch 0 | ||
%global srcname pkgconfig | ||
%{?python_provide:%python_provide python3-%{srcname}} | ||
|
||
Name: python3-%{srcname} | ||
Version: 1.5.5 | ||
Release: 1%{?dist} | ||
Summary: Python interface to the pkg-config command line tool | ||
|
||
License: MIT | ||
URL: https://github.com/matze/pkgconfig | ||
Source: %{pypi_source} | ||
|
||
BuildArch: noarch | ||
BuildRequires: python3-devel | ||
BuildRequires: python3-setuptools | ||
Requires: %{_bindir}/pkg-config | ||
|
||
|
||
%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. | ||
|
||
|
||
%prep | ||
%autosetup -n %{srcname}-%{version} | ||
# We need to keep egg-info as a directory | ||
# https://github.com/sdispater/poetry/issues/866 | ||
sed -i -e s/distutils.core/setuptools/ setup.py | ||
|
||
|
||
%build | ||
%py3_build | ||
|
||
|
||
%install | ||
%py3_install | ||
|
||
|
||
%files -n python3-%{srcname} | ||
%license LICENSE | ||
%doc README.rst | ||
%{python3_sitelib}/%{srcname}-*.egg-info/ | ||
%{python3_sitelib}/%{srcname}/ | ||
|
||
|
||
%changelog | ||
* Mon Mar 21 2022 Antoine Martin <antoine@xpra.org> - 1.5.5-1 | ||
- initial packaging for CentOS 8 based on the Fedora spec file |