%global pyver 3.15 %global python python%{pyver} %global puresitedir %{_prefix}/lib/python%{pyver}/site-packages Name: python%{pyver}-virtualenv Version: 21.6.0 Release: 1%{?dist} Summary: Virtual Python Environment builder License: MIT URL: https://github.com/pypa/virtualenv Source0: https://files.pythonhosted.org/packages/source/v/virtualenv/virtualenv-%{version}.tar.gz BuildArch: noarch BuildRequires: python%{pyver} BuildRequires: python%{pyver}-libs BuildRequires: python%{pyver}-hatchling BuildRequires: python%{pyver}-hatch-vcs BuildRequires: python%{pyver}-setuptools-scm BuildRequires: python%{pyver}-pip BuildRequires: python%{pyver}-installer BuildRequires: python%{pyver}-trove-classifiers Requires: python%{pyver}-libs Requires: python%{pyver}-platformdirs Requires: python%{pyver}-filelock Requires: python%{pyver}-distlib %description A tool to create isolated Python environments. %prep %autosetup -n virtualenv-%{version} %build SETUPTOOLS_SCM_PRETEND_VERSION=%{version} %{python} -m pip wheel --no-deps --no-build-isolation -w dist . %install %{python} -m installer --destdir=%{buildroot} dist/*.whl find %{buildroot}%{_bindir} -type f -exec \ sed -i '1s|^#!.*python.*$|#!/usr/bin/python%{pyver}|' {} \; 2>/dev/null || true %files %license LICENSE %{_bindir}/virtualenv %{puresitedir}/virtualenv/ %{puresitedir}/virtualenv-%{version}.dist-info/ %changelog * Thu Jul 09 2026 Yonghang Wang - 21.6.0-1%{?dist} - Build for al2023