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
|
Mon Dec 29 13:00:45 UTC 2014 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-Net-DNS-Resolver-Programmable
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -17,60 +17,48 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: perl-Net-DNS-Resolver-Programmable
|
Name: perl-Net-DNS-Resolver-Programmable
|
||||||
%define cpan_name Net-DNS-Resolver-Programmable
|
Version: 0.009
|
||||||
Summary: Programmable DNS resolver class for offline emulation of DNS
|
|
||||||
License: Artistic-1.0
|
|
||||||
Group: Development/Libraries/Perl
|
|
||||||
Version: 0.003
|
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://search.cpan.org/dist/Net-DNS-Resolver-Programmable
|
%define cpan_name 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
|
Summary: Programmable Dns Resolver Class for Offline
|
||||||
Patch0: Net-DNS-Resolver-Net-DNS-0.75.patch
|
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
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%{perl_requires}
|
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
BuildRequires: perl(Module::Build) >= 0.2805
|
BuildRequires: perl(Net::DNS) >= 0.69
|
||||||
BuildRequires: perl(Net::DNS)
|
Requires: perl(Net::DNS) >= 0.69
|
||||||
Requires: perl(Net::DNS)
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Net::DNS::Resolver::Programmable is a Net::DNS::Resolver descendant class that
|
*Net::DNS::Resolver::Programmable* is a *Net::DNS::Resolver* descendant
|
||||||
allows a virtual DNS to be emulated instead of querying the real DNS. A set of
|
class that allows a virtual DNS to be emulated instead of querying the real
|
||||||
static DNS records may be supplied, or arbitrary code may be specified as a
|
DNS. A set of static DNS records may be supplied, or arbitrary code may be
|
||||||
means for retrieving DNS records, or even generating them on the fly.
|
specified as a means for retrieving DNS records, or even generating them on
|
||||||
|
the fly.
|
||||||
|
|
||||||
Authors:
|
|
||||||
--------
|
|
||||||
Julian Mehnle
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{cpan_name}-v%{version}
|
%setup -q -n %{cpan_name}-%{version}
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Build.PL --prefix $RPM_BUILD_ROOT/usr --installdirs vendor
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||||
./Build
|
%{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
./Build test
|
%{__make} test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
./Build install
|
%perl_make_install
|
||||||
# do not perl_process_packlist (noarch)
|
%perl_process_packlist
|
||||||
# remove .packlist file
|
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
|
|
||||||
# remove perllocal.pod file
|
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib
|
|
||||||
%perl_gen_filelist
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
%files -f %{name}.files
|
||||||
%{__rm} -rf $RPM_BUILD_ROOT
|
%defattr(-,root,root,755)
|
||||||
|
%doc CHANGES README TODO
|
||||||
%files -f %{name}.files
|
%license LICENSE
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc CHANGES LICENSE README SIGNATURE
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user