]> git.pld-linux.org Git - packages/perl-DateTime-Format-Strptime.git/blame - perl-DateTime-Format-Strptime.spec
- updated to 1.68 (as 1.6800)
[packages/perl-DateTime-Format-Strptime.git] / perl-DateTime-Format-Strptime.spec
CommitLineData
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 8Summary: DateTime::Format::Strptime - Parse and format strp and strf time patterns
d3d80d41 9Summary(pl.UTF-8): DateTime::Format::Strptime - analiza i formatowanie wzorców czasu strp i strf
be30697b 10Name: 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
13Version: %{rver}00
e00fc01c 14Release: 1
a0678e50 15License: Artistic v2.0
be30697b 16Group: Development/Languages/Perl
c394a901
JB
17Source0: http://www.cpan.org/modules/by-module/DateTime/DateTime-Format-Strptime-%{rver}.tar.gz
18# Source0-md5: 50dcc1ff5346848fe1ec928bda07fe44
be30697b 19URL: http://search.cpan.org/dist/DateTime-Format-Strptime/
c4bbf43d 20BuildRequires: perl-ExtUtils-MakeMaker >= 6.31
be30697b
ER
21BuildRequires: perl-devel >= 1:5.8.0
22BuildRequires: rpm-perlprov >= 4.1-13
23%if %{with tests}
cdf35bf4 24BuildRequires: perl-DateTime >= 1:1.00
c4bbf43d
JB
25BuildRequires: perl-DateTime-Locale >= 0.45
26BuildRequires: perl-DateTime-TimeZone >= 0.79
c394a901
JB
27BuildRequires: perl-Package-DeprecationManager >= 0.15
28BuildRequires: perl-Params-Validate >= 1.20
29BuildRequires: perl-Test-Fatal
30BuildRequires: perl-Test-Simple >= 0.96
31BuildRequires: perl-Test-Warnings
32BuildRequires: perl-Try-Tiny
be30697b 33%endif
cdf35bf4 34Requires: perl-DateTime >= 1.00
be30697b
ER
35BuildArch: noarch
36BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38%description
39This module implements most of strptime(3), the POSIX function that is
40the reverse of strftime(3), for DateTime. While strftime takes a
41DateTime and a pattern and returns a string, strptime takes a string
42and a pattern and returns the DateTime object associated.
43
94167ee9
JR
44%description -l pl.UTF-8
45Ten moduł implementuje większość strptime(3) - funkcji POSIX będącej
46odwrotną dla strftime(3), dla DateTime. O ile strftime przyjmuje
47DateTime i wzorzec, a zwraca łańcuch, to strptime przyjmuje łańcuch i
48wzorzec, 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
61rm -rf $RPM_BUILD_ROOT
62
63%{__make} install \
64 DESTDIR=$RPM_BUILD_ROOT
65
66%clean
67rm -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*
This page took 0.082336 seconds and 4 git commands to generate.