]>
Commit | Line | Data |
---|---|---|
8771d0d6 ER |
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 Event-ICal | |
8 | Summary: DateTime::Event::ICal - Perl DateTime extension for computing rfc2445 recurrences | |
2ce64f70 | 9 | Summary(pl.UTF-8): DateTime::Event::ICal - rozszerzenie DateTime o obliczanie rekurencji rfc2445 |
8771d0d6 | 10 | Name: perl-DateTime-Event-ICal |
0a2c514a | 11 | Version: 0.13 |
450ccf20 | 12 | Release: 1 |
8771d0d6 ER |
13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
16 | Source0: http://www.cpan.org/modules/by-authors/id/F/FG/FGLOCK/DateTime-Event-ICal-%{version}.tar.gz | |
0a2c514a | 17 | # Source0-md5: cc7fc1f939c41c3c6e25b349917fbcdc |
2eee9f18 | 18 | URL: http://search.cpan.org/dist/DateTime-Event-ICal/ |
8771d0d6 ER |
19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | %if %{with tests} | |
2eee9f18 JB |
22 | BuildRequires: perl-DateTime |
23 | BuildRequires: perl-DateTime-Event-Recurrence >= 0.11 | |
8771d0d6 ER |
24 | %endif |
25 | Requires: perl-DateTime >= 1:0.34-1.1 | |
26 | BuildArch: noarch | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
30 | This module provides convenience methods that let you easily create | |
31 | DateTime::Set objects for rfc2445 style recurrences. | |
32 | ||
6bafeacc JR |
33 | %description -l pl.UTF-8 |
34 | Ten moduł dostarcza wygodne metody pozwalające łatwo tworzyć obiekty | |
2eee9f18 JB |
35 | DateTime::Set dla rekurencji w stylu rfc2445. |
36 | ||
8771d0d6 ER |
37 | %prep |
38 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
39 | ||
40 | %build | |
41 | %{__perl} Makefile.PL \ | |
42 | INSTALLDIRS=vendor | |
43 | %{__make} | |
44 | ||
45 | %{?with_tests:%{__make} test} | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %{__make} install \ | |
51 | DESTDIR=$RPM_BUILD_ROOT | |
52 | ||
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
58 | %doc Changes README TODO | |
59 | %{perl_vendorlib}/DateTime/Event/*.pm | |
60 | %{_mandir}/man3/* |