Fix alternatives implementation

epel8
Scott Talbert 8 years ago
parent cb22fbe1a5
commit b6b7424828

@ -11,7 +11,7 @@
Name: %{wxgtkname} Name: %{wxgtkname}
Version: 3.0.2 Version: 3.0.2
Release: 22%{?dist} Release: 23%{?dist}
Summary: GTK port of the wxWidgets GUI library Summary: GTK port of the wxWidgets GUI library
License: wxWidgets License: wxWidgets
Group: System Environment/Libraries Group: System Environment/Libraries
@ -122,6 +122,8 @@ Requires: %{name}-media = %{version}-%{release}
Requires: %{wxbasename} = %{version}-%{release} Requires: %{wxbasename} = %{version}-%{release}
Requires: gtk%{gtkver}-devel Requires: gtk%{gtkver}-devel
Requires: libGLU-devel Requires: libGLU-devel
Requires(post): %{_sbindir}/update-alternatives
Requires(postun): %{_sbindir}/update-alternatives
Provides: %{srcname}-devel = %{version}-%{release} Provides: %{srcname}-devel = %{version}-%{release}
%description devel %description devel
@ -301,6 +303,9 @@ popd
%postun -n %{wxbasename} -p /sbin/ldconfig %postun -n %{wxbasename} -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 %{_libexecdir}/%{name}/wx-config 3 wx-config %{_libexecdir}/%{name}/wx-config 3
%{_sbindir}/update-alternatives --install %{_bindir}/wxrc \ %{_sbindir}/update-alternatives --install %{_bindir}/wxrc \
@ -364,6 +369,9 @@ fi
%doc docs/doxygen/out/xml/* %doc docs/doxygen/out/xml/*
%changelog %changelog
* Mon Sep 19 2016 Scott Talbert <swt@techie.net> - 3.0.2-23
- Fix alternatives implementation
* Mon Sep 19 2016 Scott Talbert <swt@techie.net> - 3.0.2-22 * Mon Sep 19 2016 Scott Talbert <swt@techie.net> - 3.0.2-22
- Add patch to fix runtime link error due to previous patches - Add patch to fix runtime link error due to previous patches

Loading…
Cancel
Save