|
@@ -2,16 +2,24 @@
|
|
|
|
|
|
Summary: Perl extension for iptables libiptc
|
|
Summary: Perl extension for iptables libiptc
|
|
Name: perl-IPTables-libiptc
|
|
Name: perl-IPTables-libiptc
|
|
-Version: 0.51
|
|
+Version: 0.52
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
License: GPLv2+
|
|
License: GPLv2+
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
URL: http://search.cpan.org/dist/IPTables-libiptc/
|
|
URL: http://search.cpan.org/dist/IPTables-libiptc/
|
|
-Source: http://search.cpan.org/CPAN/authors/id/H/HA/HAWK/%{real_name}-%{version}.tar.gz
|
|
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
|
|
|
-BuildRequires: iptables-devel >= 1.4
|
|
+Source0: http://search.cpan.org/CPAN/authors/id/H/HA/HAWK/%{real_name}-%{version}.tar.gz
|
|
|
|
+# RT#70639
|
|
|
|
+Patch0: %{name}-0.51-Support-iptables-1.4.12.patch
|
|
|
|
+# RT#70639
|
|
|
|
+Patch1: IPTables-libiptc-0.52-Support-for-1.4.16.2.patch
|
|
|
|
+# RT#70639, bug #992659
|
|
|
|
+Patch2: IPTables-libiptc-0.52-Support-for-1.4.18.patch
|
|
|
|
+# croak() expects formatting string, bug #1106081
|
|
|
|
+Patch3: IPTables-libiptc-0.52-Fix-GCC-format-security-warning.patch
|
|
|
|
|
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
+BuildRequires: iptables-devel >= 1.4
|
|
BuildRequires: perl
|
|
BuildRequires: perl
|
|
BuildRequires: perl(AutoLoader)
|
|
BuildRequires: perl(AutoLoader)
|
|
BuildRequires: perl(Carp)
|
|
BuildRequires: perl(Carp)
|
|
@@ -27,33 +35,21 @@ Requires: perl(File::Basename)
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
Distribution: Vine Linux
|
|
Distribution: Vine Linux
|
|
|
|
|
|
|
|
+%{?perl_default_filter}
|
|
|
|
+
|
|
%description
|
|
%description
|
|
This package provides a perl interface to the netfilter/iptables
|
|
This package provides a perl interface to the netfilter/iptables
|
|
C-code and library C<libiptc>.
|
|
C-code and library C<libiptc>.
|
|
|
|
|
|
-Advantages of this module: Many rule changes can be done very
|
|
|
|
-fast. Several rule changes is committed atomically.
|
|
|
|
-
|
|
|
|
-This module is heavily inspired by the CPAN module IPTables-IPv4. The
|
|
|
|
-CPAN module IPTables-IPv4 could not be used because it has not been
|
|
|
|
-kept up-to-date, with the newest iptables extensions. This is a
|
|
|
|
-result of the module design, as it contains every extension and thus
|
|
|
|
-needs to port them individually.
|
|
|
|
-
|
|
|
|
-This package has another approach, it links with the systems libiptc.a
|
|
|
|
-library and depend on dynamic loading of iptables extensions available
|
|
|
|
-on the system.
|
|
|
|
-
|
|
|
|
-The module only exports the libiptc chain manipulation functions. All
|
|
|
|
-rule manipulations are done through the iptables.c C<do_command>
|
|
|
|
-function. As iptables.c is not made as a library, the package
|
|
|
|
-unfortunately needs to maintain/contain this C file.
|
|
|
|
-
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q -n %{real_name}-%{version}
|
|
%setup -q -n %{real_name}-%{version}
|
|
|
|
+%patch0 -p1 -b .1412
|
|
|
|
+%patch1 -p1 -b .1416
|
|
|
|
+%patch2 -p1 -b .1418
|
|
|
|
+%patch3 -p1
|
|
|
|
|
|
%build
|
|
%build
|
|
-perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" PREFIX='/usr'
|
|
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" PREFIX=%{_prefix}
|
|
make %{?_smp_mflags}
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
%install
|
|
@@ -64,8 +60,7 @@ find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
|
|
%{_fixperms} %{buildroot}
|
|
%{_fixperms} %{buildroot}
|
|
|
|
|
|
%check
|
|
%check
|
|
-# skip the tests because you must be root
|
|
+make test
|
|
-#make test
|
|
|
|
|
|
|
|
%clean
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
rm -rf %{buildroot}
|
|
@@ -77,5 +72,10 @@ rm -rf %{buildroot}
|
|
%{_mandir}/man?/*
|
|
%{_mandir}/man?/*
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Wed Dec 24 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.52-1
|
|
|
|
+- updated to 0.52
|
|
|
|
+- added Patch0, 1, 2 and 3 from Fedora
|
|
|
|
+- built with perl 5.16.3
|
|
|
|
+
|
|
* Sun Mar 11 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.51-1
|
|
* Sun Mar 11 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.51-1
|
|
- initial build for Vine Linux
|
|
- initial build for Vine Linux
|