# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS) # SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors # SPDX-FileContributor: CHEN Xuan # # 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 Source: https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildSystem: pyproject BuildOption(install): %{srcname} BuildRequires: python3-devel %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. Requires: %{_bindir}/pkg-config Provides: python3-%{srcname} %python_provide python3-%{srcname} %generate_buildrequires %pyproject_buildrequires %files -f %{pyproject_files} %license LICENSE %doc README.rst %changelog %autochangelog