[packages/perl-Net-DNS-Resolver-Mock] - new

adamg adamg at pld-linux.org
Fri Apr 12 10:36:14 CEST 2019


commit 3fc01e139e668bf6f0df828b4d23642370ff9586
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date:   Fri Apr 12 10:36:01 2019 +0200

    - new

 perl-Net-DNS-Resolver-Mock.spec | 53 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)
---
diff --git a/perl-Net-DNS-Resolver-Mock.spec b/perl-Net-DNS-Resolver-Mock.spec
new file mode 100644
index 0000000..5ec42a6
--- /dev/null
+++ b/perl-Net-DNS-Resolver-Mock.spec
@@ -0,0 +1,53 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	Net
+%define		pnam	DNS-Resolver-Mock
+%include	/usr/lib/rpm/macros.perl
+Summary:	Net::DNS::Resolver::Mock - Mock a DNS Resolver object for testing
+Name:		perl-Net-DNS-Resolver-Mock
+Version:	1.20171219
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	a63fbe22f39676df034e02486b3d3f83
+URL:		https://metacpan.org/release/Net-DNS-Resolver-Mock/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-Net-DNS
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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 %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%{perl_vendorlib}/Net/DNS/Resolver/*.pm
+%{_mandir}/man3/*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Net-DNS-Resolver-Mock.git/commitdiff/3fc01e139e668bf6f0df828b4d23642370ff9586



More information about the pld-cvs-commit mailing list