perl-Net-DNS-Resolver-Progr.../perl-Net-DNS-Resolver-Programmable.spec

72 lines
2.2 KiB
RPMSpec
Raw Normal View History

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