%define our_version v1.1.0 Name: perl-Zonemaster-LDNS Version: 1.1.0 Release: 1%{?dist} Summary: Perl wrapper for the ldns DNS library License: BSD Group: Development/Libraries URL: http://search.cpan.org/dist/Zonemaster-LDNS/ Source0: http://www.cpan.org/authors/id/Z/ZN/ZNMSTR/Zonemaster-LDNS-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: perl >= 0:5.14.0 BuildRequires: perl(Devel::CheckLib) >= 0.4 BuildRequires: perl(Devel::PPPort) >= 3.19 BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(JSON::PP) BuildRequires: perl(MIME::Base64) BuildRequires: perl(Test::Fatal) BuildRequires: perl(Module::Install) BuildRequires: perl(XSLoader) >= 0.02 BuildRequires: openssl-devel BuildRequires: libidn-devel BuildRequires: ldns-devel Requires: perl(MIME::Base64) Requires: perl(XSLoader) >= 0.02 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description Zonemaster::LDNS represents a resolver, which is the part of the system responsible for sending queries and receiving answers to them. %prep %setup -q -n Zonemaster-LDNS-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %install rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check make test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes CONTRIBUTORS.txt LICENSE README.md %{perl_vendorarch}/auto/* %{perl_vendorarch}/Zonemaster* %{_mandir}/man3/* %changelog * Sat Jan 05 2019 jaromir.talir@nic.cz 1.1.0-1 - Specfile autogenerated by cpanspec 1.78.