forked from pool/perl-Net-DNS-Resolver-Programmable
Accepting request 520471 from devel:languages:perl
- updated to 0.009
see /usr/share/doc/packages/perl-Net-DNS-Resolver-Programmable/CHANGES
--- 0.009 (2017-07-24)
+ Cleaner way to handle both arrays of strings and Net::DNS::Packet objects,
courtesy of NLNETLABS (Dick Franks) in RT 122542 - thanks!
+ Extend tests to cover non-mocked queries too
--- 0.008 (2017-07-21)
* Add Scalar::Util to deps
--- 0.007 (2017-07-19)
* Fix handling pre-prepared ::Packet objects passed to send()
+ Additional tests
- remove Net-DNS-Resolver-Net-DNS-0.75.patch
- updated to 0.006
see /usr/share/doc/packages/perl-Net-DNS-Resolver-Programmable/CHANGES
--- 0.006 (2017-07-16)
* 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
All these courtesy of Dick Franks (rwfranks) - thanks!
- updated to 0.005
see /usr/share/doc/packages/perl-Net-DNS-Resolver-Programmable/CHANGES
--- 0.005 (2017-07-13)
* Remove debian/ subdir as per RT #108522
* Regenerate README via pod2readme
* Fix version number in changelog entry below - d'oh - and remove
OBS-URL: https://build.opensuse.org/request/show/520471
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Net-DNS-Resolver-Programmable?expand=0&rev=14
This commit is contained in:
@@ -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);
|
||||
3
Net-DNS-Resolver-Programmable-0.009.tar.gz
Normal file
3
Net-DNS-Resolver-Programmable-0.009.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8080a2ab776629585911af1179bdb7c4dc2bebfd4b5efd77b11d1dac62454bf8
|
||||
size 15770
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8d402260941f259c83bf1b2564408e75288df028f604136c29da11a9a6a076ec
|
||||
size 15974
|
||||
26
cpanspec.yml
Normal file
26
cpanspec.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
#description_paragraphs: 3
|
||||
#description: |-
|
||||
# override description from CPAN
|
||||
#summary: override summary from CPAN
|
||||
#no_testing: broken upstream
|
||||
#sources:
|
||||
# - source1
|
||||
# - source2
|
||||
#patches:
|
||||
#preamble: |-
|
||||
# BuildRequires: gcc-c++
|
||||
#post_prep: |-
|
||||
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||
#post_build: |-
|
||||
# rm unused.files
|
||||
#post_install: |-
|
||||
# sed on %{name}.files
|
||||
#license: SUSE-NonFree
|
||||
#skip_noarch: 1
|
||||
#custom_build: |-
|
||||
#./Build build flags=%{?_smp_mflags} --myflag
|
||||
#custom_test: |-
|
||||
#startserver && make test
|
||||
#ignore_requires: Bizarre::Module
|
||||
@@ -1,3 +1,56 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 25 05:56:04 UTC 2017 - coolo@suse.com
|
||||
|
||||
- updated to 0.009
|
||||
see /usr/share/doc/packages/perl-Net-DNS-Resolver-Programmable/CHANGES
|
||||
|
||||
--- 0.009 (2017-07-24)
|
||||
+ Cleaner way to handle both arrays of strings and Net::DNS::Packet objects,
|
||||
courtesy of NLNETLABS (Dick Franks) in RT 122542 - thanks!
|
||||
+ Extend tests to cover non-mocked queries too
|
||||
|
||||
--- 0.008 (2017-07-21)
|
||||
* Add Scalar::Util to deps
|
||||
|
||||
--- 0.007 (2017-07-19)
|
||||
* Fix handling pre-prepared ::Packet objects passed to send()
|
||||
+ Additional tests
|
||||
|
||||
- remove Net-DNS-Resolver-Net-DNS-0.75.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 17 05:53:13 UTC 2017 - coolo@suse.com
|
||||
|
||||
- updated to 0.006
|
||||
see /usr/share/doc/packages/perl-Net-DNS-Resolver-Programmable/CHANGES
|
||||
|
||||
--- 0.006 (2017-07-16)
|
||||
* 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
|
||||
All these courtesy of Dick Franks (rwfranks) - thanks!
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 14 05:51:18 UTC 2017 - coolo@suse.com
|
||||
|
||||
- updated to 0.005
|
||||
see /usr/share/doc/packages/perl-Net-DNS-Resolver-Programmable/CHANGES
|
||||
|
||||
--- 0.005 (2017-07-13)
|
||||
|
||||
* Remove debian/ subdir as per RT #108522
|
||||
* Regenerate README via pod2readme
|
||||
* Fix version number in changelog entry below - d'oh - and remove
|
||||
use of deprecated qv()
|
||||
* Import rcode list from Net::DNS - RT 96390
|
||||
|
||||
|
||||
--- 0.004 (2017-07-13)
|
||||
|
||||
* BIGPRESH taking over maintainership of this seemingly orphaned but
|
||||
very useful distribution. Plan to fix various RT tickets.
|
||||
* Fix RT 109266 - avoid deprecated make_query_packet() call
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 29 13:00:45 UTC 2014 - dimstar@opensuse.org
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-Net-DNS-Resolver-Programmable
|
||||
#
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -17,60 +17,48 @@
|
||||
|
||||
|
||||
Name: perl-Net-DNS-Resolver-Programmable
|
||||
%define cpan_name Net-DNS-Resolver-Programmable
|
||||
Summary: Programmable DNS resolver class for offline emulation of DNS
|
||||
License: Artistic-1.0
|
||||
Group: Development/Libraries/Perl
|
||||
Version: 0.003
|
||||
Version: 0.009
|
||||
Release: 0
|
||||
Url: http://search.cpan.org/dist/Net-DNS-Resolver-Programmable
|
||||
Source: http://search.cpan.org/CPAN/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/Net-DNS-Resolver-Programmable-v0.003.tar.gz
|
||||
Patch0: Net-DNS-Resolver-Net-DNS-0.75.patch
|
||||
%define cpan_name Net-DNS-Resolver-Programmable
|
||||
Summary: Programmable Dns Resolver Class for Offline
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/Net-DNS-Resolver-Programmable/
|
||||
Source0: https://cpan.metacpan.org/authors/id/B/BI/BIGPRESH/%{cpan_name}-%{version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%{perl_requires}
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Module::Build) >= 0.2805
|
||||
BuildRequires: perl(Net::DNS)
|
||||
Requires: perl(Net::DNS)
|
||||
BuildRequires: perl(Net::DNS) >= 0.69
|
||||
Requires: perl(Net::DNS) >= 0.69
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
Net::DNS::Resolver::Programmable is a Net::DNS::Resolver descendant class that
|
||||
allows a virtual DNS to be emulated instead of querying the real DNS. A set of
|
||||
static DNS records may be supplied, or arbitrary code may be specified as a
|
||||
means for retrieving DNS records, or even generating them on the fly.
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Julian Mehnle
|
||||
*Net::DNS::Resolver::Programmable* is a *Net::DNS::Resolver* descendant
|
||||
class that allows a virtual DNS to be emulated instead of querying the real
|
||||
DNS. A set of static DNS records may be supplied, or arbitrary code may be
|
||||
specified as a means for retrieving DNS records, or even generating them on
|
||||
the fly.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-v%{version}
|
||||
%patch0 -p1
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
%{__perl} Build.PL --prefix $RPM_BUILD_ROOT/usr --installdirs vendor
|
||||
./Build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
./Build test
|
||||
%{__make} test
|
||||
|
||||
%install
|
||||
./Build install
|
||||
# do not perl_process_packlist (noarch)
|
||||
# remove .packlist file
|
||||
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
|
||||
# remove perllocal.pod file
|
||||
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root)
|
||||
%doc CHANGES LICENSE README SIGNATURE
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc CHANGES README TODO
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user