3 %bcond_without tests # do not perform "make test"
7 %include /usr/lib/rpm/macros.perl
8 Summary: HTTP::Date - date conversion routines
9 Summary(pl.UTF-8): HTTP::Date - funkcje do konwersji dat
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/HTTP/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 52b7a0d5982d61be1edb217751d7daba
18 URL: http://search.cpan.org/dist/HTTP-Date/
19 BuildRequires: perl-devel >= 1:5.8.8
20 BuildRequires: rpm-perlprov >= 4.1-13
21 Conflicts: perl-libwww < 6
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 This module provides functions that deal the date formats used by the
27 HTTP protocol (and then some more). Only the first two functions,
28 time2str() and str2time(), are exported by default.
30 %description -l pl.UTF-8
31 Ten moduł udostępnia funkcje obsługujące formaty danych używane w
32 protokole HTTP (i paru innych). Domyślnie eksportowane są tylko dwie
33 funkcje: time2str() i str2time().
36 %setup -q -n %{pdir}-%{pnam}-%{version}
39 %{__perl} Makefile.PL \
43 %{?with_tests:%{__make} test}
46 rm -rf $RPM_BUILD_ROOT
48 %{__make} pure_install \
49 DESTDIR=$RPM_BUILD_ROOT
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
57 %{perl_vendorlib}/HTTP/Date.pm
58 %{_mandir}/man3/HTTP::Date.3pm*