]> git.pld-linux.org Git - packages/perl-HTTP-Date.git/blame - perl-HTTP-Date.spec
- updated to 6.05
[packages/perl-HTTP-Date.git] / perl-HTTP-Date.spec
CommitLineData
15341e46
JB
1#
2# Conditional build:
2351102a 3%bcond_without tests # unit tests
15341e46
JB
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
2351102a 10Version: 6.05
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
2351102a
JB
16# Source0-md5: 2ecbb3aedf6aef062605191813ca3027
17URL: https://metacpan.org/release/HTTP-Date
18%if %{with tests}
19BuildRequires: perl(Time::Local) >= 1.28
20BuildRequires: perl-Test-Simple
21%endif
15341e46
JB
22BuildRequires: perl-devel >= 1:5.8.8
23BuildRequires: rpm-perlprov >= 4.1-13
2351102a 24BuildRequires: rpmbuild(macros) >= 1.745
15341e46
JB
25Conflicts: perl-libwww < 6
26BuildArch: noarch
27BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29%description
30This module provides functions that deal the date formats used by the
31HTTP protocol (and then some more). Only the first two functions,
32time2str() and str2time(), are exported by default.
33
34%description -l pl.UTF-8
35Ten moduł udostępnia funkcje obsługujące formaty danych używane w
36protokole HTTP (i paru innych). Domyślnie eksportowane są tylko dwie
37funkcje: time2str() i str2time().
38
39%prep
40%setup -q -n %{pdir}-%{pnam}-%{version}
41
42%build
43%{__perl} Makefile.PL \
44 INSTALLDIRS=vendor
45%{__make}
46
47%{?with_tests:%{__make} test}
48
49%install
50rm -rf $RPM_BUILD_ROOT
51
52%{__make} pure_install \
53 DESTDIR=$RPM_BUILD_ROOT
54
55%clean
56rm -rf $RPM_BUILD_ROOT
57
58%files
59%defattr(644,root,root,755)
6fd23324 60%doc Changes
15341e46
JB
61%{perl_vendorlib}/HTTP/Date.pm
62%{_mandir}/man3/HTTP::Date.3pm*
This page took 0.069747 seconds and 4 git commands to generate.