update to 16.7.9 [release 16.7.9-1mamba;Tue Jan 21 2020]
This commit is contained in:
parent
281d61957d
commit
8b5a145b21
@ -1,4 +1,3 @@
|
||||
# python-virtualenv
|
||||
|
||||
virtualenv is a tool to create isolated Python environments.
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
Name: python-virtualenv
|
||||
Version: 16.7.2
|
||||
Version: 16.7.9
|
||||
Release: 1mamba
|
||||
Summary: Virtual Python Environment builder
|
||||
Group: System/Libraries/Python
|
||||
@ -13,38 +13,43 @@ License: MIT
|
||||
BuildRequires: libpython-devel
|
||||
## AUTOBUILDREQ-END
|
||||
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: libpython3-devel
|
||||
Requires: python-setuptools-py3
|
||||
%else
|
||||
Requires: python >= %python_version
|
||||
Requires: libpython-devel
|
||||
Requires: python-setuptools
|
||||
%endif
|
||||
Obsoletes: python-virtualenv-py3
|
||||
Obsoletes: python-virtualenv-py36
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
virtualenv is a tool to create isolated Python environments.
|
||||
|
||||
%if "%{?with_pyver}"
|
||||
%pyver_package
|
||||
%endif
|
||||
#% if "%{?with_pyver}"
|
||||
#% pyver_package
|
||||
#% endif
|
||||
|
||||
%prep
|
||||
%setup -q -n virtualenv-%{version}
|
||||
|
||||
%build
|
||||
%{__python} setup.py build
|
||||
%{__python3} setup.py build
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
%{__python} setup.py install \
|
||||
%{__python3} setup.py install \
|
||||
-O1 --skip-build \
|
||||
--root="%{buildroot}" \
|
||||
--install-headers=%{_includedir}/python \
|
||||
--install-lib=%{python_sitearch} \
|
||||
--install-lib=%{python3_sitearch} \
|
||||
--single-version-externally-managed \
|
||||
--record=%{name}.filelist
|
||||
|
||||
@ -55,19 +60,19 @@ install -d %{buildroot}%{_mandir}/man1
|
||||
# --output=%{buildroot}%{_mandir}/man1/virtualenv.1 \
|
||||
# ./virtualenv.py
|
||||
|
||||
%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
|
||||
#%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
|
||||
|
||||
@ -78,9 +83,11 @@ sed -i "s|%{_bindir}/virtualenv|%{_bindir}/virtualenv2|" %{name}.filelist
|
||||
|
||||
%files %{?pyappend} -f %{name}.filelist
|
||||
%defattr(-,root,root)
|
||||
#%{_mandir}/man1/virtualenv*.1*
|
||||
|
||||
%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
|
||||
- update to 16.7.2
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user