diff --git a/python-virtualenv.spec b/python-virtualenv.spec index 0b73444bbdb51aada985bbddb19c7465d4c228db..2e0c1f108867b54be4a312dee88b8af04428990b 100644 --- a/python-virtualenv.spec +++ b/python-virtualenv.spec @@ -1,15 +1,20 @@ -%global srcname virtualenv -Name: python-%{srcname} -Version: 20.4.7 -Release: 2 +%global pypi_name virtualenv +Name: python-%{pypi_name} +Version: 20.23.0 +Release: 1 Summary: A tool to create isolated Python environments License: MIT URL: http://pypi.python.org/pypi/virtualenv -Source0: https://files.pythonhosted.org/packages/7c/46/4d4c37b6d96eb06961f8b2f38f7df12bb1a4951ff1145ac5dead9977e674/virtualenv-20.4.7.tar.gz +Source0: %{pypi_source %{pypi_name}} BuildArch: noarch -BuildRequires: python3-appdirs python3-distlib python3-filelock python3-six -BuildRequires: python3-devel python3-setuptools_scm python3-setuptools +BuildRequires: python3-distlib python3-filelock +BuildRequires: python3-devel python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-editables +BuildRequires: python3-hatch-vcs +BuildRequires: python3-hatchling %description Virtualenv is a tool to create isolated Python environments. Since Python @@ -23,33 +28,41 @@ Python versions and some more advanced features. %package -n python3-virtualenv Summary: Tool to create isolated Python environments -Requires: python3-setuptools python3-appdirs -Requires: python3-distlib python3-filelock python3-six +Requires: python3-setuptools +Requires: python3-distlib python3-filelock %{?python_provide:%python_provide python3-virtualenv} Provides: virtualenv = %{version}-%{release} Requires: python-pip-wheel python-setuptools-wheel python-wheel-wheel -Requires: python3-appdirs python3-distlib python3-filelock +Requires: python3-distlib python3-filelock Obsoletes: python3-virtualenv-python26 < %{version}-%{release} -%description -n python3-virtualenv +%description -n python3-%{pypi_name} virtualenv support in python3. %prep -%autosetup -n virtualenv-%{version} -p1 +%autosetup -n %{pypi_name}-%{version} -p1 %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_install +# revert the version.py content to origin sources +export ver_pyfile=$(find %{buildroot}%{python3_sitelib}/%{pypi_name} -name version.py) +sed -i "s/^version = /__version__ = version = /g" ${ver_pyfile} +sed -i "s/^version_tuple = /__version_tuple__ = version_tuple = /g" ${ver_pyfile} -%files -n python3-virtualenv +%files -n python3-%{pypi_name} %license LICENSE -%doc docs/*rst PKG-INFO -%{python3_sitelib}/virtualenv* +%doc README.md %{_bindir}/virtualenv +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}*.dist-info/ %changelog +* Sun Jun 4 2023 Dongxing Wang - 20.23.0-1 +- update version to 20.23.0 + * Tue May 16 2023 shixuantong - 20.4.7-2 - remove python3-virtualenv-python26 diff --git a/virtualenv-20.4.7.tar.gz b/virtualenv-20.23.0.tar.gz similarity index 48% rename from virtualenv-20.4.7.tar.gz rename to virtualenv-20.23.0.tar.gz index 35e644fa72fb39a4205594c4184136c5db8c5cd4..1368d3fb65ab2524dc7bec830b69133a2c873216 100644 Binary files a/virtualenv-20.4.7.tar.gz and b/virtualenv-20.23.0.tar.gz differ