# # 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/*