]>
Commit | Line | Data |
---|---|---|
4c12bd32 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-Recurrence | |
8 | Summary: DateTime::Event::Recurrence - DateTime::Set extension for create basic recurrence sets | |
c6c382ca | 9 | Summary(pl.UTF-8): DateTime::Event::Recurrence - rozszerzenie DateTime::Set o tworzenie prostych zbiorów rekurencyjnych |
4c12bd32 | 10 | Name: perl-DateTime-Event-Recurrence |
43c9e073 AM |
11 | Version: 0.19 |
12 | Release: 1 | |
4c12bd32 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-Recurrence-%{version}.tar.gz | |
43c9e073 | 17 | # Source0-md5: 1f3249fa624caef76fd83cceeb7b4d3c |
4c12bd32 ER |
18 | URL: http://search.cpan.org/dist/DateTime-Event-Recurrence/ |
19 | BuildRequires: perl-devel >= 1:5.8.0 | |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | %if %{with tests} | |
f893f90a ER |
22 | BuildRequires: perl-DateTime >= 1:0.27 |
23 | BuildRequires: perl-DateTime-Set >= 0.17 | |
4c12bd32 | 24 | %endif |
859f493b | 25 | Requires: perl-DateTime >= 1:0.34-1.1 |
4c12bd32 ER |
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 various recurrences, such as "once a month" | |
32 | or "every day". You can also create more complicated recurrences, such | |
33 | as "every Monday, Wednesday and Thursday at 10:00 AM and 2:00 PM". | |
34 | ||
d81f06bf JR |
35 | %description -l pl.UTF-8 |
36 | Ten moduł dostarcza wygodne metody pozwalające łatwo tworzyć obiekty | |
37 | DateTime::Set dla różnych rekurencji, takich jak "raz w miesiącu" czy | |
38 | "codziennie". Można także tworzyć bardziej złożone rekurencje, takie | |
39 | jak "każdy poniedziałek, środa i czwartek od 10:00 do 14:00". | |
56637ae8 | 40 | |
4c12bd32 ER |
41 | %prep |
42 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
43 | ||
44 | %build | |
45 | %{__perl} Makefile.PL \ | |
46 | INSTALLDIRS=vendor | |
47 | %{__make} | |
48 | ||
49 | %{?with_tests:%{__make} test} | |
50 | ||
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %{__make} install \ | |
55 | DESTDIR=$RPM_BUILD_ROOT | |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
62 | %doc Changes CREDITS README TODO | |
4c12bd32 ER |
63 | %{perl_vendorlib}/DateTime/Event/*.pm |
64 | %{_mandir}/man3/* |