3 %bcond_without tests # unit tests
7 Summary: HTTP::Date - date conversion routines
8 Summary(pl.UTF-8): HTTP::Date - funkcje do konwersji dat
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/HTTP/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 2ecbb3aedf6aef062605191813ca3027
17 URL: https://metacpan.org/release/HTTP-Date
19 BuildRequires: perl(Time::Local) >= 1.28
20 BuildRequires: perl-Test-Simple
22 BuildRequires: perl-devel >= 1:5.8.8
23 BuildRequires: rpm-perlprov >= 4.1-13
24 BuildRequires: rpmbuild(macros) >= 1.745
25 Conflicts: perl-libwww < 6
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 This module provides functions that deal the date formats used by the
31 HTTP protocol (and then some more). Only the first two functions,
32 time2str() and str2time(), are exported by default.
34 %description -l pl.UTF-8
35 Ten moduł udostępnia funkcje obsługujące formaty danych używane w
36 protokole HTTP (i paru innych). Domyślnie eksportowane są tylko dwie
37 funkcje: time2str() i str2time().
40 %setup -q -n %{pdir}-%{pnam}-%{version}
43 %{__perl} Makefile.PL \
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
52 %{__make} pure_install \
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
61 %{perl_vendorlib}/HTTP/Date.pm
62 %{_mandir}/man3/HTTP::Date.3pm*