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