source: projects/specs/trunk/p/perl-IPTables-libiptc/perl-IPTables-libiptc-vl.spec @ 9189

Revision 9189, 2.2 KB checked in by inagaki, 9 years ago (diff)

2014-12-24 Ryoichi INAGAKI <ryo1@…>


Line 
1%define real_name IPTables-libiptc
2
3Summary:        Perl extension for iptables libiptc
4Name:           perl-IPTables-libiptc
5Version:        0.52
6Release:        1%{?_dist_release}
7License:        GPLv2+
8Group:          Development/Libraries
9URL:            http://search.cpan.org/dist/IPTables-libiptc/
10
11Source0:         http://search.cpan.org/CPAN/authors/id/H/HA/HAWK/%{real_name}-%{version}.tar.gz
12# RT#70639
13Patch0:         %{name}-0.51-Support-iptables-1.4.12.patch
14# RT#70639
15Patch1:         IPTables-libiptc-0.52-Support-for-1.4.16.2.patch
16# RT#70639, bug #992659
17Patch2:         IPTables-libiptc-0.52-Support-for-1.4.18.patch
18# croak() expects formatting string, bug #1106081
19Patch3:         IPTables-libiptc-0.52-Fix-GCC-format-security-warning.patch
20
21BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
22BuildRequires:  iptables-devel >= 1.4
23BuildRequires:  perl
24BuildRequires:  perl(AutoLoader)
25BuildRequires:  perl(Carp)
26BuildRequires:  perl(ExtUtils::MakeMaker)
27BuildRequires:  perl(Test::More)
28BuildRequires:  perl(File::Basename)
29
30Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
31Requires:       perl(AutoLoader)
32Requires:       perl(Carp)
33Requires:       perl(File::Basename)
34
35Vendor:         Project Vine
36Distribution:   Vine Linux
37
38%{?perl_default_filter}
39
40%description
41This package provides a perl interface to the netfilter/iptables
42C-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
52perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" PREFIX=%{_prefix}
53make %{?_smp_mflags}
54
55%install
56rm -rf %{buildroot}
57make pure_install DESTDIR=%{buildroot}
58find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
59find %{buildroot} -depth -type d -exec rmdir {} ';' 2>/dev/null
60%{_fixperms} %{buildroot}
61
62%check
63make test
64
65%clean
66rm -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
Note: See TracBrowser for help on using the repository browser.