]> git.pld-linux.org Git - packages/perl-Time-Duration.git/blob - perl-Time-Duration.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Time-Duration.git] / perl-Time-Duration.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    Time
6 %define pnam    Duration
7 Summary:        Time::Duration - rounded or exact English expression of durations
8 Summary(pl.UTF-8):      Time::Duration - przybliżone lub dokładne wyrażanie okresów czasu po angielsku
9 Name:           perl-Time-Duration
10 Version:        1.06
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/Time/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  d65108e0e4e8ffb38e28d532f8ddcd12
17 URL:            http://search.cpan.org/dist/Time-Duration/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 This module provides functions for expressing durations in rounded or
25 exact terms.
26
27 %description -l pl.UTF-8
28 Ten moduł udostępnia funkcje do wyrażania okresów czasu przy użyciu
29 wyrażeń przybliżonych lub dokładnych.
30
31 %prep
32 %setup -q -n %{pdir}-%{pnam}-%{version}
33
34 %build
35 %{__perl} Makefile.PL \
36         INSTALLDIRS=vendor
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 install -d $RPM_BUILD_ROOT%{perl_vendorlib}/Time/Duration
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %doc ChangeLog
55 %{perl_vendorlib}/Time/*.pm
56 %{_mandir}/man3/*
57
58 %dir %{perl_vendorlib}/Time/Duration
This page took 0.080189 seconds and 4 git commands to generate.