3 %bcond_without tests # do not perform "make test"
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: 15fee0918986a5d15a7b63ffb464ad94
17 URL: http://search.cpan.org/dist/HTTP-Date/
18 BuildRequires: perl-devel >= 1:5.8.8
19 BuildRequires: rpm-perlprov >= 4.1-13
20 Conflicts: perl-libwww < 6
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 This module provides functions that deal the date formats used by the
26 HTTP protocol (and then some more). Only the first two functions,
27 time2str() and str2time(), are exported by default.
29 %description -l pl.UTF-8
30 Ten moduł udostępnia funkcje obsługujące formaty danych używane w
31 protokole HTTP (i paru innych). Domyślnie eksportowane są tylko dwie
32 funkcje: time2str() i str2time().
35 %setup -q -n %{pdir}-%{pnam}-%{version}
38 %{__perl} Makefile.PL \
42 %{?with_tests:%{__make} test}
45 rm -rf $RPM_BUILD_ROOT
47 %{__make} pure_install \
48 DESTDIR=$RPM_BUILD_ROOT
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %{perl_vendorlib}/HTTP/Date.pm
57 %{_mandir}/man3/HTTP::Date.3pm*