]> git.pld-linux.org Git - SPECS.git/blob - perl-POE-Component-Cron.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / perl-POE-Component-Cron.spec
1 #
2 # Conditional build:
3 %bcond_without  tests           # do not perform "make test"
4 #
5 %define pdir    POE
6 %define pnam    Component-Cron
7 Summary:        POE::Component::Cron - Schedule POE Events using a cron spec
8 Summary(pl.UTF-8):      POE::Component::Cron - szeregowanie zdarzeń POE przy użyciu opisów crona
9 Name:           perl-POE-Component-Cron
10 Version:        0.021
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/POE/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  598826703b953575f9ae0b003806326e
17 URL:            http://search.cpan.org/dist/POE-Component-Cron/
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 %if %{with tests}
21 BuildRequires:  perl-DateTime
22 BuildRequires:  perl-DateTime-Event-Cron
23 BuildRequires:  perl-DateTime-Event-Random
24 BuildRequires:  perl-POE
25 BuildRequires:  perl-POE-Component-Schedule
26 %endif
27 BuildArch:      noarch
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 This component encapsulates a session that sends events to client
32 sessions on a schedule as defined by a DateTime::Set iterator. The
33 implementation is straight forward if a little limited.
34
35 %description -l pl.UTF-8
36 Ten komponent obudowuje sesję wysyłającą zdarzenia do sesji klienckich
37 zgodnie z planem określonym przez iterator DateTime::Set.
38 Implementacja jest bezpośrednia, choć nieco ograniczona.
39
40 %prep
41 %setup -q -n %{pdir}-%{pnam}-%{version}
42
43 %build
44 %{__perl} Makefile.PL \
45         INSTALLDIRS=vendor
46 %{__make}
47
48 %{?with_tests:%{__make} test}
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52
53 %{__make} install \
54         DESTDIR=$RPM_BUILD_ROOT
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(644,root,root,755)
61 %doc Changes README
62 %{perl_vendorlib}/POE/Component/*.pm
63 %{_mandir}/man3/*
This page took 0.793979 seconds and 3 git commands to generate.