From b6b74248280c17b467edfe30b07ed082b7b375c3 Mon Sep 17 00:00:00 2001 From: Scott Talbert Date: Sep 20 2016 00:14:08 +0000 Subject: Fix alternatives implementation --- 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