summaryrefslogtreecommitdiff
path: root/packaging/rpm
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss.ws@gmail.com>2013-03-14 16:56:19 +0000
committerJeff Morriss <jeff.morriss.ws@gmail.com>2013-03-14 16:56:19 +0000
commit041fbc05eddd9ea28b90528d74c88e773c0952c7 (patch)
tree28f25e1efba8fef01af36c640e0e035462f611f9 /packaging/rpm
parent77376a2363be6fda0576876db550acfe412dd223 (diff)
downloadwireshark-041fbc05eddd9ea28b90528d74c88e773c0952c7.tar.gz
SuSE's suse_update_desktop_file macro BuildRequires update-desktop-files.
svn path=/trunk/; revision=48298
Diffstat (limited to 'packaging/rpm')
-rw-r--r--packaging/rpm/SPECS/wireshark.spec.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/packaging/rpm/SPECS/wireshark.spec.in b/packaging/rpm/SPECS/wireshark.spec.in
index c30fcfa536..f53d9651a0 100644
--- a/packaging/rpm/SPECS/wireshark.spec.in
+++ b/packaging/rpm/SPECS/wireshark.spec.in
@@ -118,6 +118,10 @@ Requires: wireshark = %{version}-%{release}
Requires: xdg-utils
Requires: hicolor-icon-theme
BuildRequires: desktop-file-utils
+%if 0%{?suse_version}
+# Need this for SuSE's suse_update_desktop_file macro
+BuildRequires: update-desktop-files
+%endif
%if %{with_portaudio}
BuildRequires: portaudio-devel
Requires: portaudio
@@ -177,6 +181,9 @@ rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
make DESTDIR=$RPM_BUILD_ROOT install_desktop_files
%if 0%{?suse_version}
+# SuSE's packaging conventions
+# (http://en.opensuse.org/openSUSE:Packaging_Conventions_RPM_Macros#.25suse_update_desktop_file)
+# require this:
%suse_update_desktop_file %{name}
%else
# Fedora's packaging guidelines (https://fedoraproject.org/wiki/Packaging:Guidelines)