From b6b74248280c17b467edfe30b07ed082b7b375c3 Mon Sep 17 00:00:00 2001 From: Scott Talbert Date: Mon, 19 Sep 2016 20:14:08 -0400 Subject: [PATCH] Fix alternatives implementation --- wxGTK3.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/wxGTK3.spec b/wxGTK3.spec index fc0ccf9..87606a2 100644 --- a/wxGTK3.spec +++ b/wxGTK3.spec @@ -11,7 +11,7 @@ Name: %{wxgtkname} Version: 3.0.2 -Release: 22%{?dist} +Release: 23%{?dist} Summary: GTK port of the wxWidgets GUI library License: wxWidgets Group: System Environment/Libraries @@ -122,6 +122,8 @@ Requires: %{name}-media = %{version}-%{release} Requires: %{wxbasename} = %{version}-%{release} Requires: gtk%{gtkver}-devel Requires: libGLU-devel +Requires(post): %{_sbindir}/update-alternatives +Requires(postun): %{_sbindir}/update-alternatives Provides: %{srcname}-devel = %{version}-%{release} %description devel @@ -301,6 +303,9 @@ popd %postun -n %{wxbasename} -p /sbin/ldconfig %post devel +if [ -f %{_bindir}/wx-config ] && [ ! -h %{_bindir}/wx-config ] ; then + rm %{_bindir}/wx-config +fi %{_sbindir}/update-alternatives --install %{_bindir}/wx-config \ wx-config %{_libexecdir}/%{name}/wx-config 3 %{_sbindir}/update-alternatives --install %{_bindir}/wxrc \ @@ -364,6 +369,9 @@ fi %doc docs/doxygen/out/xml/* %changelog +* Mon Sep 19 2016 Scott Talbert - 3.0.2-23 +- Fix alternatives implementation + * Mon Sep 19 2016 Scott Talbert - 3.0.2-22 - Add patch to fix runtime link error due to previous patches