diff --git a/SPECS/python-pkgconfig/python-pkgconfig.spec b/SPECS/python-pkgconfig/python-pkgconfig.spec new file mode 100644 index 000000000..b02a9beb8 --- /dev/null +++ b/SPECS/python-pkgconfig/python-pkgconfig.spec @@ -0,0 +1,50 @@ +# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS) +# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors +# SPDX-FileContributor: yyjeqhc +# +# SPDX-License-Identifier: MulanPSL-2.0 + +%global srcname pkgconfig + +Name: python-%{srcname} +Version: 1.5.5 +Release: %autorelease +Summary: Python interface to the pkg-config command line tool +License: MIT +URL: https://github.com/matze/pkgconfig +#!RemoteAsset: sha256:deb4163ef11f75b520d822d9505c1f462761b4309b1bb713d08689759ea8b899 +Source0: https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz +BuildArch: noarch +BuildSystem: pyproject + +BuildOption(install): -l %{srcname} -L + +BuildRequires: pyproject-rpm-macros +BuildRequires: pkgconfig(python3) +BuildRequires: python3dist(pip) +BuildRequires: python3dist(poetry-core) + +Provides: python3-%{srcname} +%python_provide python3-%{srcname} + +%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. + +%generate_buildrequires +%pyproject_buildrequires + +%files -f %{pyproject_files} +%license LICENSE + +%changelog +%{?autochangelog}