diff --git a/.rpmlint b/.rpmlint new file mode 100644 index 0000000..ea37699 --- /dev/null +++ b/.rpmlint @@ -0,0 +1,2 @@ +from Config import * +addFilter("spelling-error .* (gethostbyaddr|gethostbyname)"); diff --git a/perl-Net-DNS.spec b/perl-Net-DNS.spec index 60ba82b..66e3217 100644 --- a/perl-Net-DNS.spec +++ b/perl-Net-DNS.spec @@ -1,6 +1,6 @@ Name: perl-Net-DNS Version: 0.68 -Release: 3%{?dist} +Release: 4%{?dist} Summary: DNS resolver modules for Perl License: GPL+ or Artistic Group: Development/Libraries @@ -12,23 +12,33 @@ BuildRequires: perl(constant) BuildRequires: perl(Carp) BuildRequires: perl(Data::Dumper) BuildRequires: perl(Digest::BubbleBabble) -BuildRequires: perl(Digest::HMAC_MD5) -BuildRequires: perl(Digest::SHA) +BuildRequires: perl(Digest::HMAC_MD5) >= 1 +BuildRequires: perl(Digest::SHA) >= 5.23 BuildRequires: perl(Encode) BuildRequires: perl(Exporter) BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(File::Spec) +BuildRequires: perl(Getopt::Long) BuildRequires: perl(IO::Select) BuildRequires: perl(IO::Socket) BuildRequires: perl(IO::Socket::INET) BuildRequires: perl(IO::Socket::INET6) -BuildRequires: perl(MIME::Base64) -BuildRequires: perl(Net::IP) +BuildRequires: perl(MIME::Base64) >= 2.11 BuildRequires: perl(Socket) BuildRequires: perl(Text::ParseWords) -BuildRequires: perl(Test::More) +BuildRequires: perl(Test::More) >= 0.18 BuildRequires: perl(Test::Pod) +BuildRequires: perl(XSLoader) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(Digest::HMAC_MD5) >= 1 +Requires: perl(Digest::SHA) >= 5.23 +Requires: perl(MIME::Base64) >= 2.11 +Requires: perl(XSLoader) + +%{?perl_default_filter} + +# Do not export under-specified dependencies +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((Digest::HMAC_MD5|Digest::SHA|MIME::Base64)\\)$ %description Net::DNS is a collection of Perl modules that act as a Domain Name @@ -48,10 +58,10 @@ License: GPL+ or Artistic Instances of the "Net::DNS::Nameserver" class represent DNS server objects. -%{?perl_default_filter} - %prep %setup -q -n Net-DNS-%{version} +chmod -x demo/* +sed -i -e '1 s,^#!/usr/local/bin/perl,#!%{__perl},' demo/* %build export PERL_MM_USE_DEFAULT=yes @@ -89,6 +99,9 @@ make test %{_mandir}/man3/Net::DNS::Nameserver* %changelog +* Fri Aug 10 2012 Petr Pisar - 0.68-4 +- Correct dependencies + * Fri Jul 20 2012 Fedora Release Engineering - 0.68-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild