Blame SPECS/python-virtualenv.spec

3e49af
%{?scl:%scl_package python-virtualenv}
3e49af
%{!?scl:%global pkg_name %{name}}
3e49af
3e49af
Name:           %{?scl_prefix}python-virtualenv
3e49af
Version:        13.1.2
aea3b7
Release:        2%{?dist}
3e49af
Summary:        Tool to create isolated Python environments
3e49af
3e49af
Group:          Development/Languages
3e49af
License:        MIT
3e49af
URL:            http://pypi.python.org/pypi/virtualenv
3e49af
Source0:        http://pypi.python.org/packages/source/v/virtualenv/virtualenv-%{version}.tar.gz
3e49af
BuildRoot:      %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
3e49af
3e49af
BuildArch:      noarch
3e49af
BuildRequires:  %{?scl_prefix}python-devel
3e49af
BuildRequires:  %{?scl_prefix}python-sphinx
3e49af
Requires:       %{?scl_prefix}python-setuptools
3e49af
Requires:       %{?scl_prefix}python-devel
3e49af
aea3b7
# Patch that shows a custom error message when a FILE passed to virtualenv
aea3b7
# to be used as 'home dir' already exists and is NOT a directory.
aea3b7
# rhbz#1353206
aea3b7
Patch0:		polish-error-msg-when-file-is-passed.patch
aea3b7
3e49af
%description
3e49af
virtualenv is a tool to create isolated Python environments. virtualenv
3e49af
is a successor to workingenv, and an extension of virtual-python. It is
3e49af
written by Ian Bicking, and sponsored by the Open Planning Project. It is
3e49af
licensed under an MIT-style permissive license.
3e49af
3e49af
%prep
3e49af
%setup -q -n virtualenv-%{version}
3e49af
%{__sed} -i -e "1s|#!/usr/bin/env python||" virtualenv.py 
3e49af
aea3b7
%patch0 -p1
aea3b7
3e49af
%build
3e49af
# Build code
3e49af
%{?scl:scl enable %{scl} "}
3e49af
%{__python3} setup.py build
3e49af
%{?scl:"}
3e49af
3e49af
# Build docs
3e49af
%{?scl:scl enable %{scl} "}
3e49af
%{__python3} setup.py build_sphinx
3e49af
%{?scl:"}
3e49af
3e49af
%install
3e49af
rm -rf $RPM_BUILD_ROOT
3e49af
%{?scl:scl enable %{scl} "}
3e49af
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
3e49af
%{?scl:"}
3e49af
rm -f build/sphinx/html/.buildinfo
3e49af
3e49af
%clean
3e49af
rm -rf $RPM_BUILD_ROOT
3e49af
3e49af
%files
3e49af
%defattr(-,root,root,-)
3e49af
%doc docs/*rst PKG-INFO AUTHORS.txt LICENSE.txt
3e49af
%doc build/sphinx/*
3e49af
%{python3_sitelib}/*
3e49af
%attr(755,root,root) %{_bindir}/virtualenv*
3e49af
3e49af
%changelog
aea3b7
* Tue Jul 19 2016 Charalampos Stratakis <cstratak@redhat.com> - 13.1.2-2
aea3b7
- Added a patch that shows a custom error message when a FILE passed to
aea3b7
  virtualenv to be used as 'home dir' already exists and is NOT a directory.
aea3b7
Resolves: rhbz#1353206
aea3b7
3e49af
* Sat Feb 13 2016 Robert Kuska <rkuska@redhat.com> 13.1.2-1
3e49af
- Update to 13.1.2
3e49af
3e49af
* Thu Jan 22 2015 Matej Stuchlik <mstuchli@redhat.com> - 1.11.6-1
3e49af
- Update to 1.11.6
3e49af
3e49af
* Mon Nov 18 2013 Robert Kuska <rkuska@redhat.com> - 1.10.1-2
3e49af
- Bump release number to avoid conflict with rhel-7.0
3e49af
3e49af
* Tue Aug 20 2013 Robert Kuska <rkuska@redhat.com> - 1.10.1-1
3e49af
- Update to v1.10.1
3e49af
Resolves: rhbz#996707
3e49af
3e49af
* Fri May 17 2013 Robert Kuska <rkuska@redhat.com> - 1.7.2-4
3e49af
- Fixed rhbz#963660
3e49af
3e49af
* Thu May 09 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1.7.2-3
3e49af
- Rebuild to generate bytecode properly after fixing rhbz#956289
3e49af
3e49af
* Wed Sep 19 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1.7.2-2
3e49af
- Rebuilt for SCL.
3e49af
3e49af
* Tue Aug 14 2012 Steve Milner <me@stevemilner.org> - 1.7.2-1
3e49af
- Update for upstream bug fixes.
3e49af
- Added path for versioned binary.
3e49af
- Patch no longer required.
3e49af
3e49af
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.1.2-3
3e49af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3e49af
3e49af
* Wed Mar 14 2012 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.7.1.2-1
3e49af
- Update for upstream bug fixes.
3e49af
- Added patch for sphinx building
3e49af
3e49af
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-2
3e49af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
3e49af
3e49af
* Tue Dec 20 2011 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.7-1
3e49af
- Update for https://bugzilla.redhat.com/show_bug.cgi?id=769067
3e49af
3e49af
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.1-2
3e49af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3e49af
3e49af
* Sat Oct 16 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.5.1-1
3e49af
- Added _weakrefset requirement for Python 2.7.1.
3e49af
- Add support for PyPy.
3e49af
- Uses a proper temporary dir when installing environment requirements.
3e49af
- Add --prompt option to be able to override the default prompt prefix.
3e49af
- Add fish and csh activate scripts.
3e49af
3e49af
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.4.8-4
3e49af
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
3e49af
3e49af
* Tue Jul  7 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.4.8-3
3e49af
- Fixed EPEL installation issue from BZ#611536
3e49af
3e49af
* Tue Jun  8 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.4.8-2
3e49af
- Only replace the python shebang on the first line (Robert Buchholz)
3e49af
3e49af
* Fri Apr 28 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.4.8-1
3e49af
- update pip to 0.7
3e49af
- move regen-docs into bin/
3e49af
- Fix #31, make activate_this.py work on Windows (use Lib/site-packages)
3e49af
unset PYTHONHOME envioronment variable -- first step towards fixing the PYTHONHOME issue; see e.g. https://bugs.launchpad.net/virtualenv/+bug/290844
3e49af
- unset PYTHONHOME in the (Unix) activate script (and reset it in deactivate())
3e49af
- use the activate.sh in virtualenv.py via running bin/rebuild-script.py
3e49af
- add warning message if PYTHONHOME is set
3e49af
3e49af
* Fri Apr 2 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.4.6-1
3e49af
- allow script creation without setuptools
3e49af
- fix problem with --relocate when bin/ has subdirs (fixes #12)
3e49af
- Allow more flexible .pth file fixup
3e49af
- make nt a required module, along with posix. it may not be a builtin module on jython
3e49af
- don't mess with PEP 302-supplied __file__, from CPython, and merge in a small startup optimization for Jython, from Jython
3e49af
3e49af
* Tue Dec 22 2009 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.4.3-1
3e49af
- Updated for upstream release.
3e49af
3e49af
* Thu Nov 12 2009 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.4.2-1
3e49af
- Updated for upstream release.
3e49af
3e49af
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.3-2
3e49af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
3e49af
3e49af
* Tue Apr 28 2009 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.3.3-1
3e49af
- Updated for upstream release.
3e49af
3e49af
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-2
3e49af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
3e49af
3e49af
* Thu Dec 25 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.3.2-1
3e49af
- Updated for upstream release.
3e49af
3e49af
* Thu Dec 04 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.3.1-4
3e49af
- Rebuild for Python 2.6
3e49af
3e49af
* Mon Dec  1 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.3.1-3
3e49af
- Added missing dependencies.
3e49af
3e49af
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.3.1-2
3e49af
- Rebuild for Python 2.6
3e49af
3e49af
* Fri Nov 28 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.3.1-1
3e49af
- Updated for upstream release
3e49af
3e49af
* Sun Sep 28 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.3-1
3e49af
- Updated for upstream release
3e49af
3e49af
* Sat Aug 30 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.2-1
3e49af
- Updated for upstream release
3e49af
3e49af
* Fri Aug 29 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.1-3
3e49af
- Updated from review notes
3e49af
3e49af
* Thu Aug 28 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.1-2
3e49af
- Updated from review notes
3e49af
3e49af
* Tue Aug 26 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.1-1
3e49af
- Initial Version