rename virtualenv to virtualenv2 in py2 package to support co-existence [release 15.1.0-2mamba;Thu Jul 13 2017]

This commit is contained in:
Silvan Calarco 2024-01-05 16:50:41 +01:00
parent 73e6d584f7
commit 164444305f

View File

@ -1,6 +1,6 @@
Name: python-virtualenv Name: python-virtualenv
Version: 15.1.0 Version: 15.1.0
Release: 1mamba Release: 2mamba
Summary: Virtual Python Environment builder Summary: Virtual Python Environment builder
Group: System/Libraries/Python Group: System/Libraries/Python
Vendor: openmamba Vendor: openmamba
@ -42,10 +42,22 @@ virtualenv is a tool to create isolated Python environments.
--record=%{name}.filelist --record=%{name}.filelist
install -d %{buildroot}%{_mandir}/man1 install -d %{buildroot}%{_mandir}/man1
help2man \ help2man \
--version-string="virtualenv %{version}" \ --version-string="virtualenv %{version}" \
--output=%{buildroot}%{_mandir}/man1/virtualenv.1 \ --output=%{buildroot}%{_mandir}/man1/virtualenv.1 \
./virtualenv.py ./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 #echo "%{_mandir}/man1/virtualenv.1" >> %{name}.filelist
#sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist #sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
@ -55,9 +67,12 @@ help2man \
%files %{?pyappend} -f %{name}.filelist %files %{?pyappend} -f %{name}.filelist
%defattr(-,root,root) %defattr(-,root,root)
%{_mandir}/man1/virtualenv.1* %{_mandir}/man1/virtualenv*.1*
%changelog %changelog
* Thu Jul 13 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 15.1.0-2mamba
- rename virtualenv to virtualenv2 in py2 package to support co-existence
* Mon Mar 06 2017 Automatic Build System <autodist@mambasoft.it> 15.1.0-1mamba * Mon Mar 06 2017 Automatic Build System <autodist@mambasoft.it> 15.1.0-1mamba
- automatic version update by autodist - automatic version update by autodist