]> git.pld-linux.org Git - packages/perl-IPTables-Parse.git/blob - perl-IPTables-Parse.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-IPTables-Parse.git] / perl-IPTables-Parse.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    IPTables
6 %define         pnam    Parse
7 Summary:        Perl interface to parse iptables rulesets
8 Summary(pl.UTF-8):      Perlowy interfejs do analizy zbiorów reguł iptables
9 Name:           perl-IPTables-Parse
10 Version:        0.4
11 Release:        2
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cipherdyne.org/psad/download/psad-2.0.1.tar.gz
16 # Source0-md5:  a1604b68e31178e7e0cbbfd7c1cd4edf
17 Patch0:         %{name}-iptables.patch
18 URL:            http://www.cipherdyne.org/psad/
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 Perl interface to parse iptables rulesets.
26
27 %description -l pl.UTF-8
28 Perlowy interfejs do analizy zbiorów reguł iptables.
29
30 %prep
31 %setup -q -n psad-2.0.1
32 %patch0 -p1
33
34 %build
35 cd IPTables-Parse
36 %{__perl} Makefile.PL \
37         INSTALLDIRS=vendor
38
39 %{__make}
40 %{?with_tests:%{__make} test}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44
45 %{__make} -C IPTables-Parse pure_install \
46         DESTDIR=$RPM_BUILD_ROOT
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
52 %defattr(644,root,root,755)
53 %doc IPTables-Parse/{Changes,README}
54 %{_mandir}/man3/IPTables::Parse.3pm*
55 %dir %{perl_vendorlib}/IPTables
56 %{perl_vendorlib}/IPTables/Parse.pm
This page took 0.124058 seconds and 4 git commands to generate.