[packages/perl-Test2-Suite] - initial

arekm arekm at pld-linux.org
Sun Oct 30 23:07:34 CET 2016


commit d27b82498d9830964edec8ffdfc3b590133e1261
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Oct 30 23:07:12 2016 +0100

    - initial

 perl-Test2-Suite.spec | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 74 insertions(+)
---
diff --git a/perl-Test2-Suite.spec b/perl-Test2-Suite.spec
new file mode 100644
index 0000000..9ba6bea
--- /dev/null
+++ b/perl-Test2-Suite.spec
@@ -0,0 +1,74 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	Test2
+%define		pnam	Suite
+%include	/usr/lib/rpm/macros.perl
+Summary:	Test2::Suite - Distribution with a rich set of tools built upon the Test2 framework
+Name:		perl-Test2-Suite
+Version:	0.000060
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-authors/id/E/EX/EXODIST/Test2-Suite-%{version}.tar.gz
+# Source0-md5:	6cb3de0e465300f771c8e0d2b77754d5
+URL:		http://search.cpan.org/dist/Test2-Suite/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl(Importer) >= 0.010
+BuildRequires:	perl-Test-Simple >= 1.302032
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Rich set of tools, plugins, bundles, etc built upon the Test2 testing
+library. If you are interested in writing tests, this is the
+distribution for you.
+
+If you want to write something that both exports new functions, and
+effects behavior, you should write both a Tools distribution, and a
+Plugin distribution, then a Bundle that loads them both. This is
+important as it helps avoid the problem where a package exports
+much-desired tools, but also produces undesirable side effects.
+
+%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 Changes README TODO
+%{perl_vendorlib}/Test2/Bundle.pm
+%{perl_vendorlib}/Test2/Bundle
+%{perl_vendorlib}/Test2/Compare.pm
+%{perl_vendorlib}/Test2/Compare
+%{perl_vendorlib}/Test2/Mock.pm
+%{perl_vendorlib}/Test2/Plugin.pm
+%{perl_vendorlib}/Test2/Plugin
+%{perl_vendorlib}/Test2/Require.pm
+%{perl_vendorlib}/Test2/Require
+%{perl_vendorlib}/Test2/Suite.pm
+%{perl_vendorlib}/Test2/Todo.pm
+%{perl_vendorlib}/Test2/Tools.pm
+%{perl_vendorlib}/Test2/Tools
+%{perl_vendorlib}/Test2/Util
+%{_mandir}/man3/Test2*.3pm*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Test2-Suite.git/commitdiff/d27b82498d9830964edec8ffdfc3b590133e1261



More information about the pld-cvs-commit mailing list