2024-01-06 09:23:37 +01:00
|
|
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
|
|
|
|
Name: perl-Net-DNS-Resolver-Programmable
|
2024-01-06 09:23:38 +01:00
|
|
|
Version: 0.009
|
2024-01-06 09:23:37 +01:00
|
|
|
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 <silvan.calarco@mambasoft.it>
|
2024-01-06 09:23:38 +01:00
|
|
|
URL: https://www.cpan.org/
|
|
|
|
Source: https://cpan.metacpan.org/authors/id/B/BI/BIGPRESH/Net-DNS-Resolver-Programmable-%{version}.tar.gz
|
2024-01-06 09:23:37 +01:00
|
|
|
License: GPL, Artistic
|
2024-01-06 09:23:38 +01:00
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: perl-Net-DNS
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 09:23:37 +01:00
|
|
|
BuildRequires: perl-version >= 0.7203
|
2024-01-06 09:23:38 +01:00
|
|
|
Requires: perl >= %perl_major_ver
|
2024-01-06 09:23:37 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Net::DNS::Resolver::Programmable - programmable DNS resolver class for offline emulation of DNS.
|
|
|
|
|
|
|
|
%prep
|
2024-01-06 09:23:38 +01:00
|
|
|
%setup -q -n Net-DNS-Resolver-Programmable-%{version}
|
2024-01-06 09:23:37 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-06 09:23:38 +01:00
|
|
|
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
|
|
|
|
%make
|
|
|
|
%make test
|
2024-01-06 09:23:37 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 09:23:38 +01:00
|
|
|
%makeinstall_perl
|
2024-01-06 09:23:37 +01:00
|
|
|
|
|
|
|
# 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
|
2024-01-06 09:23:38 +01:00
|
|
|
* Mon Jan 10 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.009-1mamba
|
|
|
|
- update to 0.009
|
|
|
|
|
2024-01-06 09:23:37 +01:00
|
|
|
* Wed Sep 12 2018 Automatic Build System <autodist@mambasoft.it> 0.003.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 09:23:37 +01:00
|
|
|
* Sat Apr 27 2013 Automatic Build System <autodist@mambasoft.it> 0.003-1mamba
|
|
|
|
- update to 0.003
|
|
|
|
|
|
|
|
* Wed Nov 05 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 0.002.2-2mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
|
|
|
* Wed May 09 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 0.002.2-1mamba
|
|
|
|
- package created by autospec
|