mirror of
https://github.com/openRuyi-Project/openRuyi.git
synced 2026-05-13 18:33:44 +00:00
80 lines
2.3 KiB
RPMSpec
80 lines
2.3 KiB
RPMSpec
# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
|
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
|
|
# SPDX-FileContributor: Zheng Junjie <zhengjunjie@iscas.ac.cn>
|
|
# SPDX-FileContributor: misaka00251 <liuxin@iscas.ac.cn>
|
|
#
|
|
# SPDX-License-Identifier: MulanPSL-2.0
|
|
|
|
# Virtual provides for the packages bundled by wheel.
|
|
# %%{_rpmconfigdir}/pythonbundles.py src/wheel/vendored/vendor.txt --namespace 'python%%{python3_pkgversion}dist'
|
|
%global bundled %{expand:
|
|
Provides: bundled(python%{python3_pkgversion}dist(packaging)) = 24
|
|
}
|
|
|
|
Name: python-wheel
|
|
Version: 0.45.1
|
|
Release: %autorelease
|
|
Summary: Built-package format for Python
|
|
License: MIT AND (Apache-2.0 OR BSD-2-Clause)
|
|
URL: https://github.com/pypa/wheel
|
|
#!RemoteAsset
|
|
Source: %{url}/archive/%{version}/wheel-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
|
|
# Compatibility with the setuptools 75+
|
|
# https://github.com/pypa/wheel/issues/650
|
|
# https://github.com/pypa/wheel/commit/3028d3.patch
|
|
Patch: 0001-3028d3.patch
|
|
# Compatibility with the setuptools 78+ (PEP 639)
|
|
# Upstream has removed this code entirely instead
|
|
# https://github.com/pypa/wheel/pull/655
|
|
Patch: 0002-adjusts-tests-for-setuptools-78.patch
|
|
|
|
BuildRequires: pkgconfig(python3)
|
|
BuildRequires: expat
|
|
|
|
%description
|
|
This is a command line tool for manipulating Python wheel files,
|
|
as defined in PEP 427. It contains the following functionality:
|
|
|
|
- Convert .egg archives into .whl.
|
|
- Unpack wheel archives.
|
|
- Repack wheel archives.
|
|
- Add or remove tags in existing wheel archives.
|
|
|
|
%package -n python3-wheel
|
|
Summary: %{summary}
|
|
%{bundled}
|
|
|
|
%description -n python3-wheel
|
|
This is a command line tool for manipulating Python wheel files,
|
|
as defined in PEP 427. It contains the following functionality:
|
|
|
|
- Convert .egg archives into .whl.
|
|
- Unpack wheel archives.
|
|
- Repack wheel archives.
|
|
- Add or remove tags in existing wheel archives.
|
|
|
|
%prep
|
|
%autosetup -n wheel-%{version} -p1
|
|
|
|
%generate_buildrequires
|
|
%pyproject_buildrequires
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%pyproject_save_files -l wheel
|
|
mv %{buildroot}%{_bindir}/wheel{,-3}
|
|
ln -s wheel-3 %{buildroot}%{_bindir}/wheel
|
|
|
|
%files -n python%{python3_pkgversion}-wheel -f %{pyproject_files}
|
|
%doc README.rst
|
|
%{_bindir}/wheel-3
|
|
%{_bindir}/wheel
|
|
|
|
%changelog
|
|
%{?autochangelog}
|