]> git.pld-linux.org Git - SPECS.git/blob - perl-Date-Tie.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / perl-Date-Tie.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    Date
6 %define         pnam    Tie
7 Summary:        Date::Tie - ISO dates made easy
8 Summary(pl.UTF-8):      Date::Tie - ułatwienia do dat ISO
9 Name:           perl-Date-Tie
10 Version:        0.20
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/Date/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  875a1ec893bf3289d88fb62cc9c6dfe1
17 URL:            http://search.cpan.org/dist/Date-Tie/
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 Date::Tie is an attempt to simplify date operations syntax.
25
26 It works with calendar dates (year-month-day), ordinal dates
27 (year-day), week dates (year-week-day), times (hour:minute:second),
28 decimal fractions (decimal hours, decimal minutes and decimal
29 seconds), and time-zones.
30
31 %description -l pl.UTF-8
32 Date::Tie to próba uproszczenia składni operacji na datach.
33
34 Moduł działa z datami kalendarzowymi (rok-miesiąc-dzień), datami
35 porządkowymi (rok-dzień), datami tygodniowymi (rok-tydzień-dzień),
36 czasem (godzina:minuta:sekunda), ułamkami dziesiętnymi (dziesiętne
37 godziny, dziesiętne minuty i dziesiętne sekundy) i strefami czasowymi.
38
39 %prep
40 %setup -q -n %{pdir}-%{pnam}-%{version}
41
42 %build
43 %{__perl} Makefile.PL \
44         INSTALLDIRS=vendor
45 %{__make}
46
47 %{?with_tests:%{__make} test}
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51
52 %{__make} install \
53         DESTDIR=$RPM_BUILD_ROOT
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %{perl_vendorlib}/Date/*.pm
61 %{_mandir}/man3/*
This page took 3.950472 seconds and 3 git commands to generate.