From d8c37ba3e56154b3311e7210a542f1a00cf860f8 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 16:50:43 +0100 Subject: [PATCH] provide/obsolete python-virtualenv* only in py3 package [release 20.16.5-3mamba;Mon Oct 10 2022] --- python-virtualenv.spec | 39 +++++++++++++++------------------------ 1 file changed, 15 insertions(+), 24 deletions(-) diff --git a/python-virtualenv.spec b/python-virtualenv.spec index 56831a9..55861ac 100644 --- a/python-virtualenv.spec +++ b/python-virtualenv.spec @@ -1,6 +1,6 @@ Name: python-virtualenv Version: 20.16.5 -Release: 1mamba +Release: 3mamba Summary: Virtual Python Environment builder Group: System/Libraries/Python Vendor: openmamba @@ -23,11 +23,14 @@ BuildArch: noarch %description virtualenv is a tool to create isolated Python environments. -%if "%{?with_pyver}" +%if "%{?with_pyver}" == "3" %define py_requires_append \ Provides: python-virtualenv \ Obsoletes: python-virtualenv <= 20.7.2-1mamba \ Obsoletes: python-virtualenv-py36 < 20.4.0 +%endif + +%if 0%{?with_pyver} %pyver_package %endif @@ -54,28 +57,10 @@ sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist install -d %{buildroot}%{_mandir}/man1 -#help2man \ -# --version-string="virtualenv %{version}" \ -# --output=%{buildroot}%{_mandir}/man1/virtualenv.1 \ -# ./virtualenv.py - -#%if "%{?with_pyver}" == "36" -#ln -s virtualenv %{buildroot}%{_bindir}/virtualenv3 -#echo "%{_bindir}/virtualenv3" >> %{name}.filelist -#%else -#%if "%{?with_pyver}" == "3" -#mv %{buildroot}%{_bindir}/virtualenv %{buildroot}%{_bindir}/virtualenv33 -#sed -i "s|%{_bindir}/virtualenv|%{_bindir}/virtualenv33|" %{name}.filelist -#%else -#mv %{buildroot}%{_bindir}/virtualenv %{buildroot}%{_bindir}/virtualenv2 -#sed -i "s|%{_bindir}/virtualenv|%{_bindir}/virtualenv2|" %{name}.filelist -##mv %{buildroot}%{_mandir}/man1/virtualenv.1 %{buildroot}%{_mandir}/man1/virtualenv2.1 -#%endif -#%endif - -#echo "%{_mandir}/man1/virtualenv.1" >> %{name}.filelist - -#sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist +%if "%{?with_pyver}" != "3" +mv %{buildroot}%{_bindir}/virtualenv{,-%{?pyappend}} +sed -i "s|%{_bindir}/virtualenv|%{_bindir}/virtualenv-%{?pyappend}|" %{name}.filelist +%endif %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -86,6 +71,12 @@ install -d %{buildroot}%{_mandir}/man1 %{python_sitearch}/virtualenv-%{version}-py*.egg-info/* %changelog +* Mon Oct 10 2022 Silvan Calarco 20.16.5-3mamba +- provide/obsolete python-virtualenv* only in py3 package + +* Sun Oct 09 2022 Silvan Calarco 20.16.5-2mamba +- rebuilt with python 3.10 + * Mon Sep 12 2022 Automatic Build System 20.16.5-1mamba - automatic version update by autodist