|
@@ -3,13 +3,17 @@
|
|
Summary: Tool to create isolated Python environments
|
|
Summary: Tool to create isolated Python environments
|
|
Summary(ja): 隔離されたPython環境を構築するためのツール
|
|
Summary(ja): 隔離されたPython環境を構築するためのツール
|
|
Name: python-%{oname}
|
|
Name: python-%{oname}
|
|
-Version: 1.11.6
|
|
|
|
|
|
+Version: 15.1.0
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
|
|
|
|
Group: Development/Languages
|
|
Group: Development/Languages
|
|
License: MIT
|
|
License: MIT
|
|
URL: http://pypi.python.org/pypi/%{oname}
|
|
URL: http://pypi.python.org/pypi/%{oname}
|
|
Source0: http://pypi.python.org/packages/source/v/%{oname}/%{oname}-%{version}.tar.gz
|
|
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
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
BuildArch: noarch
|
|
BuildArch: noarch
|
|
|
|
|
|
@@ -17,6 +21,9 @@ Vendor: Project Vine
|
|
Distribution: Vine Linux
|
|
Distribution: Vine Linux
|
|
Packager: yasumichi
|
|
Packager: yasumichi
|
|
|
|
|
|
|
|
+BuildRequires: python-rpm-macros
|
|
|
|
+BuildRequires: python3-rpm-macros
|
|
|
|
+
|
|
BuildRequires: python-devel
|
|
BuildRequires: python-devel
|
|
Requires: python-devel
|
|
Requires: python-devel
|
|
|
|
|
|
@@ -31,33 +38,77 @@ written by Ian Bicking, and sponsored by the Open Planning Project. It is
|
|
licensed under an MIT-style permissive license.
|
|
licensed under an MIT-style permissive license.
|
|
|
|
|
|
|
|
|
|
|
|
+%package -n python3-virtualenv
|
|
|
|
+Summary: Tool to create isolated Python environments
|
|
|
|
+Summary(ja): 隔離されたPython環境を構築するためのツール
|
|
|
|
+
|
|
|
|
+Requires: python3-setuptools
|
|
|
|
+Requires: python3-devel
|
|
|
|
+
|
|
|
|
+%description -n python3-virtualenv
|
|
|
|
+virtualenv is a tool to create isolated Python environments. virtualenv
|
|
|
|
+is a successor to workingenv, and an extension of virtual-python. It is
|
|
|
|
+written by Ian Bicking, and sponsored by the Open Planning Project. It is
|
|
|
|
+licensed under an MIT-style permissive license
|
|
|
|
+
|
|
|
|
+
|
|
%prep
|
|
%prep
|
|
%setup -q -n %{oname}-%{version}
|
|
%setup -q -n %{oname}-%{version}
|
|
%{__sed} -i -e "1s|#!/usr/bin/env python||" virtualenv.py
|
|
%{__sed} -i -e "1s|#!/usr/bin/env python||" virtualenv.py
|
|
|
|
|
|
|
|
+%patch0 -p1
|
|
|
|
|
|
%build
|
|
%build
|
|
-%{__python} setup.py build
|
|
|
|
-
|
|
|
|
|
|
+# Build code
|
|
|
|
+%{py_build}
|
|
|
|
+%{py3_build}
|
|
|
|
|
|
%install
|
|
%install
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
|
-%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
|
|
|
|
|
+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}
|
|
|
|
+# 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
|
|
|
|
+
|
|
|
|
|
|
-
|
|
|
|
%clean
|
|
%clean
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
+rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
-%doc docs/*.rst PKG-INFO
|
|
|
|
-# For noarch packages: sitelib
|
|
|
|
|
|
+%license LICENSE.txt
|
|
|
|
+%doc docs/*rst PKG-INFO AUTHORS.txt
|
|
%{python_sitelib}/*
|
|
%{python_sitelib}/*
|
|
-%attr(755,root,root) %{_bindir}/virtualenv*
|
|
|
|
-
|
|
|
|
|
|
+%{_bindir}/virtualenv
|
|
|
|
+%{_bindir}/virtualenv-2
|
|
|
|
+%{_bindir}/virtualenv-%{python_version}
|
|
|
|
+
|
|
|
|
+%files -n python3-virtualenv
|
|
|
|
+%license LICENSE.txt
|
|
|
|
+%doc docs/*rst PKG-INFO AUTHORS.txt
|
|
|
|
+%{_bindir}/py3-virtualenv
|
|
|
|
+%{_bindir}/virtualenv-3
|
|
|
|
+%{_bindir}/virtualenv-%{python3_version}
|
|
|
|
+%{python3_sitelib}/virtualenv.py
|
|
|
|
+%{python3_sitelib}/virtualenv_support/
|
|
|
|
+%{python3_sitelib}/virtualenv-*.egg-info/
|
|
|
|
+%{python3_sitelib}/__pycache__/*
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Mon Dec 18 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 15.1.0-1
|
|
|
|
+- new upstream release.
|
|
|
|
+- added Patch0.
|
|
|
|
+- made to use python{,3}-rpm-macros.
|
|
|
|
+- added a sub-package for python3.
|
|
|
|
+
|
|
* Sat Aug 02 2014 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.11.6-1
|
|
* Sat Aug 02 2014 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.11.6-1
|
|
- new upstream release
|
|
- new upstream release
|
|
- add Vendor, Distribution and Packager
|
|
- add Vendor, Distribution and Packager
|
|
@@ -74,13 +125,13 @@ rm -rf $RPM_BUILD_ROOT
|
|
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.4.8-4
|
|
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.4.8-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
|
|
|
-* Tue Jul 7 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.4.8-3
|
|
|
|
|
|
+* Wed Jul 7 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.4.8-3
|
|
- Fixed EPEL installation issue from BZ#611536
|
|
- Fixed EPEL installation issue from BZ#611536
|
|
|
|
|
|
* Tue Jun 8 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.4.8-2
|
|
* Tue Jun 8 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.4.8-2
|
|
- Only replace the python shebang on the first line (Robert Buchholz)
|
|
- Only replace the python shebang on the first line (Robert Buchholz)
|
|
|
|
|
|
-* Fri Apr 28 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.4.8-1
|
|
|
|
|
|
+* Wed Apr 28 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.4.8-1
|
|
- update pip to 0.7
|
|
- update pip to 0.7
|
|
- move regen-docs into bin/
|
|
- move regen-docs into bin/
|
|
- Fix #31, make activate_this.py work on Windows (use Lib/site-packages)
|
|
- Fix #31, make activate_this.py work on Windows (use Lib/site-packages)
|