Added MAJOR versioning per bz#1385240
This commit is contained in:
parent
dcc8df3686
commit
404cde77b9
@ -8,7 +8,7 @@
|
||||
|
||||
Name: python-virtualenv
|
||||
Version: 15.0.3
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Tool to create isolated Python environments
|
||||
|
||||
Group: Development/Languages
|
||||
@ -114,6 +114,18 @@ cp %{buildroot}/%{_bindir}/py3-virtualenv %{buildroot}/%{_bindir}/virtualenv-%{p
|
||||
# The versioned 2.x script was removed from upstream. Add it back.
|
||||
cp %{buildroot}/%{_bindir}/virtualenv %{buildroot}/%{_bindir}/virtualenv-%{python2_version}
|
||||
|
||||
%post -n python2-virtualenv
|
||||
ln -s %{_bindir}/virtualenv-%{python2_version} %{_bindir}/virtualenv-2
|
||||
|
||||
%post -n python3-virtualenv
|
||||
ln -s %{_bindir}/virtualenv-%{python3_version} %{_bindir}/virtualenv-3
|
||||
|
||||
%postun -n python2-virtualenv
|
||||
rm -f %{_bindir}/virtualenv-2
|
||||
|
||||
%postun -n python3-virtualenv
|
||||
rm -f %{_bindir}/virtualenv-3
|
||||
|
||||
%files -n python2-virtualenv
|
||||
%license LICENSE.txt
|
||||
%doc docs/*rst PKG-INFO AUTHORS.txt
|
||||
@ -143,6 +155,9 @@ cp %{buildroot}/%{_bindir}/virtualenv %{buildroot}/%{_bindir}/virtualenv-%{pytho
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Oct 17 2016 Steve Milner <smilner@redhat.com> - 15.0.3-2
|
||||
- Added MAJOR symlinks per bz#1385240.
|
||||
|
||||
* Mon Aug 8 2016 Steve Milner <smilner@redhat.com> - 15.0.3-1
|
||||
- Update for upstream release.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user