- Explicitly disable tests requiring network access at build time. - Exclude Win32 and Cygwin specific modules. - More specfile cleanups. - Honor $RPM_OPT_FLAGS.
This commit is contained in:
parent
3e1e43e509
commit
bf5d8c1658
@ -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ä <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@linuxnetz.de> 0.49-1
|
||||
- upgrade to 0.49 and spec file cleanup (#153186)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user