Author: hawk Date: Thu Oct 20 06:23:42 2005 GMT Module: SPECS Tag: RA-branch ---- Log message: - merged version 0.52 from HEAD - adjusted for Ra, release 2
---- Files affected: SPECS: perl-Net-DNS.spec (1.35.2.4 -> 1.35.2.5) ---- Diffs: ================================================================ Index: SPECS/perl-Net-DNS.spec diff -u SPECS/perl-Net-DNS.spec:1.35.2.4 SPECS/perl-Net-DNS.spec:1.35.2.5 --- SPECS/perl-Net-DNS.spec:1.35.2.4 Tue Sep 9 13:12:32 2003 +++ SPECS/perl-Net-DNS.spec Thu Oct 20 08:23:31 2005 @@ -1,30 +1,39 @@ # $Revision$, $Date$ # # Conditional build: -# _without_tests - do not perform "make test" +%bcond_without tests # do not perform "make test" +%bcond_with libresolv # link against libresolv (creates architecture-dependent package) # %include /usr/lib/rpm/macros.perl -%define pdir Net -%define pnam DNS +%define pdir Net +%define pnam DNS Summary: Net::DNS - Perl interface to the DNS resolver -Summary(pl): Net::DNS - interfejs do resolvera DNS +Summary(pl): Net::DNS - interfejs perlowy do resolvera DNS Name: perl-Net-DNS -Version: 0.34 -Release: 1 -License: GPL/Artistic +Version: 0.52 +Release: 2 +# 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 -BuildRequires: perl >= 5.6 -%if %{?_without_tests:0}%{!?_without_tests:1} +# Source0-md5: 035e3ec9156fd73ca8a52308ebc5307c +BuildRequires: perl-devel >= 1:5.6.1 +%if %{with tests} BuildRequires: perl-Digest-MD5 >= 2.12 BuildRequires: perl-Digest-HMAC >= 1.00 BuildRequires: perl-MIME-Base64 >= 2.11 +BuildRequires: perl-Net-IP >= 1.20 BuildRequires: perl-Test-Simple >= 0.18 +BuildRequires: perl-Test-Pod >= 0.95 %endif -BuildRequires: rpm-perlprov >= 4.0.2-104 +BuildRequires: rpm-perlprov >= 4.0.2-112.1 +%if !%{with libresolv} BuildArch: noarch +%endif BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +%define _noautoreq 'perl(Digest::BubbleBabble)' 'perl(Net::DNS::[^)]*)' + %description Net::DNS is a DNS resolver implemented in Perl. It allows the programmer to perform nearly any type of DNS query from a Perl script. @@ -38,28 +47,48 @@ %setup -q -n %{pdir}-%{pnam}-%{version} %build -%{__perl} -MExtUtils::MakeMaker -e 'WriteMakefile(NAME=>"Net::DNS")' -%{__make} +%{__perl} Makefile.PL </dev/null \ + %{?with_libresolv: --xs} \ + %{!?with_libresolv: --noxs} \ + --noonline-tests \ + INSTALLDIRS=site +%{__make} \ + %{?with_libresolv: OPTIMIZE="%{rpmcflags}"} -%{!?_without_tests:%{__make} test} +%{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} -%{__make} install DESTDIR=$RPM_BUILD_ROOT +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT install demo/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} cp -a contrib $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} +# get rid of pod documentation +%if %{with libresolv} +rm -f $RPM_BUILD_ROOT%{perl_sitearch}/Net/DNS/*.pod +%else +rm -f $RPM_BUILD_ROOT%{perl_sitelib}/Net/DNS/*.pod +%endif + %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes README TODO +%if %{with libresolv} +%{perl_sitearch}/Net/DNS.pm +%{perl_sitearch}/Net/DNS +%{perl_sitearch}/auto/Net/DNS/DNS.bs +%attr(755,root,root) %{perl_sitearch}/auto/Net/DNS/DNS.so +%else %{perl_sitelib}/Net/DNS.pm %{perl_sitelib}/Net/DNS +%endif %{_mandir}/man3/* %{_examplesdir}/%{name}-%{version} @@ -69,6 +98,10 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.35.2.5 2005/10/20 06:23:31 hawk +- merged version 0.52 from HEAD +- adjusted for Ra, release 2 + Revision 1.35.2.4 2003/09/09 11:12:32 ankry - spaces -> tabs ================================================================ ---- CVS-web: http://cvs.pld-linux.org/SPECS/perl-Net-DNS.spec?r1=1.35.2.4&r2=1.35.2.5&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
