]>
Commit | Line | Data |
---|---|---|
40163936 SS |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir DateTime | |
7 | %define pnam Format-W3CDTF | |
8 | Summary: DateTime::Format::W3CDTF - Parse and format W3CDTF datetime strings | |
9 | #Summary(pl): | |
10 | Name: perl-DateTime-Format-W3CDTF | |
11 | Version: 0.04 | |
12 | Release: 0.1 | |
13 | # same as perl | |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
16 | Source0: http://www.cpan.org/modules/by-authors/id/K/KE/KELLAN/DateTime-Format-W3CDTF-%{version}.tar.gz | |
17 | # Source0-md5: 5ad0a41bb5de08f9c16395ea311bb491 | |
18 | BuildRequires: perl-devel >= 1:5.8.0 | |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
20 | %if %{with tests} | |
21 | %endif | |
22 | BuildArch: noarch | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | This module understands the W3CDTF date/time format, an ISO 8601 | |
27 | profile, defined at http://www.w3.org/TR/NOTE-datetime. This format as | |
28 | the native date format of RSS 1.0. | |
29 | ||
30 | It can be used to parse these formats in order to create the | |
31 | appropriate objects. | |
32 | ||
33 | ||
34 | ||
35 | # %description -l pl # TODO | |
36 | ||
37 | %prep | |
38 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
39 | ||
40 | %build | |
41 | %{__perl} Makefile.PL \ | |
42 | INSTALLDIRS=vendor | |
43 | %{__make} | |
44 | ||
45 | %{?with_tests:%{__make} test} | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %{__make} install \ | |
51 | DESTDIR=$RPM_BUILD_ROOT | |
52 | ||
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
58 | %doc Changes README | |
59 | %{perl_vendorlib}/DateTime/Format/*.pm | |
60 | %{_mandir}/man3/* |