[fwsnort/f12/master] Update the Requires lines to use the virtual perl(Module::Name) instead of hard coded perl-Module-Na

tremble tremble at fedoraproject.org
Tue Oct 12 06:27:12 UTC 2010


commit 5b7771d2ae44783840e695bf311e93d833244e2d
Author: Mark Chappell <tremble at fedoraproject.org>
Date:   Tue Oct 12 08:12:50 2010 +0200

    Update the Requires lines to use the virtual perl(Module::Name) instead
    of hard coded perl-Module-Name.  This is done to comply with the perl
    specific packaging guidelines.
    
    See :
    https://fedoraproject.org/wiki/Packaging/Perl#Perl_Requires_and_Provides
    for more details.

 fwsnort.spec |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/fwsnort.spec b/fwsnort.spec
index 252e65b..a943249 100644
--- a/fwsnort.spec
+++ b/fwsnort.spec
@@ -3,7 +3,7 @@
 Summary: Translates Snort rules into equivalent iptables rules
 Name: fwsnort
 Version: 1.0.6
-Release: 7%{?dist}
+Release: 8%{?dist}
 License: GPLv2+
 Group: System Environment/Daemons
 Url: http://www.cipherdyne.org/fwsnort/
@@ -11,7 +11,11 @@ Source0: http://www.cipherdyne.org/fwsnort/download/fwsnort-1.0.6.tar.gz
 Source1: logrotate.fwsnort
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch: noarch 
-Requires: iptables, perl-Net-IPv4Addr, perl-IPTables-Parse, logrotate, perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Requires: iptables
+Requires: perl(Net::IPv4Addr) 
+Requires: perl(IPTables::Parse) 
+Requires: logrotate 
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 %description
 fwsnort translates Snort rules into equivalent iptables rules and generates
@@ -81,6 +85,10 @@ rm -rf $RPM_BUILD_ROOT
 %config(noreplace) %{_sysconfdir}/fwsnort/snort_rules/*
 
 %changelog
+* Tue Oct 12 2010 Mark Chappell <tremble at tremble.org.uk> - 1.0.6-8
+- Replace the perl dependencies with the virtual modules rather than
+  the package name
+
 * Sun May 16 2010 Guillermo Gómez <ggomez at neotechgw.com> - 1.0.6-7
 - Ownership of /etc/logrotate.d corrected and requires logrotate instead which
   provides it


More information about the scm-commits mailing list