]> git.pld-linux.org Git - packages/perl-DateTime-Format-W3CDTF.git/blame - perl-DateTime-Format-W3CDTF.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-DateTime-Format-W3CDTF.git] / perl-DateTime-Format-W3CDTF.spec
CommitLineData
40163936
SS
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
40163936
SS
5%define pdir DateTime
6%define pnam Format-W3CDTF
7Summary: DateTime::Format::W3CDTF - Parse and format W3CDTF datetime strings
d474d473 8Summary(pl.UTF-8): DateTime::Format::W3CDTF - analizowanie i formatowanie łańcuchów dat W3CDTF
40163936 9Name: perl-DateTime-Format-W3CDTF
495626f9 10Version: 0.07
1a870d34 11Release: 1
40163936
SS
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
06705ed3 15Source0: http://www.cpan.org/modules/by-module/DateTime/%{pdir}-%{pnam}-%{version}.tar.gz
495626f9 16# Source0-md5: 9b4fa51057422b3facc4746b744807d9
d474d473 17URL: http://search.cpan.org/dist/DateTime-Format-W3CDTF/
40163936
SS
18BuildRequires: perl-devel >= 1:5.8.0
19BuildRequires: rpm-perlprov >= 4.1-13
962a48c9
MP
20%if %{with tests}
21BuildRequires: perl-DateTime
22%endif
40163936
SS
23BuildArch: noarch
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27This module understands the W3CDTF date/time format, an ISO 8601
d474d473
JB
28profile, defined at <http://www.w3.org/TR/NOTE-datetime>. This format
29as the native date format of RSS 1.0.
40163936
SS
30
31It can be used to parse these formats in order to create the
32appropriate objects.
33
d474d473
JB
34%description -l pl.UTF-8
35Ten moduł rozumie format daty/czasu W3CDTF w profilu ISO 8601,
36zdefiniowany w <http://www.w3.org/TR/NOTE-datetime>. Jest to natywny
37format daty w RSS 1.0.
40163936 38
d474d473
JB
39Moduł można wykorzystać do analizy tych formatów w celu utworzenia
40odpowiednich obiektów.
40163936
SS
41
42%prep
43%setup -q -n %{pdir}-%{pnam}-%{version}
44
45%build
46%{__perl} Makefile.PL \
47 INSTALLDIRS=vendor
48%{__make}
49
50%{?with_tests:%{__make} test}
51
52%install
53rm -rf $RPM_BUILD_ROOT
54
55%{__make} install \
56 DESTDIR=$RPM_BUILD_ROOT
57
58%clean
59rm -rf $RPM_BUILD_ROOT
60
61%files
62%defattr(644,root,root,755)
63%doc Changes README
62558e2d
JB
64%{perl_vendorlib}/DateTime/Format/W3CDTF.pm
65%{_mandir}/man3/DateTime::Format::W3CDTF.3pm*
This page took 0.063649 seconds and 4 git commands to generate.