provide/obsolete python-virtualenv* only in py3 package [release 20.16.5-3mamba;Mon Oct 10 2022]
This commit is contained in:
parent
14d3399d79
commit
d8c37ba3e5
@ -1,6 +1,6 @@
|
|||||||
Name: python-virtualenv
|
Name: python-virtualenv
|
||||||
Version: 20.16.5
|
Version: 20.16.5
|
||||||
Release: 1mamba
|
Release: 3mamba
|
||||||
Summary: Virtual Python Environment builder
|
Summary: Virtual Python Environment builder
|
||||||
Group: System/Libraries/Python
|
Group: System/Libraries/Python
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -23,11 +23,14 @@ BuildArch: noarch
|
|||||||
%description
|
%description
|
||||||
virtualenv is a tool to create isolated Python environments.
|
virtualenv is a tool to create isolated Python environments.
|
||||||
|
|
||||||
%if "%{?with_pyver}"
|
%if "%{?with_pyver}" == "3"
|
||||||
%define py_requires_append \
|
%define py_requires_append \
|
||||||
Provides: python-virtualenv \
|
Provides: python-virtualenv \
|
||||||
Obsoletes: python-virtualenv <= 20.7.2-1mamba \
|
Obsoletes: python-virtualenv <= 20.7.2-1mamba \
|
||||||
Obsoletes: python-virtualenv-py36 < 20.4.0
|
Obsoletes: python-virtualenv-py36 < 20.4.0
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?with_pyver}
|
||||||
%pyver_package
|
%pyver_package
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -54,28 +57,10 @@ sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
|||||||
|
|
||||||
install -d %{buildroot}%{_mandir}/man1
|
install -d %{buildroot}%{_mandir}/man1
|
||||||
|
|
||||||
#help2man \
|
%if "%{?with_pyver}" != "3"
|
||||||
# --version-string="virtualenv %{version}" \
|
mv %{buildroot}%{_bindir}/virtualenv{,-%{?pyappend}}
|
||||||
# --output=%{buildroot}%{_mandir}/man1/virtualenv.1 \
|
sed -i "s|%{_bindir}/virtualenv|%{_bindir}/virtualenv-%{?pyappend}|" %{name}.filelist
|
||||||
# ./virtualenv.py
|
%endif
|
||||||
|
|
||||||
#%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
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
@ -86,6 +71,12 @@ install -d %{buildroot}%{_mandir}/man1
|
|||||||
%{python_sitearch}/virtualenv-%{version}-py*.egg-info/*
|
%{python_sitearch}/virtualenv-%{version}-py*.egg-info/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Oct 10 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 20.16.5-3mamba
|
||||||
|
- provide/obsolete python-virtualenv* only in py3 package
|
||||||
|
|
||||||
|
* Sun Oct 09 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 20.16.5-2mamba
|
||||||
|
- rebuilt with python 3.10
|
||||||
|
|
||||||
* Mon Sep 12 2022 Automatic Build System <autodist@mambasoft.it> 20.16.5-1mamba
|
* Mon Sep 12 2022 Automatic Build System <autodist@mambasoft.it> 20.16.5-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user