]> git.pld-linux.org Git - packages/perl-HTTP-Date.git/blob - perl-HTTP-Date.spec
87db836b79130808d82161b20b7018309e0bdafc
[packages/perl-HTTP-Date.git] / perl-HTTP-Date.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define         pdir    HTTP
6 %define         pnam    Date
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
10 Name:           perl-HTTP-Date
11 Version:        6.02
12 Release:        1
13 # same as perl
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
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
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.
29
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().
34
35 %prep
36 %setup -q -n %{pdir}-%{pnam}-%{version}
37
38 %build
39 %{__perl} Makefile.PL \
40         INSTALLDIRS=vendor
41 %{__make}
42
43 %{?with_tests:%{__make} test}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47
48 %{__make} pure_install \
49         DESTDIR=$RPM_BUILD_ROOT
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %doc Changes
57 %{perl_vendorlib}/HTTP/Date.pm
58 %{_mandir}/man3/HTTP::Date.3pm*
This page took 0.061466 seconds and 2 git commands to generate.