Workaround for alternatives

This commit is contained in:
Mystro256 2016-09-19 20:46:43 -04:00
parent 483579dec1
commit f5200a1afa
1 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,6 @@
Name: wxGTK Name: wxGTK
Version: 2.8.12 Version: 2.8.12
Release: 25%{?dist} Release: 26%{?dist}
Summary: GTK2 port of the wxWidgets GUI library Summary: GTK2 port of the wxWidgets GUI library
License: wxWidgets License: wxWidgets
Group: System Environment/Libraries Group: System Environment/Libraries
@ -179,6 +179,9 @@ popd
%postun -n wxBase -p /sbin/ldconfig %postun -n wxBase -p /sbin/ldconfig
%post devel %post devel
if [ -f %{_bindir}/wx-config ] && [ ! -h %{_bindir}/wx-config ] ; then
rm %{_bindir}/wx-config
fi
%{_sbindir}/update-alternatives --install %{_bindir}/wx-config \ %{_sbindir}/update-alternatives --install %{_bindir}/wx-config \
wx-config %{_bindir}/wx-config-2.0 2 wx-config %{_bindir}/wx-config-2.0 2
%{_sbindir}/update-alternatives --install %{_bindir}/wxrc \ %{_sbindir}/update-alternatives --install %{_bindir}/wxrc \
@ -236,6 +239,9 @@ fi
%changelog %changelog
* Mon Sep 19 2016 Jeremy Newton <alexjnewt at hotmail dot com> - 2.8.12-26
- Workaround for alternatives: remove wx-config if it's not a symlink
* Sun Sep 18 2016 Jeremy Newton <alexjnewt at hotmail dot com> - 2.8.12-25 * Sun Sep 18 2016 Jeremy Newton <alexjnewt at hotmail dot com> - 2.8.12-25
- Missing update-alternatives requirement for devel package - Missing update-alternatives requirement for devel package