[packages/perl-Date-Extract] - initial
arekm
arekm at pld-linux.org
Thu Oct 10 12:55:44 CEST 2013
commit f1dfe8fe363697bcdd845d97e8cc307e9ab7dd8e
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Oct 10 12:55:31 2013 +0200
- initial
perl-Date-Extract.spec | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
---
diff --git a/perl-Date-Extract.spec b/perl-Date-Extract.spec
new file mode 100644
index 0000000..f499fff
--- /dev/null
+++ b/perl-Date-Extract.spec
@@ -0,0 +1,48 @@
+#
+# Conditional build:
+%bcond_without tests # do perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir Date
+%define pnam Extract
+Summary: Date::Extract - extract probable dates from strings
+Name: perl-Date-Extract
+Version: 0.04
+Release: 1
+License: Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: da567c4c45ea1456eee6f1d05b9f9f06
+BuildRequires: perl-Test-MockTime
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Date::Extract is a Perl module for extracting date from strings.
+
+%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)
+%{perl_vendorlib}/Date/Extract.pm
+%{_mandir}/man3/*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Date-Extract.git/commitdiff/f1dfe8fe363697bcdd845d97e8cc307e9ab7dd8e
More information about the pld-cvs-commit
mailing list