packages: perl-Date-Manip/perl-Date-Manip.spec - enabled tests
qboosh
qboosh at pld-linux.org
Sat Jun 30 21:58:12 CEST 2012
Author: qboosh Date: Sat Jun 30 19:58:12 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- enabled tests
---- Files affected:
packages/perl-Date-Manip:
perl-Date-Manip.spec (1.50 -> 1.51)
---- Diffs:
================================================================
Index: packages/perl-Date-Manip/perl-Date-Manip.spec
diff -u packages/perl-Date-Manip/perl-Date-Manip.spec:1.50 packages/perl-Date-Manip/perl-Date-Manip.spec:1.51
--- packages/perl-Date-Manip/perl-Date-Manip.spec:1.50 Sat Jun 2 13:01:39 2012
+++ packages/perl-Date-Manip/perl-Date-Manip.spec Sat Jun 30 21:58:07 2012
@@ -1,6 +1,7 @@
# $Revision$, $Date$
-# TODO:
-# - Deal with unpackaged pod files
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
#
%include /usr/lib/rpm/macros.perl
%define pdir Date
@@ -13,11 +14,15 @@
# same as perl
License: GPL v1+ or Artistic
Group: Development/Languages/Perl
-Source0: http://www.cpan.org/modules/by-module/Date/SBECK/%{pdir}-%{pnam}-%{version}.tar.gz
+Source0: http://www.cpan.org/modules/by-module/Date/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: 0d5c1ee2f75f6407fb1035e3535f650b
URL: http://search.cpan.org/dist/Date-Manip/
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-Test-Inter
+BuildRequires: perl-YAML-Syck
+%endif
Obsoletes: perl-DateManip
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -43,21 +48,23 @@
INSTALLDIRS=vendor
%{__make}
+%{?with_tests:%{__make} test}
+
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/Date/{Manip,Manip/*}.pod
+%{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/Date/{Manip,Manip/*,Manip/Lang/*}.pod
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc README
-%{perl_vendorlib}/Date/*.pm
+%doc HISTORY LICENSE README.first
+%{perl_vendorlib}/Date/Manip.pm
%dir %{perl_vendorlib}/Date/Manip
%{perl_vendorlib}/Date/Manip/*.pm
%dir %{perl_vendorlib}/Date/Manip/Lang
@@ -74,6 +81,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.51 2012/06/30 19:58:07 qboosh
+- enabled tests
+
Revision 1.50 2012/06/02 11:01:39 caleb
- Up to 6.32
================================================================
---- CVS-web:
http://cvs.pld-linux.org/packages/perl-Date-Manip/perl-Date-Manip.spec?r1=1.50&r2=1.51
More information about the pld-cvs-commit
mailing list