]> git.pld-linux.org Git - packages/perl-DateTime-Format-W3CDTF.git/blob - 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
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    DateTime
6 %define pnam    Format-W3CDTF
7 Summary:        DateTime::Format::W3CDTF - Parse and format W3CDTF datetime strings
8 Summary(pl.UTF-8):      DateTime::Format::W3CDTF - analizowanie i formatowanie łańcuchów dat W3CDTF
9 Name:           perl-DateTime-Format-W3CDTF
10 Version:        0.07
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/DateTime/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  9b4fa51057422b3facc4746b744807d9
17 URL:            http://search.cpan.org/dist/DateTime-Format-W3CDTF/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl-DateTime
22 %endif
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
28 profile, defined at <http://www.w3.org/TR/NOTE-datetime>. This format
29 as the native date format of RSS 1.0.
30
31 It can be used to parse these formats in order to create the
32 appropriate objects.
33
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.
38
39 Moduł można wykorzystać do analizy tych formatów w celu utworzenia
40 odpowiednich obiektów.
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
64 %{perl_vendorlib}/DateTime/Format/W3CDTF.pm
65 %{_mandir}/man3/DateTime::Format::W3CDTF.3pm*
This page took 0.079769 seconds and 4 git commands to generate.