From bf5d8c1658bb05e35b96c54f82d4d89992a2b40c Mon Sep 17 00:00:00 2001 From: Warren Togami Date: Sat, 9 Apr 2005 10:02:08 +0000 Subject: [PATCH] #153186 - Explicitly disable tests requiring network access at build time. - Exclude Win32 and Cygwin specific modules. - More specfile cleanups. - Honor $RPM_OPT_FLAGS. --- perl-Net-DNS.spec | 40 ++++++++++++++++++++++++++-------------- 1 file changed, 26 insertions(+), 14 deletions(-) diff --git a/perl-Net-DNS.spec b/perl-Net-DNS.spec index 9d196ae..7a17232 100644 --- a/perl-Net-DNS.spec +++ b/perl-Net-DNS.spec @@ -1,18 +1,15 @@ Name: perl-Net-DNS Version: 0.49 -Release: 1 -Summary: Net-DNS Perl module -License: Artistic or GPL +Release: 2 +Summary: DNS resolver modules for Perl +License: GPL or Artistic Group: Development/Libraries URL: http://www.net-dns.org/ -Source0: http://search.cpan.org/CPAN/authors/id/O/OL/OLAF/Net-DNS-%{version}.tar.gz -Source1: filter-requires.sh -BuildRequires: perl >= 0:5.00503, perl-Digest-HMAC +Source0: http://www.cpan.org/authors/id/O/OL/OLAF/Net-DNS-%{version}.tar.gz +BuildRequires: perl >= 1:5.6.1, perl-Digest-HMAC Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildRoot: %{_tmppath}/%{name}-%{version}-root -%define __perl_requires %{SOURCE1} - %description Net::DNS is a collection of Perl modules that act as a Domain Name System (DNS) resolver. It allows the programmer to perform DNS queries @@ -26,14 +23,19 @@ packet and its various sections. See RFC 1035 or DNS and BIND (Albitz %setup -q -n Net-DNS-%{version} %build -CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT%{_prefix} INSTALLDIRS=vendor < /dev/null -make -make test || : +%{__perl} Makefile.PL INSTALLDIRS=vendor --no-online-tests +make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS" %install rm -rf $RPM_BUILD_ROOT -%makeinstall -find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -f {} \; +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + +%check +make test %clean rm -rf $RPM_BUILD_ROOT @@ -42,10 +44,20 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root) %doc README %{perl_vendorarch}/Net/ +%exclude %{perl_vendorarch}/Net/DNS/Resolver/Cygwin.pm +%exclude %{perl_vendorarch}/Net/DNS/Resolver/Win32.pm %{perl_vendorarch}/auto/Net/ -%{_mandir}/man3/Net::DNS*.3pm.gz +%{_mandir}/man3/Net::DNS*.3* +%exclude %{_mandir}/man3/Net::DNS::Resolver::Cygwin.3* +%exclude %{_mandir}/man3/Net::DNS::Resolver::Win32.3* %changelog +* Sat Apr 9 2005 Ville Skyttä - 0.49-2 +- Explicitly disable tests requiring network access at build time. +- Exclude Win32 and Cygwin specific modules. +- More specfile cleanups. +- Honor $RPM_OPT_FLAGS. + * Sat Apr 02 2005 Robert Scheck 0.49-1 - upgrade to 0.49 and spec file cleanup (#153186)