1 | %define real_name IPTables-libiptc |
---|
2 | |
---|
3 | Summary: Perl extension for iptables libiptc |
---|
4 | Name: perl-IPTables-libiptc |
---|
5 | Version: 0.52 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | License: GPLv2+ |
---|
8 | Group: Development/Libraries |
---|
9 | URL: http://search.cpan.org/dist/IPTables-libiptc/ |
---|
10 | |
---|
11 | Source0: http://search.cpan.org/CPAN/authors/id/H/HA/HAWK/%{real_name}-%{version}.tar.gz |
---|
12 | # RT#70639 |
---|
13 | Patch0: %{name}-0.51-Support-iptables-1.4.12.patch |
---|
14 | # RT#70639 |
---|
15 | Patch1: IPTables-libiptc-0.52-Support-for-1.4.16.2.patch |
---|
16 | # RT#70639, bug #992659 |
---|
17 | Patch2: IPTables-libiptc-0.52-Support-for-1.4.18.patch |
---|
18 | # croak() expects formatting string, bug #1106081 |
---|
19 | Patch3: IPTables-libiptc-0.52-Fix-GCC-format-security-warning.patch |
---|
20 | |
---|
21 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
22 | BuildRequires: iptables-devel >= 1.4 |
---|
23 | BuildRequires: perl |
---|
24 | BuildRequires: perl(AutoLoader) |
---|
25 | BuildRequires: perl(Carp) |
---|
26 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
27 | BuildRequires: perl(Test::More) |
---|
28 | BuildRequires: perl(File::Basename) |
---|
29 | |
---|
30 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) |
---|
31 | Requires: perl(AutoLoader) |
---|
32 | Requires: perl(Carp) |
---|
33 | Requires: perl(File::Basename) |
---|
34 | |
---|
35 | Vendor: Project Vine |
---|
36 | Distribution: Vine Linux |
---|
37 | |
---|
38 | %{?perl_default_filter} |
---|
39 | |
---|
40 | %description |
---|
41 | This package provides a perl interface to the netfilter/iptables |
---|
42 | C-code and library C<libiptc>. |
---|
43 | |
---|
44 | %prep |
---|
45 | %setup -q -n %{real_name}-%{version} |
---|
46 | %patch0 -p1 -b .1412 |
---|
47 | %patch1 -p1 -b .1416 |
---|
48 | %patch2 -p1 -b .1418 |
---|
49 | %patch3 -p1 |
---|
50 | |
---|
51 | %build |
---|
52 | perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" PREFIX=%{_prefix} |
---|
53 | make %{?_smp_mflags} |
---|
54 | |
---|
55 | %install |
---|
56 | rm -rf %{buildroot} |
---|
57 | make pure_install DESTDIR=%{buildroot} |
---|
58 | find %{buildroot} -type f -name .packlist -exec rm -f {} ';' |
---|
59 | find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null |
---|
60 | %{_fixperms} %{buildroot} |
---|
61 | |
---|
62 | %check |
---|
63 | make test |
---|
64 | |
---|
65 | %clean |
---|
66 | rm -rf %{buildroot} |
---|
67 | |
---|
68 | %files |
---|
69 | %defattr(-, root, root, -) |
---|
70 | %doc Changes META.yml README |
---|
71 | %{perl_vendorarch}/* |
---|
72 | %{_mandir}/man?/* |
---|
73 | |
---|
74 | %changelog |
---|
75 | * Wed Dec 24 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 0.52-1 |
---|
76 | - updated to 0.52 |
---|
77 | - added Patch0, 1, 2 and 3 from Fedora |
---|
78 | - built with perl 5.16.3 |
---|
79 | |
---|
80 | * Sun Mar 11 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.51-1 |
---|
81 | - initial build for Vine Linux |
---|