From 642c3187f4cd69902d281629992222eea4e91a6f Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 09:23:37 +0100 Subject: [PATCH] update to 0.003 [release 0.003-1mamba;Sat Apr 27 2013] --- README.md | 2 + perl-Net-DNS-Resolver-Programmable.spec | 63 +++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 perl-Net-DNS-Resolver-Programmable.spec diff --git a/README.md b/README.md index 822a222..1c74165 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # perl-Net-DNS-Resolver-Programmable +Net::DNS::Resolver::Programmable - programmable DNS resolver class for offline emulation of DNS. + diff --git a/perl-Net-DNS-Resolver-Programmable.spec b/perl-Net-DNS-Resolver-Programmable.spec new file mode 100644 index 0000000..f0c1db4 --- /dev/null +++ b/perl-Net-DNS-Resolver-Programmable.spec @@ -0,0 +1,63 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-Net-DNS-Resolver-Programmable +Version: 0.003 +Release: 1mamba +Summary: Net::DNS::Resolver::Programmable - programmable DNS resolver class for offline emulation of DNS +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/Net-DNS-Resolver-Programmable-v%{version}.tar.gz +License: GPL, Artistic +Requires: perl >= %perl_major_ver +BuildRequires: perl-devel >= %perl_major_ver +BuildRequires: perl-version >= 0.7203 +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Net::DNS::Resolver::Programmable - programmable DNS resolver class for offline emulation of DNS. + +%prep +%setup -q -n Net-DNS-Resolver-Programmable-v%{version} + +%build +perl Build.PL INSTALLDIRS=vendor +./Build +./Build test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +./Build install destdir="%{buildroot}" + +# cleanup unpackaged files +find %{buildroot} \ + -type f \( -name perllocal.pod -o -name .packlist \) -exec rm -f {} \; +# remove empty directories +#find %{buildroot}%{perl_sitelib} \ +# -type d -depth -exec rmdir {} 2>/dev/null \; + +find %{buildroot} \( -type f -or -type l \) | \ + sed "s@%buildroot@@g;s@.*/man./.*@&.gz@g" | \ + sort -u > .packlist +find %{buildroot} -type d | \ + grep "%{perl_sitearch}/" | \ + sed "s@%buildroot@@g;s@.*@%dir &@g" >> .packlist + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +rm -f .packlist + +%files -f .packlist +%defattr(-,root,root) + +%changelog +* Sat Apr 27 2013 Automatic Build System 0.003-1mamba +- update to 0.003 + +* Wed Nov 05 2008 Silvan Calarco 0.002.2-2mamba +- automatic rebuild by autodist + +* Wed May 09 2007 Silvan Calarco 0.002.2-1mamba +- package created by autospec