3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Perl interface to parse iptables rulesets
9 Summary(pl.UTF-8): Perlowy interfejs do analizy zbiorów reguł iptables
10 Name: perl-IPTables-Parse
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cipherdyne.org/psad/download/psad-2.0.1.tar.gz
17 # Source0-md5: a1604b68e31178e7e0cbbfd7c1cd4edf
18 Patch0: %{name}-iptables.patch
19 URL: http://www.cipherdyne.org/psad/
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Perl interface to parse iptables rulesets.
28 %description -l pl.UTF-8
29 Perlowy interfejs do analizy zbiorów reguł iptables.
32 %setup -q -n psad-2.0.1
37 %{__perl} Makefile.PL \
41 %{?with_tests:%{__make} test}
44 rm -rf $RPM_BUILD_ROOT
46 %{__make} -C IPTables-Parse pure_install \
47 DESTDIR=$RPM_BUILD_ROOT
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
54 %doc IPTables-Parse/{Changes,README}
55 %{_mandir}/man3/IPTables::Parse.3pm*
56 %{perl_vendorlib}/IPTables/Parse.pm