mirror of
https://github.com/openRuyi-Project/openRuyi.git
synced 2026-05-14 19:03:38 +00:00
51 lines
1.5 KiB
RPMSpec
51 lines
1.5 KiB
RPMSpec
# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
|
# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors
|
|
# SPDX-FileContributor: yyjeqhc <jialin.oerv@isrc.iscas.ac.cn>
|
|
#
|
|
# 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}
|