From 888f45452239a74314e85384742d94c6f67e5096 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Jan 29 2014 16:43:23 +0000 Subject: Symlink to /etc/profile.d/ --- diff --git a/python-virtualenvwrapper.spec b/python-virtualenvwrapper.spec index 7da0392..1def1eb 100644 --- a/python-virtualenvwrapper.spec +++ b/python-virtualenvwrapper.spec @@ -2,7 +2,7 @@ Name: python-virtualenvwrapper Version: 4.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Enhancements to virtualenv Group: Development/Languages @@ -44,7 +44,11 @@ one project at a time without introducing conflicts in their dependencies. %{__python} setup.py build %install -%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT +%{__python} setup.py install -O1 --skip-build --root %{buildroot} + +%{__mkdir_p} %{buildroot}/%{_sysconfdir}/profile.d/ +ln -s %{_bindir}/virtualenvwrapper.sh %{buildroot}/%{_sysconfdir}/profile.d/virtualenvwrapper.sh + #%%check # Tests won't fly in koji since they try to install stuff from pypi @@ -56,8 +60,12 @@ one project at a time without introducing conflicts in their dependencies. %{python_sitelib}/%{modname}-%{version}* %{_bindir}/virtualenvwrapper.sh %{_bindir}/virtualenvwrapper_lazy.sh +%{_sysconfdir}/profile.d/virtualenvwrapper.sh %changelog +* Wed Jan 29 2014 Ralph Bean - 4.2-2 +- Add a symlink to /etc/profile.d/ so that the package works out of the box. + * Tue Jan 28 2014 Ralph Bean - 4.2-1 - Latest upstream