]> git.pld-linux.org Git - packages/perl-DNS-ZoneParse.git/blame - perl-DNS-ZoneParse.spec
- updated to 0.99
[packages/perl-DNS-ZoneParse.git] / perl-DNS-ZoneParse.spec
CommitLineData
876b1c47 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
5%include /usr/lib/rpm/macros.perl
6%define pdir DNS
7%define pnam ZoneParse
503c02f5 8Summary: DNS::ZoneParse - parse and manipulate DNS zone files
ff0be43d 9Summary(pl.UTF-8): DNS::ZoneParse - analiza i obróbka plików stref DNS
876b1c47 10Name: perl-DNS-ZoneParse
a628ce45 11Version: 0.99
b1ea7483 12Release: 1
876b1c47 13# same as perl
14License: GPL v1+ or Artistic
15Group: Development/Languages/Perl
16Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
a628ce45 17# Source0-md5: 2bd59cbd7ec63343f024023e8360c015
876b1c47 18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
20%if %{with tests}
21BuildRequires: perl-Storable >= 0.407
22BuildRequires: perl-Test-Simple >= 0.31
23%endif
24BuildArch: noarch
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
d5391ab5
JB
28This module will parse a Zone File and put all the Resource Records
29(RRs) into an anonymous hash structure. At the moment, the following
30types of RRs are supported: SOA, NS, MX, A, CNAME, TXT, PTR. It could
31be useful for maintaining DNS zones, or for transferring DNS zones to
32other servers. If you want to generate an XML-friendly version of your
33zone files, it is easy to use XML::Simple with this module once you
34have parsed the zonefile.
35
562682d5
JR
36%description -l pl.UTF-8
37Ten moduł przetwarza pliki stref i umieszcza wszystkie rekordy zasobów
38(Resource Records, w skrócie RR) w anonimowej strukturze będącej
39tablicą asocjacyjną. Aktualnie obsługiwane są następujące rodzaje
40rekordów: SOA, NS, MX, A, CNAME, TXT, PTR. Może to być przydatne przy
41zarządzaniu strefami DNS albo przekazywaniu stref na inne serwery.
42Jeś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
d5391ab5 44pliku strefy.
876b1c47 45
46%prep
47%setup -q -n %{pdir}-%{pnam}-%{version}
48
49%build
50%{__perl} Makefile.PL \
51 INSTALLDIRS=vendor
52%{__make}
53
54%{?with_tests:%{__make} test}
55
56%install
57rm -rf $RPM_BUILD_ROOT
58
59%{__make} install \
60 DESTDIR=$RPM_BUILD_ROOT
61
62%clean
63rm -rf $RPM_BUILD_ROOT
64
65%files
66%defattr(644,root,root,755)
67%doc Changes
68%{perl_vendorlib}/DNS/*.pm
69%{_mandir}/man3/*
This page took 0.806596 seconds and 4 git commands to generate.