3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: DNS::ZoneParse - Parse and manipulate DNS Zone Files
9 Summary(pl): DNS::ZoneParse - analiza i obróbka plików stref DNS
10 Name: perl-DNS-ZoneParse
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 794fbdd533434bf06508bbb645fbc1e0
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-Storable >= 0.407
22 BuildRequires: perl-Test-Simple >= 0.31
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 This module will parse a Zone File and put all the Resource Records
29 (RRs) into an anonymous hash structure. At the moment, the following
30 types of RRs are supported: SOA, NS, MX, A, CNAME, TXT, PTR. It could
31 be useful for maintaining DNS zones, or for transferring DNS zones to
32 other servers. If you want to generate an XML-friendly version of your
33 zone files, it is easy to use XML::Simple with this module once you
34 have parsed the zonefile.
37 Ten modu³ przetwarza pliki stref i umieszcza wszystkie rekordy zasobów
38 (Resource Records, w skrócie RR) w anonimowej strukturze bêd±cej
39 tablic± asocjacyjn±. Aktualnie obs³ugiwane s± nastêpuj±ce rodzaje
40 rekordów: SOA, NS, MX, A, CNAME, TXT, PTR. Mo¿e to byæ przydatne przy
41 zarz±dzaniu strefami DNS albo przekazywaniu stref na inne serwery.
42 Je¶li chcemy wygenerowaæ przyjazn± dla XML wersjê plików stref, mo¿na
43 ³atwo u¿yæ XML::Simple wraz z tym modu³em zaraz po przeanalizowaniu
47 %setup -q -n %{pdir}-%{pnam}-%{version}
50 %{__perl} Makefile.PL \
54 %{?with_tests:%{__make} test}
57 rm -rf $RPM_BUILD_ROOT
60 DESTDIR=$RPM_BUILD_ROOT
63 rm -rf $RPM_BUILD_ROOT
66 %defattr(644,root,root,755)
68 %{perl_vendorlib}/DNS/*.pm