diff --git a/python-virtualenvwrapper.spec b/python-virtualenvwrapper.spec index c7589a1..465b971 100644 --- a/python-virtualenvwrapper.spec +++ b/python-virtualenvwrapper.spec @@ -1,9 +1,15 @@ %global modname virtualenvwrapper +%global desc virtualenvwrapper is a set of extensions to Ian Bicking's \ +`virtualenv `_ tool. The extensions \ +include wrappers for creating and deleting virtual environments and otherwise \ +managing your development workflow, making it easier to work on more than \ +one project at a time without introducing conflicts in their dependencies. +%global sum Enhancements to virtualenv -Name: python-virtualenvwrapper +Name: python-%{modname} Version: 4.7.1 -Release: 4%{?dist} -Summary: Enhancements to virtualenv +Release: 5%{?dist} +Summary: %{sum} Group: Development/Languages License: MIT @@ -12,41 +18,60 @@ Source0: http://pypi.python.org/packages/source/v/%{modname}/%{modname} BuildArch: noarch +BuildRequires: python2-devel +BuildRequires: python2-setuptools +BuildRequires: python2-virtualenv +BuildRequires: python2-virtualenv-clone +BuildRequires: python2-stevedore +BuildRequires: python2-pbr -BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRequires: python-virtualenv -BuildRequires: python-virtualenv-clone -BuildRequires: python-stevedore -BuildRequires: python-pbr - +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-virtualenv +BuildRequires: python3-virtualenv-clone +BuildRequires: python3-stevedore +BuildRequires: python3-pbr ## Just for tests #BuildRequires: python-tox #BuildRequires: ksh #BuildRequires: zsh -Requires: python-virtualenv -Requires: python-virtualenv-clone -Requires: python-stevedore +%description +%{desc} -Requires: which +%package -n python2-%{modname} +Summary: %{sum} +Requires: python2-virtualenv +Requires: python2-virtualenv-clone +Requires: python2-stevedore +%{?python_provide:%python_provide python2-%{modname}} -%description -virtualenvwrapper is a set of extensions to Ian Bicking's `virtualenv -`_ tool. The extensions include -wrappers for creating and deleting virtual environments and otherwise -managing your development workflow, making it easier to work on more than -one project at a time without introducing conflicts in their dependencies. +%description -n python2-%{modname} +%{desc} + + +%package -n python3-%{modname} +Summary: %{sum} +Requires: python3-virtualenv +Requires: python3-virtualenv-clone +Requires: python3-stevedore +%{?python_provide:%python_provide python3-%{modname}} + +%description -n python3-%{modname} +%{desc} %prep %setup -q -n %{modname}-%{version} +rm -rf %{modname}.egg-info %build -%{__python} setup.py build +%py2_build +%py3_build %install -%{__python} setup.py install -O1 --skip-build --root %{buildroot} +%py2_install +%py3_install %{__mkdir_p} %{buildroot}/%{_sysconfdir}/profile.d/ ln -s %{_bindir}/virtualenvwrapper_lazy.sh %{buildroot}/%{_sysconfdir}/profile.d/virtualenvwrapper.sh @@ -55,15 +80,26 @@ ln -s %{_bindir}/virtualenvwrapper_lazy.sh %{buildroot}/%{_sysconfdir}/profile.d # Tests won't fly in koji since they try to install stuff from pypi #tox -e py27 -%files +%files -n python2-%{modname} %doc PKG-INFO docs -%{python_sitelib}/%{modname} -%{python_sitelib}/%{modname}-%{version}* +%{python2_sitelib}/%{modname} +%{python2_sitelib}/%{modname}-%{version}* +%{_bindir}/virtualenvwrapper.sh +%{_bindir}/virtualenvwrapper_lazy.sh +%config(noreplace) %{_sysconfdir}/profile.d/virtualenvwrapper.sh + +%files -n python3-%{modname} +%doc PKG-INFO docs +%{python3_sitelib}/%{modname} +%{python3_sitelib}/%{modname}-%{version}* %{_bindir}/virtualenvwrapper.sh %{_bindir}/virtualenvwrapper_lazy.sh %config(noreplace) %{_sysconfdir}/profile.d/virtualenvwrapper.sh %changelog +* Mon Jul 25 2016 Lumir Balhar - 4.7.1-5 +- Python2/3 subpackages + * Tue Jul 19 2016 Fedora Release Engineering - 4.7.1-4 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages