Update to 0.009
- New upstream release 0.009 - BIGPRESH taking over maintainership of this seemingly orphaned but very useful distribution - Avoid deprecated make_query_packet() call (CPAN RT#109266) - Remove debian/ subdir (CPAN RT#108522) - Regenerate README via pod2readme - Fix version number in older changelog entry - Remove use of deprecated qv() - Import rcode list from Net::DNS (CPAN RT#96390) - Don't demand 5.10, work on perl ≥ 5.6 - No taint mode flag in t/01-basic.t - Avoid problems with our $VERSION = '...' on one line - Fix handling pre-prepared ::Packet objects passed to send() - Additional tests - Add Scalar::Util to dependencies - Cleaner way to handle both arrays of strings and Net::DNS::Packet objects (CPAN RT#122542) - Extend tests to cover non-mocked queries too - This release by BIGPRESH → update source URL - Switch to ExtUtils::MakeMaker flow - BR: perl-interpreter rather than perl on Fedora - Drop legacy Group: tag - Use %license - Make %files list more explicit
This commit is contained in:
parent
a4439beedf
commit
499c3d012c
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
Net-DNS-Resolver-Programmable-v0.003.tar.gz
|
Net-DNS-Resolver-Programmable-v0.003.tar.gz
|
||||||
|
/Net-DNS-Resolver-Programmable-0.009.tar.gz
|
||||||
|
@ -1,23 +0,0 @@
|
|||||||
Description: deal with changes in Net::DNS >= 0.75
|
|
||||||
Origin: CPAN RT
|
|
||||||
Bug: https://rt.cpan.org/Public/Bug/Display.html?id=95901
|
|
||||||
Bug-Debian: https://bugs.debian.org/752988
|
|
||||||
Author: Willen <NLNETLABS@cpan.org>
|
|
||||||
Reviewed-by: gregor herrmann <gregoa@debian.org>
|
|
||||||
Last-Update: 2014-06-29
|
|
||||||
|
|
||||||
--- a/lib/Net/DNS/Resolver/Programmable.pm
|
|
||||||
+++ b/lib/Net/DNS/Resolver/Programmable.pm
|
|
||||||
@@ -204,8 +204,10 @@
|
|
||||||
if (defined(my $resolver_code = $self->{resolver_code})) {
|
|
||||||
($result, $aa, @answer_rrs) = $resolver_code->($domain, $rr_type, $class);
|
|
||||||
}
|
|
||||||
-
|
|
||||||
- if (not defined($result) or defined($Net::DNS::rcodesbyname{$result})) {
|
|
||||||
+
|
|
||||||
+ if (not defined($result)
|
|
||||||
+ or defined($Net::DNS::rcodesbyname{$result})
|
|
||||||
+ or defined($Net::DNS::Parameters::rcodebyname{$result})) {
|
|
||||||
# Valid RCODE, return a packet:
|
|
||||||
|
|
||||||
$aa = TRUE if not defined($aa);
|
|
@ -1,18 +1,30 @@
|
|||||||
Name: perl-Net-DNS-Resolver-Programmable
|
Name: perl-Net-DNS-Resolver-Programmable
|
||||||
Version: 0.003
|
Version: 0.009
|
||||||
Release: 27%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Programmable DNS resolver class for offline emulation of DNS
|
Summary: Programmable DNS resolver class for offline emulation of DNS
|
||||||
License: GPLv2+ or Artistic
|
License: GPLv2+ or Artistic
|
||||||
Group: Development/Libraries
|
|
||||||
URL: http://search.cpan.org/dist/Net-DNS-Resolver-Programmable/
|
URL: http://search.cpan.org/dist/Net-DNS-Resolver-Programmable/
|
||||||
Source0: http://www.cpan.org/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/Net-DNS-Resolver-Programmable-v%{version}.tar.gz
|
Source0: http://search.cpan.org/CPAN/authors/id/B/BI/BIGPRESH/Net-DNS-Resolver-Programmable-%{version}.tar.gz
|
||||||
# Do not use private Net::DNS API removed in Net-DNS-0.75, bug #1099382,
|
|
||||||
# CPAN RT#95901
|
|
||||||
Patch0: Net-DNS-Resolver-Programmable-v0.003-new-net-dns.patch
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
# Module Build
|
||||||
|
BuildRequires: coreutils
|
||||||
|
BuildRequires: findutils
|
||||||
|
BuildRequires: make
|
||||||
BuildRequires: perl-generators
|
BuildRequires: perl-generators
|
||||||
BuildRequires: perl(Module::Build)
|
BuildRequires: perl%{?fedora:-interpreter}
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
|
# Module Runtime
|
||||||
|
BuildRequires: perl(base)
|
||||||
|
BuildRequires: perl(constant)
|
||||||
|
BuildRequires: perl(Net::DNS) >= 0.69
|
||||||
|
BuildRequires: perl(Net::DNS::Packet)
|
||||||
|
BuildRequires: perl(Net::DNS::Resolver)
|
||||||
|
BuildRequires: perl(strict)
|
||||||
|
BuildRequires: perl(warnings)
|
||||||
|
# Test Suite
|
||||||
|
BuildRequires: perl(Test::More)
|
||||||
|
# Dependencies
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Net::DNS::Resolver::Programmable is a Net::DNS::Resolver descendant class
|
Net::DNS::Resolver::Programmable is a Net::DNS::Resolver descendant class
|
||||||
@ -22,26 +34,53 @@ specified as a means for retrieving DNS records, or even generating them
|
|||||||
on the fly.
|
on the fly.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n Net-DNS-Resolver-Programmable-v%{version}
|
%setup -q -n Net-DNS-Resolver-Programmable-%{version}
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Build.PL installdirs=vendor
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
./Build
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
|
make pure_install DESTDIR=%{buildroot}
|
||||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
find %{buildroot} -type f -name .packlist -delete
|
||||||
|
%{_fixperms} -c %{buildroot}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
./Build test
|
make test
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc CHANGES LICENSE README TODO
|
%license LICENSE
|
||||||
%{perl_vendorlib}/*
|
%doc CHANGES README TODO
|
||||||
%{_mandir}/man3/*
|
%{perl_vendorlib}/Net/
|
||||||
|
%{_mandir}/man3/Net::DNS::Resolver::Programmable.3*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Aug 10 2017 Paul Howarth <paul@city-fan.org> - 0.009-1
|
||||||
|
- Update to 0.009
|
||||||
|
- BIGPRESH taking over maintainership of this seemingly orphaned but very
|
||||||
|
useful distribution
|
||||||
|
- Avoid deprecated make_query_packet() call (CPAN RT#109266)
|
||||||
|
- Remove debian/ subdir (CPAN RT#108522)
|
||||||
|
- Regenerate README via pod2readme
|
||||||
|
- Fix version number in older changelog entry
|
||||||
|
- Remove use of deprecated qv()
|
||||||
|
- Import rcode list from Net::DNS (CPAN RT#96390)
|
||||||
|
- Don't demand 5.10, work on perl ≥ 5.6
|
||||||
|
- No taint mode flag in t/01-basic.t
|
||||||
|
- Avoid problems with our $VERSION = '...' on one line
|
||||||
|
- Fix handling pre-prepared ::Packet objects passed to send()
|
||||||
|
- Additional tests
|
||||||
|
- Add Scalar::Util to dependencies
|
||||||
|
- Cleaner way to handle both arrays of strings and Net::DNS::Packet objects
|
||||||
|
(CPAN RT#122542)
|
||||||
|
- Extend tests to cover non-mocked queries too
|
||||||
|
- This release by BIGPRESH → update source URL
|
||||||
|
- Switch to ExtUtils::MakeMaker flow
|
||||||
|
- BR: perl-interpreter rather than perl on Fedora
|
||||||
|
- Drop legacy Group: tag
|
||||||
|
- Use %%license
|
||||||
|
- Make %%files list more explicit
|
||||||
|
|
||||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.003-27
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.003-27
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user