Initial import
This commit is contained in:
parent
2eb709d304
commit
8a65b6aea6
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/Net-DNS-Resolver-Mock-1.20170814.tar.gz
|
||||
@ -1,3 +0,0 @@
|
||||
# perl-Net-DNS-Resolver-Mock
|
||||
|
||||
A subclass of Net::DNS::Resolver which parses a zonefile for it's data source. Primarily for use in testing.
|
||||
52
perl-Net-DNS-Resolver-Mock.spec
Normal file
52
perl-Net-DNS-Resolver-Mock.spec
Normal file
@ -0,0 +1,52 @@
|
||||
Name: perl-Net-DNS-Resolver-Mock
|
||||
Version: 1.20170814
|
||||
Release: 1%{?dist}
|
||||
Summary: Mock a DNS Resolver object for testing
|
||||
License: GPL+ or Artistic
|
||||
URL: http://search.cpan.org/dist/Net-DNS-Resolver-Mock/
|
||||
Source0: http://www.cpan.org/authors/id/M/MB/MBRADSHAW/Net-DNS-Resolver-Mock-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRequires: make
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl >= 0:5.006
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(warnings)
|
||||
# Run-time
|
||||
BuildRequires: perl(Net::DNS::Packet)
|
||||
BuildRequires: perl(Net::DNS::Question)
|
||||
BuildRequires: perl(Net::DNS::Resolver)
|
||||
BuildRequires: perl(Net::DNS::ZoneFile)
|
||||
# Tests
|
||||
BuildRequires: perl(Test::More)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
|
||||
%description
|
||||
A subclass of Net::DNS::Resolver which parses a zonefile for it's data
|
||||
source. Primarily for use in testing.
|
||||
|
||||
%prep
|
||||
%setup -q -n Net-DNS-Resolver-Mock-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc README
|
||||
%{perl_vendorlib}/*
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Thu Oct 19 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.20170814-1
|
||||
- Specfile autogenerated by cpanspec 1.78.
|
||||
Loading…
Reference in New Issue
Block a user