]> git.pld-linux.org Git - packages/perl-Date-Pcalc.git/blob - perl-Date-Pcalc.spec
- license/description fixes
[packages/perl-Date-Pcalc.git] / perl-Date-Pcalc.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define pdir    Date
7 %define pnam    Pcalc
8 Summary:        Date::Pcalc Perl module - Gregorian calendar date calculations
9 Summary(pl):    Modu³ Perla Date::Pcalc - obliczenia na datach wg kalendarza gregoriañskiego
10 Name:           perl-Date-Pcalc
11 Version:        1.2
12 Release:        3
13 # same as perl
14 License:        GPL v1+ or Artistic
15 Group:          Development/Languages/Perl
16 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5:  1c09a09337c7d2e18a17898ca577c644
18 URL:            http://catcode.com/date/pcalc.html
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 BuildArch:      noarch
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %define         _noautoreq      'perl(anything_fake_or_conditional)'
25
26 %description
27 This package consists of a Perl module for all kinds of date
28 calculations based on the Gregorian calendar (the one used in all
29 western countries today), thereby complying with all relevant norms
30 and standards: ISO/R 2015-1971, DIN 1355 and, to some extent, ISO 8601
31 (where applicable).
32
33 %description -l pl
34 Ten pakiet zawiera modu³ Perla do wszystkich rodzajów obliczeñ na
35 datach opartych na kalendarzu gregoriañskim (u¿ywanym aktualnie we
36 wszystkich pañstwach zachodnich) w sposób zgodny z odpowiednimi
37 normami i standardami: ISO/R 2015-1971, DIN 1355 i, w pewnym zakresie,
38 ISO 8601.
39
40 %prep
41 %setup -q -n %{pdir}-%{pnam}-%{version}
42
43 %build
44 %{__perl} Makefile.PL \
45         INSTALLDIRS=vendor
46
47 %{__make}
48
49 %{?with_tests:%{__make} test}
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53
54 %{__make} install \
55         DESTDIR=$RPM_BUILD_ROOT
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %files
61 %defattr(644,root,root,755)
62 %doc CHANGES.txt README.txt EXAMPLES.txt pcalc.html
63 %{perl_vendorlib}/Date/Pcalc.pm
64 %{_mandir}/man3/*
This page took 0.031953 seconds and 4 git commands to generate.