summaryrefslogtreecommitdiff
path: root/perl-Net-ACL.spec
blob: 6df428be1525548e7970cb33c2aa3fe4ff6bc6cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#
# Conditional build:
%bcond_without	tests	# do perform "make test"

%define		pdir	Net
%define		pnam	ACL
Summary:	Net::ACL - class representing a generic access-list/route-map
Summary(pl.UTF-8):	Net::ACL - klasa reprezentująca ogólną listę dostępu/mapę routingu
Name:		perl-Net-ACL
Version:	0.07
Release:	1
# same as perl
License:	GPL v1+ or Artistic
Group:		Development/Languages/Perl
Source0:	http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5:	351d7ef33c2c44ccab2911cef33b8a51
URL:		http://search.cpan.org/dist/Net-ACL/
BuildRequires:	perl-Cisco-Reconfig
BuildRequires:	perl-IO-String
BuildRequires:	perl-Net-Netmask
BuildRequires:	perl-Test-Signature
BuildRequires:	perl-devel >= 1:5.8.0
BuildRequires:	rpm-perlprov >= 4.1-13
BuildArch:	noarch
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
The Net::ACL module allows a Perl program to do complex filtering and
manipulation of data in the same way as routers does with access-lists
and route-maps.

%description -l pl.UTF-8
Moduł Net::ACL pozwala programowi w Perlu na złożone filtrowanie i
obróbkę danych w ten sam sposób, jak robią to routery z listami
dostępu i mapami routingu.

%prep
%setup -q -n %{pdir}-%{pnam}-%{version}

%build
%{__perl} Makefile.PL \
	INSTALLDIRS=vendor
%{__make}

%{?with_tests:%{__make} test}

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc Changes README
%{perl_vendorlib}/Net/ACL.pm
%dir %{perl_vendorlib}/Net/ACL
%{perl_vendorlib}/Net/ACL/*.pm
%dir %{perl_vendorlib}/Net/ACL/File
%{perl_vendorlib}/Net/ACL/File/*.pm
%dir %{perl_vendorlib}/Net/ACL/Match
%{perl_vendorlib}/Net/ACL/Match/*.pm
%dir %{perl_vendorlib}/Net/ACL/Set
%{perl_vendorlib}/Net/ACL/Set/*.pm
%{_mandir}/man3/*