rpms/perl-Net-DNS/devel perl-Net-DNS.spec,1.13,1.14
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Sat Apr 9 10:02:10 UTC 2005
Update of /cvs/dist/rpms/perl-Net-DNS/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv6030
Modified Files:
perl-Net-DNS.spec
Log Message:
#153186
- Explicitly disable tests requiring network access at build time.
- Exclude Win32 and Cygwin specific modules.
- More specfile cleanups.
- Honor $RPM_OPT_FLAGS.
Index: perl-Net-DNS.spec
===================================================================
RCS file: /cvs/dist/rpms/perl-Net-DNS/devel/perl-Net-DNS.spec,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- perl-Net-DNS.spec 2 Apr 2005 11:43:18 -0000 1.13
+++ perl-Net-DNS.spec 9 Apr 2005 10:02:08 -0000 1.14
@@ -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 @@
%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 @@
%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ä <ville.skytta at iki.fi> - 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 <redhat at linuxnetz.de> 0.49-1
- upgrade to 0.49 and spec file cleanup (#153186)
More information about the fedora-cvs-commits
mailing list