]>
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 | 10 | Name: perl-DateTime-Format-W3CDTF |
aed10f41 | 11 | Version: 0.06 |
1a870d34 | 12 | Release: 1 |
40163936 SS |
13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
06705ed3 | 16 | Source0: http://www.cpan.org/modules/by-module/DateTime/%{pdir}-%{pnam}-%{version}.tar.gz |
aed10f41 | 17 | # Source0-md5: 7eb2a90b78e7e2232eddbd6dd6758a23 |
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 | |
962a48c9 MP |
21 | %if %{with tests} |
22 | BuildRequires: perl-DateTime | |
23 | %endif | |
40163936 SS |
24 | BuildArch: noarch |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | This module understands the W3CDTF date/time format, an ISO 8601 | |
d474d473 JB |
29 | profile, defined at <http://www.w3.org/TR/NOTE-datetime>. This format |
30 | as the native date format of RSS 1.0. | |
40163936 SS |
31 | |
32 | It can be used to parse these formats in order to create the | |
33 | appropriate objects. | |
34 | ||
d474d473 JB |
35 | %description -l pl.UTF-8 |
36 | Ten moduł rozumie format daty/czasu W3CDTF w profilu ISO 8601, | |
37 | zdefiniowany w <http://www.w3.org/TR/NOTE-datetime>. Jest to natywny | |
38 | format daty w RSS 1.0. | |
40163936 | 39 | |
d474d473 JB |
40 | Moduł można wykorzystać do analizy tych formatów w celu utworzenia |
41 | odpowiednich obiektów. | |
40163936 SS |
42 | |
43 | %prep | |
44 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
45 | ||
46 | %build | |
47 | %{__perl} Makefile.PL \ | |
48 | INSTALLDIRS=vendor | |
49 | %{__make} | |
50 | ||
51 | %{?with_tests:%{__make} test} | |
52 | ||
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %{__make} install \ | |
57 | DESTDIR=$RPM_BUILD_ROOT | |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc Changes README | |
62558e2d JB |
65 | %{perl_vendorlib}/DateTime/Format/W3CDTF.pm |
66 | %{_mandir}/man3/DateTime::Format::W3CDTF.3pm* |