55 lines
1.7 KiB
RPMSpec
55 lines
1.7 KiB
RPMSpec
Name: perl-Net-DNS-Resolver-Programmable
|
|
Version: 0.003
|
|
Release: 1%{?dist}
|
|
Summary: Programmable DNS resolver class for offline emulation of DNS
|
|
License: GPL or Artistic
|
|
Group: Development/Libraries
|
|
URL: http://search.cpan.org/dist/Net-DNS-Resolver-Programmable/
|
|
Source0: http://www.cpan.org/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/Net-DNS-Resolver-Programmable-v%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildArch: noarch
|
|
BuildRequires: perl(Module::Build)
|
|
BuildRequires: perl(Net::DNS)
|
|
BuildRequires: perl(version)
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
%description
|
|
Net::DNS::Resolver::Programmable is a Net::DNS::Resolver descendant class
|
|
that allows a virtual DNS to be emulated instead of querying the real DNS.
|
|
A set of static DNS records may be supplied, or arbitrary code may be
|
|
specified as a means for retrieving DNS records, or even generating them
|
|
on the fly.
|
|
|
|
%prep
|
|
%setup -q -n Net-DNS-Resolver-Programmable-v%{version}
|
|
|
|
%build
|
|
%{__perl} Build.PL installdirs=vendor
|
|
./Build
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
|
|
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
%check
|
|
./Build test
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc CHANGES LICENSE README TODO
|
|
%{perl_vendorlib}/*
|
|
%{_mandir}/man3/*
|
|
|
|
%changelog
|
|
* Tue Jul 10 2007 Steven Pritchard <steve@kspei.com> 0.003-1
|
|
- Specfile autogenerated by cpanspec 1.72.
|
|
- Add "v" to files and path names.
|
|
- Drop explicit redundant dependencies.
|