3 %bcond_without tests # do not perform "make test"
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
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
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
28 Requires: perl-DateTime >= 1.00
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
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.
45 %setup -q -n %{pdir}-%{pnam}-1.56
48 %{__perl} Makefile.PL \
52 %{?with_tests:%{__make} test}
55 rm -rf $RPM_BUILD_ROOT
58 DESTDIR=$RPM_BUILD_ROOT
61 rm -rf $RPM_BUILD_ROOT
64 %defattr(644,root,root,755)
66 %{perl_vendorlib}/DateTime/Format/Strptime.pm
67 %{_mandir}/man3/DateTime::Format::Strptime.3pm*