]> git.pld-linux.org Git - packages/perl-DateTime-Format-Strptime.git/blob - perl-DateTime-Format-Strptime.spec
034bbd62a6ae460717c66ad9e750cf04f509e20b
[packages/perl-DateTime-Format-Strptime.git] / perl-DateTime-Format-Strptime.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4
5 %define         pdir    DateTime
6 %define         pnam    Format-Strptime
7 %include        /usr/lib/rpm/macros.perl
8 Summary:        DateTime::Format::Strptime - Parse and format strp and strf time patterns
9 Summary(pl.UTF-8):      DateTime::Format::Strptime - analiza i formatowanie wzorców czasu strp i strf
10 Name:           perl-DateTime-Format-Strptime
11 Version:        1.5600
12 Release:        1
13 License:        Artistic v2.0
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/DateTime/DateTime-Format-Strptime-1.56.tar.gz
16 # Source0-md5:  c8c1ca4e56160179e5c67b1d622320e9
17 URL:            http://search.cpan.org/dist/DateTime-Format-Strptime/
18 BuildRequires:  perl-ExtUtils-MakeMaker >= 6.31
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 %if %{with tests}
22 BuildRequires:  perl-DateTime >= 1:1.00
23 BuildRequires:  perl-DateTime-Locale >= 0.45
24 BuildRequires:  perl-DateTime-TimeZone >= 0.79
25 BuildRequires:  perl-Params-Validate >= 0.64
26 BuildRequires:  perl-Test-Simple >= 0.88
27 %endif
28 Requires:       perl-DateTime >= 1.00
29 BuildArch:      noarch
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 This module implements most of strptime(3), the POSIX function that is
34 the reverse of strftime(3), for DateTime. While strftime takes a
35 DateTime and a pattern and returns a string, strptime takes a string
36 and a pattern and returns the DateTime object associated.
37
38 %description -l pl.UTF-8
39 Ten moduł implementuje większość strptime(3) - funkcji POSIX będącej
40 odwrotną dla strftime(3), dla DateTime. O ile strftime przyjmuje
41 DateTime i wzorzec, a zwraca łańcuch, to strptime przyjmuje łańcuch i
42 wzorzec, a zwraca powiązany obiekt DateTime.
43
44 %prep
45 %setup -q -n %{pdir}-%{pnam}-1.56
46
47 %build
48 %{__perl} Makefile.PL \
49         INSTALLDIRS=vendor
50 %{__make}
51
52 %{?with_tests:%{__make} test}
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56
57 %{__make} install \
58         DESTDIR=$RPM_BUILD_ROOT
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %files
64 %defattr(644,root,root,755)
65 %doc Changes
66 %{perl_vendorlib}/DateTime/Format/Strptime.pm
67 %{_mandir}/man3/DateTime::Format::Strptime.3pm*
This page took 0.234897 seconds and 2 git commands to generate.