summaryrefslogtreecommitdiff
path: root/packaging/rpm
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss.ws@gmail.com>2013-03-28 14:17:38 +0000
committerJeff Morriss <jeff.morriss.ws@gmail.com>2013-03-28 14:17:38 +0000
commita995cb822012f93f0f1c14be7b85f3f9e44a9424 (patch)
tree2787e0a4828063d81d3a40e13ac9232e9ce34c61 /packaging/rpm
parent750b7659bb6f8667a3a49ded5ce18d5b1db4a842 (diff)
downloadwireshark-a995cb822012f93f0f1c14be7b85f3f9e44a9424.tar.gz
Simplify the check for rpmbuild's version.
svn path=/trunk/; revision=48612
Diffstat (limited to 'packaging/rpm')
-rw-r--r--packaging/rpm/SPECS/wireshark.spec.in18
1 files changed, 12 insertions, 6 deletions
diff --git a/packaging/rpm/SPECS/wireshark.spec.in b/packaging/rpm/SPECS/wireshark.spec.in
index f53d9651a0..fab282dd43 100644
--- a/packaging/rpm/SPECS/wireshark.spec.in
+++ b/packaging/rpm/SPECS/wireshark.spec.in
@@ -94,13 +94,14 @@ Requires(pre): shadow-utils
Requires(post): desktop-file-utils
%if %{setcap_dumpcap}
-%if 0%{?suse_version}
-# SuSE's rpmbuild is in this package:
+# Actually we require rpmbuild (the program) >= 4.7.0 but the package name
+# where we can find it varies. So we check the 'rpm' version because either
+# rpmbuild is in that package (e.g., in older distros) or it's in the
+# 'rpm-build' package which generally requires a matching version of 'rpm'.
+#
+# All of this is to save users the trouble of getting through an full compile
+# only to have rpmbuild barf because it doesn't understand capabilities.
BuildRequires: rpm >= 4.7.0
-%else
-# ... while Redhat's is in this one:
-BuildRequires: rpm-build >= 4.7.0
-%endif
%endif
@@ -174,6 +175,8 @@ Contains the Gnome (GTK+) Wireshark GUI and desktop integration files.
%endif
--disable-warnings-as-errors
+# Suggestion: put this in your ~/.rpmmacros (without the hash sign, of course):
+# %_smp_mflags -j %(grep -c processor /proc/cpuinfo)
make %{?_smp_mflags}
%install
@@ -275,6 +278,9 @@ gtk-update-icon-cache /usr/share/icons/hicolor &>/dev/null || :
%{_mandir}/man1/wireshark.*
%changelog
+* Thu Mar 28 2013 Jeff Morriss
+- Simplify check for rpmbuild's version.
+
* Fri Mar 8 2013 Jeff Morriss
- Put all icons in hicolor
- Use SuSE's desktop-update macro.