]> git.pld-linux.org Git - packages/perl-IPTables-Parse.git/blob - perl-IPTables-Parse.spec
- converted to UTF-8
[packages/perl-IPTables-Parse.git] / perl-IPTables-Parse.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    IPTables
7 %define         pnam    Parse
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
11 Version:        0.4
12 Release:        1
13 # same as perl
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
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 Perl interface to parse iptables rulesets.
27
28 %description -l pl.UTF-8
29 Perlowy interfejs do analizy zbiorów reguł iptables.
30
31 %prep
32 %setup -q -n psad-2.0.1
33 %patch0 -p1
34
35 %build
36 cd IPTables-Parse
37 %{__perl} Makefile.PL \
38         INSTALLDIRS=vendor
39
40 %{__make}
41 %{?with_tests:%{__make} test}
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45
46 %{__make} -C IPTables-Parse pure_install \
47         DESTDIR=$RPM_BUILD_ROOT
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc IPTables-Parse/{Changes,README}
55 %{_mandir}/man3/IPTables::Parse.3pm*
56 %{perl_vendorlib}/IPTables/Parse.pm
This page took 0.066545 seconds and 3 git commands to generate.