## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 12; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: python-wheel0.37 Version: 0.37.1 # For a period of time, virtualenv obsoleted < 0.37.1-20, so ensure a higher release Release: %autorelease -b 20 Summary: A compatibility package with wheel 0.37 License: MIT URL: https://github.com/pypa/wheel Source: %{url}/archive/%{version}/wheel-%{version}.tar.gz # Make the tests compatible with setuptools 70+ # Normalized dist name, rebased from https://github.com/pypa/wheel/pull/651 Patch: tests-normalized-dist-name.patch # PEP 639 licesne directory, downstream only, upstream removed the code instead # See https://github.com/pypa/wheel/issues/658 Patch: tests-pep639-license-directory.patch BuildArch: noarch BuildRequires: python3-devel # For tests BuildRequires: gcc %global python_wheel_name wheel-%{version}-py2.py3-none-any.whl %global _description %{expand: Wheel is the reference implementation of the Python wheel packaging standard, as defined in PEP 427. It has two different roles: 1. A setuptools extension for building wheels that provides the bdist_wheel setuptools command. 2. A command line tool for working with wheel files. This is a compatibility package with an older version of wheel used by virtualenv to create virtual environments for Python < 3.7.} %description %_description %package -n %{python_wheel_pkg_prefix}-wheel0.37-wheel Summary: The Python wheel 0.37.x package packaged as a wheel Conflicts: %{python_wheel_pkg_prefix}-wheel-wheel < 1:0.38 # Virtual provides for the packages bundled by wheel. # Actual version can be found in git history: # https://github.com/pypa/wheel/commits/master/src/wheel/vendored/packaging/tags.py Provides: bundled(python3dist(packaging)) = 20.9 %description -n %{python_wheel_pkg_prefix}-wheel0.37-wheel A Python wheel of wheel 0.37.x to use with virtualenv to create virtual environments for Python < 3.7. %prep %autosetup -p1 -n wheel-%{version} sed -Ei '/(pytest|-)-cov/d' setup.cfg %generate_buildrequires %pyproject_buildrequires -x test %build %pyproject_wheel %install mkdir -p %{buildroot}%{python_wheel_dir} install -p %{_pyproject_wheeldir}/%{python_wheel_name} -t %{buildroot}%{python_wheel_dir} %check # We will use this wheel in virtualenv with Python 3.6, # so running the tests with the current Python version is not exactly what we need # but it is the best we can do here. export PYTHONPATH=%{buildroot}%{python_wheel_dir}/%{python_wheel_name} %pytest %files -n %{python_wheel_pkg_prefix}-wheel0.37-wheel %license LICENSE.txt # we own the dir for simplicity %dir %{python_wheel_dir}/ %{python_wheel_dir}/%{python_wheel_name} %changelog ## START: Generated by rpmautospec * Sat Jan 17 2026 Fedora Release Engineering - 0.37.1-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Mon Jan 12 2026 Miro Hrončok - 0.37.1-30 - Fix tests with setuptools 77+ * Mon Jan 12 2026 Miro Hrončok - 0.37.1-29 - Import the package after unretirement - Fixes: rhzb#2428252 ## END: Generated by rpmautospec