update to 16.7.9 [release 16.7.9-1mamba;Tue Jan 21 2020]

This commit is contained in:
Silvan Calarco 2024-01-05 16:50:41 +01:00
parent 281d61957d
commit 8b5a145b21
2 changed files with 34 additions and 28 deletions

View File

@ -1,4 +1,3 @@
# python-virtualenv # python-virtualenv
virtualenv is a tool to create isolated Python environments. virtualenv is a tool to create isolated Python environments.

View File

@ -1,5 +1,5 @@
Name: python-virtualenv Name: python-virtualenv
Version: 16.7.2 Version: 16.7.9
Release: 1mamba Release: 1mamba
Summary: Virtual Python Environment builder Summary: Virtual Python Environment builder
Group: System/Libraries/Python Group: System/Libraries/Python
@ -13,38 +13,43 @@ License: MIT
BuildRequires: libpython-devel BuildRequires: libpython-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRequires: help2man BuildRequires: help2man
%if "%{?with_pyver}" #%if "%{?with_pyver}"
#Requires: python3 >= %python3_version
#Requires: libpython3-devel
#Requires: python-setuptools-py3
#%else
#Requires: python >= %python_version
#Requires: libpython-devel
#Requires: python-setuptools
#%endif
Requires: python3 >= %python3_version Requires: python3 >= %python3_version
Requires: libpython3-devel Requires: libpython3-devel
Requires: python-setuptools-py3 Requires: python-setuptools-py3
%else Obsoletes: python-virtualenv-py3
Requires: python >= %python_version Obsoletes: python-virtualenv-py36
Requires: libpython-devel
Requires: python-setuptools
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildArch: noarch 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}"
%pyver_package #% pyver_package
%endif #% endif
%prep %prep
%setup -q -n virtualenv-%{version} %setup -q -n virtualenv-%{version}
%build %build
%{__python} setup.py build %{__python3} setup.py build
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \ %{__python3} setup.py install \
-O1 --skip-build \ -O1 --skip-build \
--root="%{buildroot}" \ --root="%{buildroot}" \
--install-headers=%{_includedir}/python \ --install-headers=%{_includedir}/python \
--install-lib=%{python_sitearch} \ --install-lib=%{python3_sitearch} \
--single-version-externally-managed \ --single-version-externally-managed \
--record=%{name}.filelist --record=%{name}.filelist
@ -55,19 +60,19 @@ install -d %{buildroot}%{_mandir}/man1
# --output=%{buildroot}%{_mandir}/man1/virtualenv.1 \ # --output=%{buildroot}%{_mandir}/man1/virtualenv.1 \
# ./virtualenv.py # ./virtualenv.py
%if "%{?with_pyver}" == "36" #%if "%{?with_pyver}" == "36"
ln -s virtualenv %{buildroot}%{_bindir}/virtualenv3 #ln -s virtualenv %{buildroot}%{_bindir}/virtualenv3
echo "%{_bindir}/virtualenv3" >> %{name}.filelist #echo "%{_bindir}/virtualenv3" >> %{name}.filelist
%else #%else
%if "%{?with_pyver}" == "3" #%if "%{?with_pyver}" == "3"
mv %{buildroot}%{_bindir}/virtualenv %{buildroot}%{_bindir}/virtualenv33 #mv %{buildroot}%{_bindir}/virtualenv %{buildroot}%{_bindir}/virtualenv33
sed -i "s|%{_bindir}/virtualenv|%{_bindir}/virtualenv33|" %{name}.filelist #sed -i "s|%{_bindir}/virtualenv|%{_bindir}/virtualenv33|" %{name}.filelist
%else #%else
mv %{buildroot}%{_bindir}/virtualenv %{buildroot}%{_bindir}/virtualenv2 #mv %{buildroot}%{_bindir}/virtualenv %{buildroot}%{_bindir}/virtualenv2
sed -i "s|%{_bindir}/virtualenv|%{_bindir}/virtualenv2|" %{name}.filelist #sed -i "s|%{_bindir}/virtualenv|%{_bindir}/virtualenv2|" %{name}.filelist
#mv %{buildroot}%{_mandir}/man1/virtualenv.1 %{buildroot}%{_mandir}/man1/virtualenv2.1 ##mv %{buildroot}%{_mandir}/man1/virtualenv.1 %{buildroot}%{_mandir}/man1/virtualenv2.1
%endif #%endif
%endif #%endif
#echo "%{_mandir}/man1/virtualenv.1" >> %{name}.filelist #echo "%{_mandir}/man1/virtualenv.1" >> %{name}.filelist
@ -78,9 +83,11 @@ sed -i "s|%{_bindir}/virtualenv|%{_bindir}/virtualenv2|" %{name}.filelist
%files %{?pyappend} -f %{name}.filelist %files %{?pyappend} -f %{name}.filelist
%defattr(-,root,root) %defattr(-,root,root)
#%{_mandir}/man1/virtualenv*.1*
%changelog %changelog
* Tue Jan 21 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 16.7.9-1mamba
- update to 16.7.9
* Fri Aug 09 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 16.7.2-1mamba * Fri Aug 09 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 16.7.2-1mamba
- update to 16.7.2 - update to 16.7.2