]>
Commit | Line | Data |
---|---|---|
1 | # TODO: verify ignore-resolv_conf-open-errors patch (remove or update) | |
2 | # | |
3 | # Conditional build: | |
4 | %bcond_with tests # perform "make test" | |
5 | # | |
6 | %include /usr/lib/rpm/macros.perl | |
7 | %define pdir Net | |
8 | %define pnam DNS | |
9 | Summary: Net::DNS - Perl interface to the DNS resolver | |
10 | Summary(pl.UTF-8): Net::DNS - interfejs perlowy do resolvera DNS | |
11 | Name: perl-Net-DNS | |
12 | Version: 1.18 | |
13 | Release: 1 | |
14 | # same as perl | |
15 | License: GPL v1+ or Artistic | |
16 | Group: Development/Languages/Perl | |
17 | Source0: http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz | |
18 | # Source0-md5: 67af7e5c1c339f60c45c1054374bd8ee | |
19 | Patch0: %{name}-ignore-resolv_conf-open-errors.patch | |
20 | URL: http://search.cpan.org/dist/Net-DNS/ | |
21 | BuildRequires: perl-devel >= 1:5.8.0 | |
22 | BuildRequires: sed >= 4.0 | |
23 | %if %{with tests} | |
24 | BuildRequires: perl-Digest-BubbleBabble >= 0.01 | |
25 | BuildRequires: perl-Digest-HMAC >= 1.03 | |
26 | BuildRequires: perl-Digest-MD5 >= 2.13 | |
27 | BuildRequires: perl-Digest-SHA >= 5.23 | |
28 | BuildRequires: perl-IO-Socket-INET6 >= 2.51 | |
29 | BuildRequires: perl-MIME-Base64 >= 2.11 | |
30 | BuildRequires: perl-Test-Pod >= 0.95 | |
31 | BuildRequires: perl-Test-Simple >= 0.52 | |
32 | BuildRequires: perl(Time::Local) >= 1.19 | |
33 | %endif | |
34 | BuildRequires: rpm-perlprov >= 4.1-13 | |
35 | Requires: perl-Digest-HMAC >= 1.03 | |
36 | Requires: perl-Digest-MD5 >= 2.13 | |
37 | Requires: perl-Digest-SHA >= 5.23 | |
38 | Requires: perl-MIME-Base64 >= 2.11 | |
39 | Requires: perl(Time::Local) >= 1.19 | |
40 | # not autodetected | |
41 | Provides: perl(Net::DNS::DomainName1035) = 1456 | |
42 | Provides: perl(Net::DNS::DomainName2535) = 1456 | |
43 | Conflicts: perl-Net-DNS-SEC < 1.01 | |
44 | BuildArch: noarch | |
45 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
46 | ||
47 | %description | |
48 | Net::DNS is a DNS resolver implemented in Perl. It allows the | |
49 | programmer to perform nearly any type of DNS query from a Perl script. | |
50 | ||
51 | %description -l pl.UTF-8 | |
52 | Net::DNS jest resolverem DNS, zaimplementowanym w Perlu. Pozwala | |
53 | programiście na wykonanie niemal każdego typu zapytania DNS ze skryptu | |
54 | Perla. | |
55 | ||
56 | %prep | |
57 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
58 | #patch0 -p1 | |
59 | ||
60 | %{__sed} -i -e 's#/''usr/local/bin/perl#/''usr/bin/perl#' demo/* contrib/* | |
61 | ||
62 | %build | |
63 | %{__perl} Makefile.PL </dev/null \ | |
64 | --no-online-tests \ | |
65 | INSTALLDIRS=vendor | |
66 | %{__make} | |
67 | ||
68 | %{?with_tests:%{__make} test} | |
69 | ||
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
73 | ||
74 | %{__make} pure_install \ | |
75 | DESTDIR=$RPM_BUILD_ROOT | |
76 | ||
77 | cp -a demo/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
78 | cp -a contrib $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
79 | ||
80 | # get rid of pod documentation | |
81 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/Net/DNS/*.pod | |
82 | ||
83 | %clean | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %files | |
87 | %defattr(644,root,root,755) | |
88 | %doc Changes README | |
89 | %{perl_vendorlib}/Net/DNS.pm | |
90 | %{perl_vendorlib}/Net/DNS/*.pm | |
91 | %{perl_vendorlib}/Net/DNS/RR | |
92 | %{perl_vendorlib}/Net/DNS/Resolver | |
93 | %{_mandir}/man3/Net::DNS*.3pm* | |
94 | %{_examplesdir}/%{name}-%{version} |