packages: perl-Test-Requires/perl-Test-Requires.spec (NEW) - new

qboosh qboosh at pld-linux.org
Tue Mar 1 19:55:40 CET 2011


Author: qboosh                       Date: Tue Mar  1 18:55:40 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/perl-Test-Requires:
   perl-Test-Requires.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/perl-Test-Requires/perl-Test-Requires.spec
diff -u /dev/null packages/perl-Test-Requires/perl-Test-Requires.spec:1.1
--- /dev/null	Tue Mar  1 19:55:40 2011
+++ packages/perl-Test-Requires/perl-Test-Requires.spec	Tue Mar  1 19:55:35 2011
@@ -0,0 +1,69 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	Test
+%define		pnam	Requires
+%include	/usr/lib/rpm/macros.perl
+Summary:	Test::Requires - checks to see if the module can be loaded
+Summary(pl.UTF-8):	Test::Requires - sprawdzanie, czy moduł może być załadowany
+Name:		perl-Test-Requires
+Version:	0.06
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/Test/TOKUHIROM/Test-Requires-%{version}.tar.gz
+# Source0-md5:	6ce0da3cceadb6420d4c3c5bb69f64db
+URL:		http://search.cpan.org/dist/Test-Requires/
+%{?with_tests:BuildRequires:	perl-Test-Simple >= 0.61}
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Test::Requires checks to see if the module can be loaded.
+
+If this fails rather than failing tests this skips all tests.
+
+%description -l pl.UTF-8
+Test::Requires sprawdza, czy moduł może być załadowany.
+
+Jeśli to nie powiedzie się, to zamiast niepowodzeń przy uruchamianiu
+testów pomijane są wszystkie testy.
+
+%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
+%{perl_vendorlib}/Test/Requires.pm
+%{_mandir}/man3/Test::Requires.3pm*
+
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/03/01 18:55:35  qboosh
+- new
================================================================


More information about the pld-cvs-commit mailing list