]> git.pld-linux.org Git - packages/perl-HTTP-Date.git/blame - perl-HTTP-Date.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-HTTP-Date.git] / perl-HTTP-Date.spec
CommitLineData
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
7Summary: HTTP::Date - date conversion routines
8Summary(pl.UTF-8): HTTP::Date - funkcje do konwersji dat
9Name: perl-HTTP-Date
14734bf9 10Version: 6.03
15341e46
JB
11Release: 1
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
15Source0: http://www.cpan.org/modules/by-module/HTTP/%{pdir}-%{pnam}-%{version}.tar.gz
14734bf9 16# Source0-md5: 15fee0918986a5d15a7b63ffb464ad94
15341e46
JB
17URL: http://search.cpan.org/dist/HTTP-Date/
18BuildRequires: perl-devel >= 1:5.8.8
19BuildRequires: rpm-perlprov >= 4.1-13
20Conflicts: perl-libwww < 6
21BuildArch: noarch
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
25This module provides functions that deal the date formats used by the
26HTTP protocol (and then some more). Only the first two functions,
27time2str() and str2time(), are exported by default.
28
29%description -l pl.UTF-8
30Ten moduł udostępnia funkcje obsługujące formaty danych używane w
31protokole HTTP (i paru innych). Domyślnie eksportowane są tylko dwie
32funkcje: 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
45rm -rf $RPM_BUILD_ROOT
46
47%{__make} pure_install \
48 DESTDIR=$RPM_BUILD_ROOT
49
50%clean
51rm -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*
This page took 0.254422 seconds and 4 git commands to generate.