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

67 lines
2.1 KiB
RPMSpec
Raw Permalink Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-Net-DNS-Resolver-Programmable
Version: 0.003.1
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: 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
* 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