[packages/perl-Test-CheckDeps] - new

baggins baggins at pld-linux.org
Mon Jun 10 15:53:35 CEST 2013


commit f4e7ceb2c1e984d7ec25916cbc708f14673b7089
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Jun 10 15:53:21 2013 +0200

    - new

 perl-Test-CheckDeps.spec | 54 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)
---
diff --git a/perl-Test-CheckDeps.spec b/perl-Test-CheckDeps.spec
new file mode 100644
index 0000000..36cca0b
--- /dev/null
+++ b/perl-Test-CheckDeps.spec
@@ -0,0 +1,54 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	Test
+%define		pnam	CheckDeps
+%include	/usr/lib/rpm/macros.perl
+Summary:	Test::CheckDeps - Check for presence of dependencies
+Name:		perl-Test-CheckDeps
+Version:	0.004
+Release:	1
+# same as perl
+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:	bc18052363141e62a3b062a4479e8ece
+URL:		http://search.cpan.org/dist/Test-CheckDeps/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-CPAN-Meta-Check
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module adds a test that assures all dependencies have been
+installed properly. If requested, it can bail out all testing on
+error.
+
+%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 INSTALL README
+%{perl_vendorlib}/Test/*.pm
+%{_mandir}/man3/*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Test-CheckDeps.git/commitdiff/f4e7ceb2c1e984d7ec25916cbc708f14673b7089



More information about the pld-cvs-commit mailing list