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:
parent
73e6d584f7
commit
164444305f
@ -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 <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
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user