diff --git a/README.md b/README.md index 51fe9e1..72ff7d1 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ # python-virtualenv virtualenv is a tool to create isolated Python environments. - diff --git a/python-virtualenv.spec b/python-virtualenv.spec index d1565e3..957f211 100644 --- a/python-virtualenv.spec +++ b/python-virtualenv.spec @@ -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 16.7.9-1mamba +- update to 16.7.9 + * Fri Aug 09 2019 Silvan Calarco 16.7.2-1mamba - update to 16.7.2