]>
Commit | Line | Data |
---|---|---|
15341e46 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %define pdir HTTP | |
6 | %define pnam Date | |
15341e46 JB |
7 | Summary: HTTP::Date - date conversion routines |
8 | Summary(pl.UTF-8): HTTP::Date - funkcje do konwersji dat | |
9 | Name: perl-HTTP-Date | |
14734bf9 | 10 | Version: 6.03 |
15341e46 JB |
11 | Release: 1 |
12 | # same as perl | |
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 | |
14734bf9 | 16 | # Source0-md5: 15fee0918986a5d15a7b63ffb464ad94 |
15341e46 JB |
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 | |
21 | BuildArch: noarch | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
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. | |
28 | ||
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(). | |
33 | ||
34 | %prep | |
35 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
36 | ||
37 | %build | |
38 | %{__perl} Makefile.PL \ | |
39 | INSTALLDIRS=vendor | |
40 | %{__make} | |
41 | ||
42 | %{?with_tests:%{__make} test} | |
43 | ||
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %{__make} pure_install \ | |
48 | DESTDIR=$RPM_BUILD_ROOT | |
49 | ||
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
6fd23324 | 55 | %doc Changes |
15341e46 JB |
56 | %{perl_vendorlib}/HTTP/Date.pm |
57 | %{_mandir}/man3/HTTP::Date.3pm* |