SPECS: perl-DateTime-Event-Random.spec (NEW) - initial, builds her...
agaran
agaran at pld-linux.org
Thu Jan 3 13:21:33 CET 2008
Author: agaran Date: Thu Jan 3 12:21:33 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- initial, builds here, tests passed too, stbr(ac), rel 1
---- Files affected:
SPECS:
perl-DateTime-Event-Random.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/perl-DateTime-Event-Random.spec
diff -u /dev/null SPECS/perl-DateTime-Event-Random.spec:1.1
--- /dev/null Thu Jan 3 13:21:33 2008
+++ SPECS/perl-DateTime-Event-Random.spec Thu Jan 3 13:21:27 2008
@@ -0,0 +1,71 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir DateTime
+%define pnam Event-Random
+Summary: DateTime::Event::Random - DateTime extension for creating random datetimes.
+#Summary(pl):
+Name: perl-DateTime-Event-Random
+Version: 0.03
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 1ce3995c36791bf9dabc8ea3b97f4451
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl(DateTime)
+BuildRequires: perl(DateTime::Set) >= 0.07
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module provides convenience methods that let you easily create
+DateTime::Set, DateTime, or DateTime::Duration
+objects with random values.
+
+
+# %description -l pl
+# TODO
+
+%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} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README TODO
+%{perl_vendorlib}/DateTime/Event/*.pm
+#%%{perl_vendorlib}/DateTime/Event/Random
+%{_mandir}/man3/*
+
+%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 2008-01-03 12:21:27 agaran
+- initial, builds here, tests passed too, stbr(ac), rel 1
+
================================================================
More information about the pld-cvs-commit
mailing list