aboutsummaryrefslogtreecommitdiffstats
path: root/packaging/rpm
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss.ws@gmail.com>2014-08-04 15:44:02 -0400
committerJeff Morriss <jeff.morriss.ws@gmail.com>2014-08-04 19:48:29 +0000
commit644b2e7c69c5289b8a6f524aef84eb7c54cf6058 (patch)
tree46d62a2606a7c7d49c447a31a39cff2caa4e83f1 /packaging/rpm
parent4a2e968ff35b8b10f1c601382e0a79087687bb88 (diff)
Fix RPM builds with a prefix other than /usr.
The location of update-alternatives does not depend on Wireshark's installation prefix: it's always in /usr/sbin/. Change-Id: I7dda9cebec83bc64133adfeb5ee6af70dc6dc7ab Reviewed-on: https://code.wireshark.org/review/3413 Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
Diffstat (limited to 'packaging/rpm')
-rw-r--r--packaging/rpm/SPECS/wireshark.spec.in16
1 files changed, 8 insertions, 8 deletions
diff --git a/packaging/rpm/SPECS/wireshark.spec.in b/packaging/rpm/SPECS/wireshark.spec.in
index d9cba1e5f2..f715bcec24 100644
--- a/packaging/rpm/SPECS/wireshark.spec.in
+++ b/packaging/rpm/SPECS/wireshark.spec.in
@@ -134,8 +134,8 @@ Requires: xdg-utils
Requires: hicolor-icon-theme
BuildRequires: desktop-file-utils
Requires(post): desktop-file-utils
-Requires(post): %{_sbindir}/update-alternatives
-Requires(postun): %{_sbindir}/update-alternatives
+Requires(post): /usr/sbin/update-alternatives
+Requires(postun): /usr/sbin/update-alternatives
%if 0%{?suse_version}
# Need this for SuSE's suse_update_desktop_file macro
BuildRequires: update-desktop-files
@@ -171,8 +171,8 @@ Requires: xdg-utils
Requires: hicolor-icon-theme
BuildRequires: desktop-file-utils
Requires(post): desktop-file-utils
-Requires(post): %{_sbindir}/update-alternatives
-Requires(postun): %{_sbindir}/update-alternatives
+Requires(post): /usr/sbin/update-alternatives
+Requires(postun): /usr/sbin/update-alternatives
BuildRequires: gcc-c++
%if 0%{?suse_version}
# Need this for SuSE's suse_update_desktop_file macro
@@ -266,7 +266,7 @@ fi
update-desktop-database &> /dev/null ||:
update-mime-database /usr/share/mime &> /dev/null || :
touch --no-create /usr/share/icons/hicolor &>/dev/null || :
-%{_sbindir}/update-alternatives --install %{_bindir}/wireshark \
+/usr/sbin/update-alternatives --install %{_bindir}/wireshark \
%{name} %{_bindir}/wireshark-gtk 50
%postun gnome
@@ -275,7 +275,7 @@ update-mime-database /usr/share/mime &> /dev/null || :
if [ $1 -eq 0 ] ; then
touch --no-create /usr/share/icons/hicolor &>/dev/null || :
gtk-update-icon-cache /usr/share/icons/hicolor &>/dev/null || :
- %{_sbindir}/update-alternatives --remove %{name} %{_bindir}/wireshark-gtk
+ /usr/sbin/update-alternatives --remove %{name} %{_bindir}/wireshark-gtk
fi
%endif
@@ -284,7 +284,7 @@ fi
update-desktop-database &> /dev/null ||:
update-mime-database /usr/share/mime &> /dev/null || :
touch --no-create /usr/share/icons/hicolor &>/dev/null || :
-%{_sbindir}/update-alternatives --install %{_bindir}/wireshark \
+/usr/sbin/update-alternatives --install %{_bindir}/wireshark \
%{name} %{_bindir}/wireshark-qt 10
%postun qt
@@ -293,7 +293,7 @@ update-mime-database /usr/share/mime &> /dev/null || :
if [ $1 -eq 0 ] ; then
touch --no-create /usr/share/icons/hicolor &>/dev/null || :
gtk-update-icon-cache /usr/share/icons/hicolor &>/dev/null || :
- %{_sbindir}/update-alternatives --remove %{name} %{_bindir}/wireshark-qt
+ /usr/sbin/update-alternatives --remove %{name} %{_bindir}/wireshark-qt
fi
%endif