]>
Commit | Line | Data |
---|---|---|
48e2657d ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
48e2657d ER |
5 | %define pdir IPTables |
6 | %define pnam Parse | |
7 | Summary: Perl interface to parse iptables rulesets | |
0d041880 | 8 | Summary(pl.UTF-8): Perlowy interfejs do analizy zbiorów reguł iptables |
48e2657d ER |
9 | Name: perl-IPTables-Parse |
10 | Version: 0.4 | |
7855a54b | 11 | Release: 2 |
48e2657d ER |
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 | |
eabcd8bc | 16 | # Source0-md5: a1604b68e31178e7e0cbbfd7c1cd4edf |
d5a78a79 | 17 | Patch0: %{name}-iptables.patch |
48e2657d ER |
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 | ||
48e2657d ER |
24 | %description |
25 | Perl interface to parse iptables rulesets. | |
26 | ||
d5a12f1a JR |
27 | %description -l pl.UTF-8 |
28 | Perlowy interfejs do analizy zbiorów reguł iptables. | |
eabcd8bc | 29 | |
48e2657d ER |
30 | %prep |
31 | %setup -q -n psad-2.0.1 | |
d5a78a79 | 32 | %patch0 -p1 |
48e2657d ER |
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 | |
eabcd8bc JB |
44 | |
45 | %{__make} -C IPTables-Parse pure_install \ | |
48e2657d ER |
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* | |
7855a54b | 55 | %dir %{perl_vendorlib}/IPTables |
48e2657d | 56 | %{perl_vendorlib}/IPTables/Parse.pm |