From 164444305f6dcb84015dadc9a79945a039654b52 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 16:50:41 +0100 Subject: [PATCH] rename virtualenv to virtualenv2 in py2 package to support co-existence [release 15.1.0-2mamba;Thu Jul 13 2017] --- python-virtualenv.spec | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/python-virtualenv.spec b/python-virtualenv.spec index 54f0f76..c68a9a9 100644 --- a/python-virtualenv.spec +++ b/python-virtualenv.spec @@ -1,6 +1,6 @@ Name: python-virtualenv Version: 15.1.0 -Release: 1mamba +Release: 2mamba Summary: Virtual Python Environment builder Group: System/Libraries/Python Vendor: openmamba @@ -42,10 +42,22 @@ virtualenv is a tool to create isolated Python environments. --record=%{name}.filelist install -d %{buildroot}%{_mandir}/man1 + help2man \ --version-string="virtualenv %{version}" \ --output=%{buildroot}%{_mandir}/man1/virtualenv.1 \ ./virtualenv.py + +%if "%{?with_pyver}" == "3" +ln -s virtualenv %{buildroot}%{_bindir}/virtualenv3 +echo "%{_bindir}/virtualenv3" >> %{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 + + #echo "%{_mandir}/man1/virtualenv.1" >> %{name}.filelist #sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist @@ -55,9 +67,12 @@ help2man \ %files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) -%{_mandir}/man1/virtualenv.1* +%{_mandir}/man1/virtualenv*.1* %changelog +* Thu Jul 13 2017 Silvan Calarco 15.1.0-2mamba +- rename virtualenv to virtualenv2 in py2 package to support co-existence + * Mon Mar 06 2017 Automatic Build System 15.1.0-1mamba - automatic version update by autodist