[packages/perl-Test-Mock-Guard] - initial

arekm arekm at pld-linux.org
Tue Jul 10 09:38:46 CEST 2018


commit b2afbe22e7e44a2403417fddc7d7b5b7823d48ee
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Jul 10 09:38:33 2018 +0200

    - initial

 perl-Test-Mock-Guard.spec | 53 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)
---
diff --git a/perl-Test-Mock-Guard.spec b/perl-Test-Mock-Guard.spec
new file mode 100644
index 0000000..2d7284b
--- /dev/null
+++ b/perl-Test-Mock-Guard.spec
@@ -0,0 +1,53 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	Test
+%define		pnam	Mock-Guard
+%include	/usr/lib/rpm/macros.perl
+Summary:	Test::Mock::Guard - Simple mock test library using RAII
+Name:		perl-Test-Mock-Guard
+Version:	0.10
+Release:	1
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/Test/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	b2866485cc29c787f85793279e2f2360
+URL:		https://metacpan.org/release/Test-Mock-Guard/
+BuildRequires:	perl-Module-Build
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-Class-Load >= 0.06
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Test::Mock::Guard is mock test library using RAII. This module is able
+to change method behavior by each scope. See SYNOPSIS's sample code.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Build.PL \
+	destdir=$RPM_BUILD_ROOT \
+	installdirs=vendor
+./Build
+
+%{?with_tests:./Build test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+./Build install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes
+%{perl_vendorlib}/Test/Mock/Guard.pm
+%{_mandir}/man3/*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Test-Mock-Guard.git/commitdiff/b2afbe22e7e44a2403417fddc7d7b5b7823d48ee



More information about the pld-cvs-commit mailing list