]> git.pld-linux.org Git - packages/perl-DateTime-Format-ICal.git/blob - perl-DateTime-Format-ICal.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-DateTime-Format-ICal.git] / perl-DateTime-Format-ICal.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    DateTime
6 %define pnam    Format-ICal
7 Summary:        DateTime::Format::ICal - Parse and format iCal datetime and duration strings
8 Summary(pl.UTF-8):      DateTime::Format::ICal - analiza i formatowanie łańcuchów czasów i okresów iCal
9 Name:           perl-DateTime-Format-ICal
10 Version:        0.09
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-authors/id/D/DR/DROLSKY/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  17bb64bfb515f2db365ba5bb5a68a143
17 URL:            http://search.cpan.org/dist/DateTime-Format-ICal/
18 BuildRequires:  perl-Module-Build
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 %if %{with tests}
22 BuildRequires:  perl-DateTime >= 0.17
23 BuildRequires:  perl-DateTime-Event-ICal >= 0.03
24 BuildRequires:  perl-DateTime-Set >= 0.1
25 BuildRequires:  perl-DateTime-TimeZone >= 0.22
26 BuildRequires:  perl-Params-Validate >= 0.59
27 %endif
28 Requires:       perl-DateTime >= 0.28-2
29 BuildArch:      noarch
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 This module understands the ICal date/time and duration formats, as
34 defined in RFC 2445. It can be used to parse these formats in order to
35 create the appropriate objects.
36
37 %description -l pl.UTF-8
38 Ten moduł rozumie formaty daty/czasu i okresów ICal zgodnie z
39 definicją w RFC 2445. Może być używany do analizy tych formatów w celu
40 tworzenia odpowiednich obiektów.
41
42 %prep
43 %setup -q -n %{pdir}-%{pnam}-%{version}
44
45 %build
46 %{__perl} Build.PL \
47         destdir=$RPM_BUILD_ROOT \
48         installdirs=vendor
49 ./Build
50
51 %{?with_tests:./Build test}
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55
56 ./Build install
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %files
62 %defattr(644,root,root,755)
63 %doc Changes
64 %{perl_vendorlib}/DateTime/Format/*.pm
65 %{_mandir}/man3/*
This page took 0.067208 seconds and 4 git commands to generate.