add a %pre "hack" that removes the existing bindir/alex before %ghost kicks in
this prevents the old binary being left as a ghost preventing the alternative symlink from being made when upgrading from the pre-alternatives packaging
This commit is contained in:
parent
7014db360f
commit
4d884cc809
1 changed files with 9 additions and 0 deletions
|
|
@ -99,6 +99,14 @@ rm %{buildroot}%{_pkgdocdir}/LICENSE
|
|||
|
||||
|
||||
%if %{with static}
|
||||
%pre
|
||||
if [ $1 -eq 2 ] ; then
|
||||
if [ -f %{_bindir}/%{name} -a ! -L %{_bindir}/%{name} ]; then
|
||||
rm %{_bindir}/%{name}
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
%post
|
||||
%{_sbindir}/update-alternatives --install %{_bindir}/%{name} \
|
||||
%{name} %{_bindir}/%{name}.dynamic 70
|
||||
|
|
@ -149,6 +157,7 @@ fi
|
|||
* Sun Aug 3 2014 Jens Petersen <petersen@redhat.com> - 3.1.3-1
|
||||
- update to 3.1.3
|
||||
- add static and common subpackages
|
||||
- dynamic and static are handled as alternatives
|
||||
|
||||
* Tue Jun 10 2014 Jens Petersen <petersen@redhat.com> - 3.0.5-37
|
||||
- update to cblrpm-0.8.11
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue