]>
Commit | Line | Data |
---|---|---|
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 | |
7 | Summary: DateTime::Format::W3CDTF - Parse and format W3CDTF datetime strings | |
d474d473 | 8 | Summary(pl.UTF-8): DateTime::Format::W3CDTF - analizowanie i formatowanie łańcuchów dat W3CDTF |
40163936 | 9 | Name: perl-DateTime-Format-W3CDTF |
495626f9 | 10 | Version: 0.07 |
1a870d34 | 11 | Release: 1 |
40163936 SS |
12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
06705ed3 | 15 | Source0: http://www.cpan.org/modules/by-module/DateTime/%{pdir}-%{pnam}-%{version}.tar.gz |
495626f9 | 16 | # Source0-md5: 9b4fa51057422b3facc4746b744807d9 |
d474d473 | 17 | URL: http://search.cpan.org/dist/DateTime-Format-W3CDTF/ |
40163936 SS |
18 | BuildRequires: perl-devel >= 1:5.8.0 |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
962a48c9 MP |
20 | %if %{with tests} |
21 | BuildRequires: perl-DateTime | |
22 | %endif | |
40163936 SS |
23 | BuildArch: noarch |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | This module understands the W3CDTF date/time format, an ISO 8601 | |
d474d473 JB |
28 | profile, defined at <http://www.w3.org/TR/NOTE-datetime>. This format |
29 | as the native date format of RSS 1.0. | |
40163936 SS |
30 | |
31 | It can be used to parse these formats in order to create the | |
32 | appropriate objects. | |
33 | ||
d474d473 JB |
34 | %description -l pl.UTF-8 |
35 | Ten moduł rozumie format daty/czasu W3CDTF w profilu ISO 8601, | |
36 | zdefiniowany w <http://www.w3.org/TR/NOTE-datetime>. Jest to natywny | |
37 | format daty w RSS 1.0. | |
40163936 | 38 | |
d474d473 JB |
39 | Moduł można wykorzystać do analizy tych formatów w celu utworzenia |
40 | odpowiednich 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 | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %{__make} install \ | |
56 | DESTDIR=$RPM_BUILD_ROOT | |
57 | ||
58 | %clean | |
59 | rm -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* |