forked from pool/python-future
Accepting request 429335 from home:okurz:branches:devel:languages:python
Provide changelog entry for 'preun/postun' fix OBS-URL: https://build.opensuse.org/request/show/429335 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-future?expand=0&rev=6
This commit is contained in:
parent
f4bfe3d3be
commit
c0327c271c
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 21 15:56:12 UTC 2016 - okurz@suse.com
|
||||
|
||||
- Fix rpm uninstall warnings by removing alternatives in postun as
|
||||
discussed in https://build.opensuse.org/request/show/427095
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 15 15:18:21 UTC 2016 - toddrme2178@gmail.com
|
||||
|
||||
|
@ -28,7 +28,7 @@ BuildRequires: fdupes
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
@ -66,8 +66,8 @@ done
|
||||
--install %{_bindir}/futurize futurize %{_bindir}/futurize-%{py_ver} 30 \
|
||||
--slave %{_bindir}/pasteurize pasteurize %{_bindir}/pasteurize-%{py_ver}
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 0 ] ; then
|
||||
%postun
|
||||
if [ "$1" = 0 ] ; then
|
||||
%_sbindir/update-alternatives --remove futurize %{_bindir}/futurize-%{py_ver}
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user