|
@@ -3,33 +3,33 @@
|
|
|
Summary: Tool to create isolated Python environments
|
|
|
Summary(ja): 隔離されたPython環境を構築するためのツール
|
|
|
Name: python-%{oname}
|
|
|
-Version: 15.1.0
|
|
|
+Version: 20.0.31
|
|
|
Release: 1%{?_dist_release}
|
|
|
+Group: programming
|
|
|
+Vendor: Project Vine
|
|
|
+Distribution: Vine Linux
|
|
|
+Packager: yasumichi
|
|
|
|
|
|
-Group: Development/Languages
|
|
|
License: MIT
|
|
|
-URL: http://pypi.python.org/pypi/%{oname}
|
|
|
-Source0: http://pypi.python.org/packages/source/v/%{oname}/%{oname}-%{version}.tar.gz
|
|
|
-# virtualenv -p "/usr/bin/python3" venv fails if there are not packages installed
|
|
|
-# under /usr/local/lib/pythonX.Y/site-packages. Check if exec_dir exists before
|
|
|
-# listing it's content.
|
|
|
-Patch0: check-exec_dir.patch
|
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
-BuildArch: noarch
|
|
|
+URL: https://pypi.python.org/pypi/%{oname}
|
|
|
+Source0: https://pypi.python.org/packages/source/v/%{oname}/%{oname}-%{version}.tar.gz
|
|
|
+# Add /usr/share/python-wheels to extra_search_dir
|
|
|
|
|
|
-Vendor: Project Vine
|
|
|
-Distribution: Vine Linux
|
|
|
-Packager: yasumichi
|
|
|
+BuildArch: noarch
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
-BuildRequires: python3-rpm-macros
|
|
|
|
|
|
+BuildRequires: python2-rpm-macros
|
|
|
BuildRequires: python-devel
|
|
|
-Requires: python-devel
|
|
|
-
|
|
|
BuildRequires: python-setuptools
|
|
|
+Requires: python-devel
|
|
|
Requires: python-setuptools
|
|
|
|
|
|
+BuildRequires: python3-rpm-macros
|
|
|
+BuildRequires: python3-setuptools
|
|
|
+BuildRequires: python3-devel
|
|
|
+
|
|
|
|
|
|
%description
|
|
|
virtualenv is a tool to create isolated Python environments. virtualenv
|
|
@@ -41,7 +41,7 @@ licensed under an MIT-style permissive license.
|
|
|
%package -n python3-virtualenv
|
|
|
Summary: Tool to create isolated Python environments
|
|
|
Summary(ja): 隔離されたPython環境を構築するためのツール
|
|
|
-
|
|
|
+Group: programming
|
|
|
Requires: python3-setuptools
|
|
|
Requires: python3-devel
|
|
|
|
|
@@ -54,28 +54,34 @@ licensed under an MIT-style permissive license
|
|
|
|
|
|
%prep
|
|
|
%setup -q -n %{oname}-%{version}
|
|
|
-%{__sed} -i -e "1s|#!/usr/bin/env python||" virtualenv.py
|
|
|
+%{__sed} -i -e "1s|#!/usr/bin/env python||" tasks/update_embedded.py
|
|
|
+
|
|
|
+# Remove the wheels provided by RPM packages
|
|
|
+rm src/virtualenv/seed/wheels/embed/pip-*
|
|
|
+rm src/virtualenv/seed/wheels/embed/setuptools-*
|
|
|
+rm src/virtualenv/seed/wheels/embed/wheel-*
|
|
|
+
|
|
|
+test ! -f src/virtualenv/seed/embed/wheels/*.whl
|
|
|
|
|
|
-%patch0 -p1
|
|
|
|
|
|
%build
|
|
|
# Build code
|
|
|
-%{py_build}
|
|
|
+%{py2_build}
|
|
|
%{py3_build}
|
|
|
|
|
|
+
|
|
|
%install
|
|
|
rm -rf %{buildroot}
|
|
|
-%{py3_install}
|
|
|
-# rename binaries to use python3
|
|
|
-mv %{buildroot}/%{_bindir}/virtualenv %{buildroot}/%{_bindir}/py3-virtualenv
|
|
|
-# The versioned 3.x script was removed from upstream. Add it back.
|
|
|
-cp %{buildroot}/%{_bindir}/py3-virtualenv %{buildroot}/%{_bindir}/virtualenv-%{python3_version}
|
|
|
-cp %{buildroot}/%{_bindir}/py3-virtualenv %{buildroot}/%{_bindir}/virtualenv-3
|
|
|
-
|
|
|
-%{py_install}
|
|
|
+%{py2_install}
|
|
|
# The versioned 2.x script was removed from upstream. Add it back.
|
|
|
cp %{buildroot}/%{_bindir}/virtualenv %{buildroot}/%{_bindir}/virtualenv-%{python_version}
|
|
|
cp %{buildroot}/%{_bindir}/virtualenv %{buildroot}/%{_bindir}/virtualenv-2
|
|
|
+rm %{buildroot}/%{_bindir}/virtualenv
|
|
|
+
|
|
|
+%{py3_install}
|
|
|
+# The versioned 3.x script was removed from upstream. Add it back.
|
|
|
+cp %{buildroot}/%{_bindir}/virtualenv %{buildroot}/%{_bindir}/virtualenv-%{python3_version}
|
|
|
+cp %{buildroot}/%{_bindir}/virtualenv %{buildroot}/%{_bindir}/virtualenv-3
|
|
|
|
|
|
|
|
|
%clean
|
|
@@ -84,25 +90,27 @@ rm -rf %{buildroot}
|
|
|
|
|
|
%files
|
|
|
%defattr(-,root,root,-)
|
|
|
-%license LICENSE.txt
|
|
|
-%doc docs/*rst PKG-INFO AUTHORS.txt
|
|
|
-%{python_sitelib}/*
|
|
|
-%{_bindir}/virtualenv
|
|
|
+%license LICENSE
|
|
|
+%doc docs/*rst README*
|
|
|
%{_bindir}/virtualenv-2
|
|
|
%{_bindir}/virtualenv-%{python_version}
|
|
|
+%{python_sitelib}/*
|
|
|
|
|
|
%files -n python3-virtualenv
|
|
|
-%license LICENSE.txt
|
|
|
-%doc docs/*rst PKG-INFO AUTHORS.txt
|
|
|
-%{_bindir}/py3-virtualenv
|
|
|
+%license LICENSE
|
|
|
+%doc docs/*rst README*
|
|
|
+%{_bindir}/virtualenv
|
|
|
%{_bindir}/virtualenv-3
|
|
|
%{_bindir}/virtualenv-%{python3_version}
|
|
|
-%{python3_sitelib}/virtualenv.py
|
|
|
-%{python3_sitelib}/virtualenv_support/
|
|
|
+%{python3_sitelib}/virtualenv
|
|
|
%{python3_sitelib}/virtualenv-*.egg-info/
|
|
|
-%{python3_sitelib}/__pycache__/*
|
|
|
|
|
|
%changelog
|
|
|
+* Sat Aug 22 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 20.0.31-1
|
|
|
+- new upstream release.
|
|
|
+- made python3 primary (/usr/bin/virtualenv).
|
|
|
+- dropped Patch0.
|
|
|
+
|
|
|
* Mon Dec 18 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 15.1.0-1
|
|
|
- new upstream release.
|
|
|
- added Patch0.
|