[1763] | 1 | %global oname virtualenv |
---|
| 2 | |
---|
| 3 | Summary: Tool to create isolated Python environments |
---|
| 4 | Summary(ja): 隔離されたPython環境を構築するためのツール |
---|
| 5 | Name: python-%{oname} |
---|
[12479] | 6 | Version: 20.0.31 |
---|
[8880] | 7 | Release: 1%{?_dist_release} |
---|
[12479] | 8 | Group: programming |
---|
| 9 | Vendor: Project Vine |
---|
| 10 | Distribution: Vine Linux |
---|
| 11 | Packager: yasumichi |
---|
[1763] | 12 | |
---|
| 13 | License: MIT |
---|
[12479] | 14 | URL: https://pypi.python.org/pypi/%{oname} |
---|
| 15 | Source0: https://pypi.python.org/packages/source/v/%{oname}/%{oname}-%{version}.tar.gz |
---|
| 16 | # Add /usr/share/python-wheels to extra_search_dir |
---|
| 17 | |
---|
| 18 | BuildArch: noarch |
---|
[1763] | 19 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 20 | |
---|
[11273] | 21 | BuildRequires: python-rpm-macros |
---|
| 22 | |
---|
[12479] | 23 | BuildRequires: python2-rpm-macros |
---|
[1763] | 24 | BuildRequires: python-devel |
---|
[12479] | 25 | BuildRequires: python-setuptools |
---|
[8880] | 26 | Requires: python-devel |
---|
[1763] | 27 | Requires: python-setuptools |
---|
| 28 | |
---|
[12479] | 29 | BuildRequires: python3-rpm-macros |
---|
| 30 | BuildRequires: python3-setuptools |
---|
| 31 | BuildRequires: python3-devel |
---|
[1763] | 32 | |
---|
[12479] | 33 | |
---|
[1763] | 34 | %description |
---|
| 35 | virtualenv is a tool to create isolated Python environments. virtualenv |
---|
| 36 | is a successor to workingenv, and an extension of virtual-python. It is |
---|
| 37 | written by Ian Bicking, and sponsored by the Open Planning Project. It is |
---|
| 38 | licensed under an MIT-style permissive license. |
---|
| 39 | |
---|
| 40 | |
---|
[11273] | 41 | %package -n python3-virtualenv |
---|
| 42 | Summary: Tool to create isolated Python environments |
---|
| 43 | Summary(ja): 隔離されたPython環境を構築するためのツール |
---|
[12479] | 44 | Group: programming |
---|
[11273] | 45 | Requires: python3-setuptools |
---|
| 46 | Requires: python3-devel |
---|
| 47 | |
---|
| 48 | %description -n python3-virtualenv |
---|
| 49 | virtualenv is a tool to create isolated Python environments. virtualenv |
---|
| 50 | is a successor to workingenv, and an extension of virtual-python. It is |
---|
| 51 | written by Ian Bicking, and sponsored by the Open Planning Project. It is |
---|
| 52 | licensed under an MIT-style permissive license |
---|
| 53 | |
---|
| 54 | |
---|
[1763] | 55 | %prep |
---|
| 56 | %setup -q -n %{oname}-%{version} |
---|
[12479] | 57 | %{__sed} -i -e "1s|#!/usr/bin/env python||" tasks/update_embedded.py |
---|
[1763] | 58 | |
---|
[12479] | 59 | # Remove the wheels provided by RPM packages |
---|
| 60 | rm src/virtualenv/seed/wheels/embed/pip-* |
---|
| 61 | rm src/virtualenv/seed/wheels/embed/setuptools-* |
---|
| 62 | rm src/virtualenv/seed/wheels/embed/wheel-* |
---|
[1763] | 63 | |
---|
[12479] | 64 | test ! -f src/virtualenv/seed/embed/wheels/*.whl |
---|
| 65 | |
---|
| 66 | |
---|
[1763] | 67 | %build |
---|
[11273] | 68 | # Build code |
---|
[12479] | 69 | %{py2_build} |
---|
[11273] | 70 | %{py3_build} |
---|
[1763] | 71 | |
---|
[12479] | 72 | |
---|
[1763] | 73 | %install |
---|
[11273] | 74 | rm -rf %{buildroot} |
---|
[12479] | 75 | %{py2_install} |
---|
[11273] | 76 | # The versioned 2.x script was removed from upstream. Add it back. |
---|
| 77 | cp %{buildroot}/%{_bindir}/virtualenv %{buildroot}/%{_bindir}/virtualenv-%{python_version} |
---|
| 78 | cp %{buildroot}/%{_bindir}/virtualenv %{buildroot}/%{_bindir}/virtualenv-2 |
---|
[12479] | 79 | rm %{buildroot}/%{_bindir}/virtualenv |
---|
[11273] | 80 | |
---|
[12479] | 81 | %{py3_install} |
---|
| 82 | # The versioned 3.x script was removed from upstream. Add it back. |
---|
| 83 | cp %{buildroot}/%{_bindir}/virtualenv %{buildroot}/%{_bindir}/virtualenv-%{python3_version} |
---|
| 84 | cp %{buildroot}/%{_bindir}/virtualenv %{buildroot}/%{_bindir}/virtualenv-3 |
---|
[11273] | 85 | |
---|
[12479] | 86 | |
---|
[1763] | 87 | %clean |
---|
[11273] | 88 | rm -rf %{buildroot} |
---|
[1763] | 89 | |
---|
| 90 | |
---|
| 91 | %files |
---|
| 92 | %defattr(-,root,root,-) |
---|
[12479] | 93 | %license LICENSE |
---|
| 94 | %doc docs/*rst README* |
---|
[11273] | 95 | %{_bindir}/virtualenv-2 |
---|
| 96 | %{_bindir}/virtualenv-%{python_version} |
---|
[12479] | 97 | %{python_sitelib}/* |
---|
[1763] | 98 | |
---|
[11273] | 99 | %files -n python3-virtualenv |
---|
[12479] | 100 | %license LICENSE |
---|
| 101 | %doc docs/*rst README* |
---|
| 102 | %{_bindir}/virtualenv |
---|
[11273] | 103 | %{_bindir}/virtualenv-3 |
---|
| 104 | %{_bindir}/virtualenv-%{python3_version} |
---|
[12479] | 105 | %{python3_sitelib}/virtualenv |
---|
[11273] | 106 | %{python3_sitelib}/virtualenv-*.egg-info/ |
---|
[1763] | 107 | |
---|
| 108 | %changelog |
---|
[12479] | 109 | * Sat Aug 22 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 20.0.31-1 |
---|
| 110 | - new upstream release. |
---|
| 111 | - made python3 primary (/usr/bin/virtualenv). |
---|
| 112 | - dropped Patch0. |
---|
| 113 | |
---|
[11273] | 114 | * Mon Dec 18 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 15.1.0-1 |
---|
| 115 | - new upstream release. |
---|
| 116 | - added Patch0. |
---|
| 117 | - made to use python{,3}-rpm-macros. |
---|
| 118 | - added a sub-package for python3. |
---|
| 119 | |
---|
[8880] | 120 | * Sat Aug 02 2014 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.11.6-1 |
---|
| 121 | - new upstream release |
---|
| 122 | - add Vendor, Distribution and Packager |
---|
| 123 | |
---|
[5701] | 124 | * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.5.1-2 |
---|
| 125 | - rebuild with python-2.7.2 |
---|
| 126 | |
---|
[2228] | 127 | * Mon Nov 22 2010 Shu KONNO <owa@bg.wakwak.com> 1.5.1-1 |
---|
| 128 | - updated virtualenv to 1.5.1 |
---|
| 129 | |
---|
[1763] | 130 | * Sat Sep 04 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.8-1 |
---|
| 131 | - initial build for Vine Linux |
---|
| 132 | |
---|
| 133 | * Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.4.8-4 |
---|
| 134 | - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild |
---|
| 135 | |
---|
[11273] | 136 | * Wed Jul 7 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.4.8-3 |
---|
[1763] | 137 | - Fixed EPEL installation issue from BZ#611536 |
---|
| 138 | |
---|
| 139 | * Tue Jun 8 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.4.8-2 |
---|
| 140 | - Only replace the python shebang on the first line (Robert Buchholz) |
---|
| 141 | |
---|
[11273] | 142 | * Wed Apr 28 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.4.8-1 |
---|
[1763] | 143 | - update pip to 0.7 |
---|
| 144 | - move regen-docs into bin/ |
---|
| 145 | - Fix #31, make activate_this.py work on Windows (use Lib/site-packages) |
---|
| 146 | unset PYTHONHOME envioronment variable -- first step towards fixing the PYTHONHOME issue; see e.g. https://bugs.launchpad.net/virtualenv/+bug/290844 |
---|
| 147 | - unset PYTHONHOME in the (Unix) activate script (and reset it in deactivate()) |
---|
| 148 | - use the activate.sh in virtualenv.py via running bin/rebuild-script.py |
---|
| 149 | - add warning message if PYTHONHOME is set |
---|
| 150 | |
---|
| 151 | * Fri Apr 2 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.4.6-1 |
---|
| 152 | - allow script creation without setuptools |
---|
| 153 | - fix problem with --relocate when bin/ has subdirs (fixes #12) |
---|
| 154 | - Allow more flexible .pth file fixup |
---|
| 155 | - make nt a required module, along with posix. it may not be a builtin module on jython |
---|
| 156 | - don't mess with PEP 302-supplied __file__, from CPython, and merge in a small startup optimization for Jython, from Jython |
---|
| 157 | |
---|
| 158 | * Tue Dec 22 2009 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.4.3-1 |
---|
| 159 | - Updated for upstream release. |
---|
| 160 | |
---|
| 161 | * Thu Nov 12 2009 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.4.2-1 |
---|
| 162 | - Updated for upstream release. |
---|
| 163 | |
---|
| 164 | * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.3-2 |
---|
| 165 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 166 | |
---|
| 167 | * Tue Apr 28 2009 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.3.3-1 |
---|
| 168 | - Updated for upstream release. |
---|
| 169 | |
---|
| 170 | * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-2 |
---|
| 171 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 172 | |
---|
| 173 | * Thu Dec 25 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.3.2-1 |
---|
| 174 | - Updated for upstream release. |
---|
| 175 | |
---|
| 176 | * Thu Dec 04 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.3.1-4 |
---|
| 177 | - Rebuild for Python 2.6 |
---|
| 178 | |
---|
| 179 | * Mon Dec 1 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.3.1-3 |
---|
| 180 | - Added missing dependencies. |
---|
| 181 | |
---|
| 182 | * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.3.1-2 |
---|
| 183 | - Rebuild for Python 2.6 |
---|
| 184 | |
---|
| 185 | * Fri Nov 28 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.3.1-1 |
---|
| 186 | - Updated for upstream release |
---|
| 187 | |
---|
| 188 | * Sun Sep 28 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.3-1 |
---|
| 189 | - Updated for upstream release |
---|
| 190 | |
---|
| 191 | * Sat Aug 30 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.2-1 |
---|
| 192 | - Updated for upstream release |
---|
| 193 | |
---|
| 194 | * Fri Aug 29 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.1-3 |
---|
| 195 | - Updated from review notes |
---|
| 196 | |
---|
| 197 | * Thu Aug 28 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.1-2 |
---|
| 198 | - Updated from review notes |
---|
| 199 | |
---|
| 200 | * Tue Aug 26 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.1-1 |
---|
| 201 | - Initial Version |
---|