]>
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 | |
d474d473 | 9 | Summary(pl.UTF-8): DateTime::Format::W3CDTF - analizowanie i formatowanie łańcuchów dat W3CDTF |
40163936 SS |
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 | |
d474d473 | 16 | Source0: http://www.cpan.org/modules/by-authors/id/K/KE/KELLAN/%{pdir}-%{pnam}-%{version}.tar.gz |
40163936 | 17 | # Source0-md5: 5ad0a41bb5de08f9c16395ea311bb491 |
d474d473 | 18 | URL: http://search.cpan.org/dist/DateTime-Format-W3CDTF/ |
40163936 SS |
19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
40163936 SS |
21 | BuildArch: noarch |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | This module understands the W3CDTF date/time format, an ISO 8601 | |
d474d473 JB |
26 | profile, defined at <http://www.w3.org/TR/NOTE-datetime>. This format |
27 | as the native date format of RSS 1.0. | |
40163936 SS |
28 | |
29 | It can be used to parse these formats in order to create the | |
30 | appropriate objects. | |
31 | ||
d474d473 JB |
32 | %description -l pl.UTF-8 |
33 | Ten moduł rozumie format daty/czasu W3CDTF w profilu ISO 8601, | |
34 | zdefiniowany w <http://www.w3.org/TR/NOTE-datetime>. Jest to natywny | |
35 | format daty w RSS 1.0. | |
40163936 | 36 | |
d474d473 JB |
37 | Moduł można wykorzystać do analizy tych formatów w celu utworzenia |
38 | odpowiednich obiektów. | |
40163936 SS |
39 | |
40 | %prep | |
41 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
42 | ||
43 | %build | |
44 | %{__perl} Makefile.PL \ | |
45 | INSTALLDIRS=vendor | |
46 | %{__make} | |
47 | ||
48 | %{?with_tests:%{__make} test} | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %{__make} install \ | |
54 | DESTDIR=$RPM_BUILD_ROOT | |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
61 | %doc Changes README | |
62 | %{perl_vendorlib}/DateTime/Format/*.pm | |
63 | %{_mandir}/man3/* |