[Snort-devel] Please use "dist tags" in RPM names

Kodiak Firesmith kfiresmith at ...2499...
Wed Nov 18 13:23:18 EST 2015


Hey Folks,
Here's one that's easy enough I think I can actually contribute rather than
asking others to fix.  Please use RPM dist tags in future releases of Snort
and Daq.  If you have a networked homdir (eg OpenAFS, NFS) and use the same
account to build on multiple versions of Red Hat, Fedora, Cent, you will
constantly overwrite the last package built with the new package if you
don't use the dist tag to differentiate the output RPM files.

Here is some more information about the tag:
https://fedoraproject.org/wiki/Packaging:DistTag

Here are diffs of the spec files:

 $diff -u daq.spec.orig daq.spec
--- daq.spec.orig       2015-11-18 13:15:33.000000001 -0500
+++ daq.spec    2015-11-18 13:17:43.000000001 -0500
@@ -1,4 +1,5 @@
 %define version 2.0.6
+%define pkgrel 1

 Summary: Data Acquisition Library
 License: GNU General Public License
@@ -6,7 +7,7 @@
 Name: daq
 Prefix: %{_prefix}
 Provides: daq
-Release: 1
+Release: %{pkgrel}%{?dist}
 Source: daq-%{version}.tar.gz
 URL: http://www.snort.org/
 Version: %{version}


 $diff -u snort.spec.orig snort.spec
--- snort.spec.orig     2015-11-18 13:15:39.000000001 -0500
+++ snort.spec  2015-11-18 13:18:33.000000001 -0500
@@ -23,7 +23,7 @@

 %define vendor Snort.org
 %define for_distro RPMs
-%define release 1
+%define pkgrel 1
 %define realname snort

 # Look for a directory to see if we're building under cAos
@@ -56,7 +56,7 @@
 %endif
 Version: 2.9.7.6
 Epoch: 1
-Release: %{release}
+Release: %{pkgrel}%{?dist}
 Group: Applications/Internet
 License: GPL
 Url: http://www.snort.org/


Hope this helps!
 - Kodiak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.snort.org/pipermail/snort-devel/attachments/20151118/070a91ea/attachment.html>


More information about the Snort-devel mailing list