diff --git a/README.md b/README.md index 6de319f..142a9d0 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # perl-Net-DNS +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. For details and examples, please read the Net::DNS manual page. + diff --git a/perl-Net-DNS.spec b/perl-Net-DNS.spec new file mode 100644 index 0000000..b8e69ba --- /dev/null +++ b/perl-Net-DNS.spec @@ -0,0 +1,99 @@ +%define PERL_VERSION %(eval `perl -V:version`; echo $version) +Name: perl-Net-DNS +Version: 0.72_03 +Release: 1mamba +Summary: A DNS resolver implemented in Perl +Group: Development/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +Source: http://search.cpan.org/CPAN/authors/id/N/NL/NLNETLABS/Net-DNS-%{version}.tar.gz +URL: http://www.cpan.org +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: perl-devel +BuildRequires: perl-Digest-HMAC +## AUTOBUILDREQ-END +BuildRequires: perl-Socket6 >= 0.19 +BuildRequires: perl-Net-IP >= 1.25 +BuildRequires: perl-Digest-BubbleBabble >= 0.01 +BuildRequires: perl-Test-Pod >= 1.20 +Requires: perl >= %PERL_VERSION +BuildRoot: %{_tmppath}/perl-root + +%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. For details and examples, please read the Net::DNS manual page. + +%prep +%setup -q -n Net-DNS-%{version} + +%build +echo "y" | perl Makefile.PL +%make +%make test + +%install +test x"$RPM_BUILD_ROOT" != x/ && rm -rf "$RPM_BUILD_ROOT" +%makeinstall_perl + +%define PERL_SITEARCH %(eval `perl -V:sitearch`; echo $sitearch) + +# remove win32 module +rm -rf $RPM_BUILD_ROOT%PERL_SITEARCH/Net/DNS/Resolver/Win32.pm + +cat $RPM_BUILD_ROOT%PERL_SITEARCH/auto/Net/DNS/.packlist | \ + sed "s@$RPM_BUILD_ROOT@@g;s@.*/man/.*@&.gz@g" | \ + grep -v "Win32.pm" | \ + sort -u > .packlist +rm -f $RPM_BUILD_ROOT%PERL_SITEARCH/auto/Net/DNS/.packlist +rm -f %{buildroot}%{perl_sitearch}/Net/DNS/Resolver/MSWin32.pm + +%clean +test x"$RPM_BUILD_ROOT" != x/ && rm -rf "$RPM_BUILD_ROOT" +rm -f .packlist + +%files -f .packlist +%defattr(-,root,root) + +%changelog +* Tue Nov 19 2013 Automatic Build System 0.72_03-1mamba +- automatic update by autodist + +* Sat Apr 06 2013 Silvan Calarco 0.72-2mamba +- remove Win32 module + +* Fri Feb 08 2013 Automatic Build System 0.72-1mamba +- update to 0.72 + +* Sat Nov 10 2012 Silvan Calarco 0.68-2mamba +- perl 5.16 mass rebuild + +* Tue Aug 07 2012 Automatic Build System 0.68-1mamba +- automatic version update by autodist + +* Wed Nov 02 2011 Automatic Build System 0.66_02-1mamba +- automatic version update by autodist + +* Fri Jan 15 2010 Automatic Build System 0.66-1mamba +- automatic update by autodist + +* Thu Jul 09 2009 Automatic Build System 0.65-1mamba +- automatic update by autodist + +* Wed Nov 05 2008 Silvan Calarco 0.59-2mamba +- automatic rebuild by autodist + +* Wed May 09 2007 Silvan Calarco 0.59-1mamba +- update to 0.59 + +* Tue Feb 01 2005 Silvan Calarco 0.48-1qilnx +- update to version 0.48 by autospec +- fix perl version check + +* Mon May 03 2004 Silvan Calarco 0.47-2qilnx +- Win32.pm module removed for dependencies cleaness + +* Fri Apr 30 2004 Silvan Calarco 0.47-1qilnx +- First build