]>
Commit | Line | Data |
---|---|---|
be30697b ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
c7723884 ER |
4 | |
5 | %define pdir DateTime | |
6 | %define pnam Format-Strptime | |
be30697b | 7 | %include /usr/lib/rpm/macros.perl |
be30697b | 8 | Summary: DateTime::Format::Strptime - Parse and format strp and strf time patterns |
d3d80d41 | 9 | Summary(pl.UTF-8): DateTime::Format::Strptime - analiza i formatowanie wzorców czasu strp i strf |
be30697b | 10 | Name: perl-DateTime-Format-Strptime |
c394a901 JB |
11 | # fill version to 4 decimal digits to avoid epoch bumps after 1.5000 (drop in >= 2.x if possible) |
12 | %define rver 1.68 | |
13 | Version: %{rver}00 | |
e00fc01c | 14 | Release: 1 |
a0678e50 | 15 | License: Artistic v2.0 |
be30697b | 16 | Group: Development/Languages/Perl |
c394a901 JB |
17 | Source0: http://www.cpan.org/modules/by-module/DateTime/DateTime-Format-Strptime-%{rver}.tar.gz |
18 | # Source0-md5: 50dcc1ff5346848fe1ec928bda07fe44 | |
be30697b | 19 | URL: http://search.cpan.org/dist/DateTime-Format-Strptime/ |
c4bbf43d | 20 | BuildRequires: perl-ExtUtils-MakeMaker >= 6.31 |
be30697b ER |
21 | BuildRequires: perl-devel >= 1:5.8.0 |
22 | BuildRequires: rpm-perlprov >= 4.1-13 | |
23 | %if %{with tests} | |
cdf35bf4 | 24 | BuildRequires: perl-DateTime >= 1:1.00 |
c4bbf43d JB |
25 | BuildRequires: perl-DateTime-Locale >= 0.45 |
26 | BuildRequires: perl-DateTime-TimeZone >= 0.79 | |
c394a901 JB |
27 | BuildRequires: perl-Package-DeprecationManager >= 0.15 |
28 | BuildRequires: perl-Params-Validate >= 1.20 | |
29 | BuildRequires: perl-Test-Fatal | |
30 | BuildRequires: perl-Test-Simple >= 0.96 | |
31 | BuildRequires: perl-Test-Warnings | |
32 | BuildRequires: perl-Try-Tiny | |
be30697b | 33 | %endif |
cdf35bf4 | 34 | Requires: perl-DateTime >= 1.00 |
be30697b ER |
35 | BuildArch: noarch |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
37 | ||
38 | %description | |
39 | This module implements most of strptime(3), the POSIX function that is | |
40 | the reverse of strftime(3), for DateTime. While strftime takes a | |
41 | DateTime and a pattern and returns a string, strptime takes a string | |
42 | and a pattern and returns the DateTime object associated. | |
43 | ||
94167ee9 JR |
44 | %description -l pl.UTF-8 |
45 | Ten moduł implementuje większość strptime(3) - funkcji POSIX będącej | |
46 | odwrotną dla strftime(3), dla DateTime. O ile strftime przyjmuje | |
47 | DateTime i wzorzec, a zwraca łańcuch, to strptime przyjmuje łańcuch i | |
48 | wzorzec, a zwraca powiązany obiekt DateTime. | |
b8a30cb1 | 49 | |
be30697b | 50 | %prep |
c394a901 | 51 | %setup -q -n %{pdir}-%{pnam}-%{rver} |
be30697b ER |
52 | |
53 | %build | |
54 | %{__perl} Makefile.PL \ | |
55 | INSTALLDIRS=vendor | |
56 | %{__make} | |
57 | ||
58 | %{?with_tests:%{__make} test} | |
59 | ||
60 | %install | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %{__make} install \ | |
64 | DESTDIR=$RPM_BUILD_ROOT | |
65 | ||
66 | %clean | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %files | |
70 | %defattr(644,root,root,755) | |
a0678e50 | 71 | %doc Changes |
c4bbf43d JB |
72 | %{perl_vendorlib}/DateTime/Format/Strptime.pm |
73 | %{_mandir}/man3/DateTime::Format::Strptime.3pm* |