]> git.pld-linux.org Git - packages/perl-Business-Hours.git/blob - perl-Business-Hours.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Business-Hours.git] / perl-Business-Hours.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    Business
6 %define         pnam    Hours
7 Summary:        Business::Hours - Calculate business hours in a time period
8 Name:           perl-Business-Hours
9 Version:        0.13
10 Release:        1
11 License:        unknown
12 Group:          Development/Languages/Perl
13 Source0:        http://www.cpan.org/modules/by-module/Business/%{pdir}-%{pnam}-%{version}.tar.gz
14 # Source0-md5:  83c7b6af0a373a3bd617e709ced59360
15 URL:            http://search.cpan.org/dist/Business-Hours/
16 BuildRequires:  perl-devel >= 1:5.8.0
17 BuildRequires:  rpm-perlprov >= 4.1-13
18 %if %{with tests}
19 BuildRequires:  perl(Set::IntSpan) >= 1.12
20 %endif
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 This module is a simple tool for calculating business hours in a time
26 period. Over time, additional functionality will be added to make it
27 easy to calculate the number of business hours between arbitrary
28 dates.
29
30 %prep
31 %setup -q -n %{pdir}-%{pnam}-%{version}
32
33 %build
34 %{__perl} Makefile.PL \
35         INSTALLDIRS=vendor
36 %{__make}
37
38 %{?with_tests:%{__make} test}
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42
43 %{__make} pure_install \
44         DESTDIR=$RPM_BUILD_ROOT
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %files
50 %defattr(644,root,root,755)
51 %doc Changes README
52 %{perl_vendorlib}/Business/Hours.pm
53 %{_mandir}/man3/*
This page took 0.125409 seconds and 4 git commands to generate.