]> git.pld-linux.org Git - packages/perl-Date-Extract.git/blame - perl-Date-Extract.spec
use generic url
[packages/perl-Date-Extract.git] / perl-Date-Extract.spec
CommitLineData
f1dfe8fe
AM
1#
2# Conditional build:
3%bcond_without tests # do perform "make test"
86145b72 4
f1dfe8fe
AM
5%define pdir Date
6%define pnam Extract
86145b72 7%include /usr/lib/rpm/macros.perl
f1dfe8fe
AM
8Summary: Date::Extract - extract probable dates from strings
9Name: perl-Date-Extract
10Version: 0.04
11Release: 1
12License: Artistic
13Group: Development/Languages/Perl
14Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15# Source0-md5: da567c4c45ea1456eee6f1d05b9f9f06
86145b72 16URL: http://search.cpan.org/dist/Date-Extract/
2af049f5 17BuildRequires: perl-DateTime-Format-Natural
f1dfe8fe
AM
18BuildRequires: perl-Test-MockTime
19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
21BuildArch: noarch
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25Date::Extract is a Perl module for extracting date from strings.
26
27%prep
28%setup -q -n %{pdir}-%{pnam}-%{version}
29
30%build
31%{__perl} Makefile.PL \
32 INSTALLDIRS=vendor
33
34%{__make}
35
36%{?with_tests:%{__make} test}
37
38%install
39rm -rf $RPM_BUILD_ROOT
40
41%{__make} install \
42 DESTDIR=$RPM_BUILD_ROOT
43
44%clean
45rm -rf $RPM_BUILD_ROOT
46
47%files
48%defattr(644,root,root,755)
49%{perl_vendorlib}/Date/Extract.pm
50%{_mandir}/man3/*
This page took 0.085215 seconds and 4 git commands to generate.