]>
Commit | Line | Data |
---|---|---|
9df91cd6 | 1 | # |
31d02ee5 | 2 | # Conditional build: |
031001a9 | 3 | %bcond_without tests # do not perform "make test" |
990f5b46 | 4 | |
5926599f | 5 | %define pdir Watchdog |
31d02ee5 | 6 | Summary: Watchdog - set of watchdog modules |
4d1547ea | 7 | Summary(pl.UTF-8): Watchdog - zbiór modułów do monitoringu |
31d02ee5 MP |
8 | Name: perl-Watchdog |
9 | Version: 0.10 | |
c70512ff | 10 | Release: 4 |
31d02ee5 | 11 | # same as perl |
031001a9 | 12 | License: GPL v1+ or Artistic |
31d02ee5 MP |
13 | Group: Development/Languages/Perl |
14 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{version}.tar.gz | |
15 | # Source0-md5: 63e684be05307a8cd148d9020d62b99c | |
990f5b46 | 16 | URL: http://search.cpan.org/dist/Watchdog/ |
cab42a30 MP |
17 | BuildRequires: perl-Alias |
18 | BuildRequires: perl-Proc-ProcessTable | |
9df91cd6 JB |
19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
cab42a30 | 21 | BuildArch: noarch |
9df91cd6 | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31d02ee5 MP |
23 | |
24 | %description | |
25 | Watchdog::Process, Watchdog::HTTP and Watchdog::Mysql are classes for | |
9df91cd6 | 26 | monitoring whether a process, HTTP server or MySQL server respectively |
31d02ee5 MP |
27 | is functioning. |
28 | ||
46df4a49 JR |
29 | %description -l pl.UTF-8 |
30 | Watchdog::Process, Watchdog::HTTP i Watchdog::Mysql są modułami | |
31 | służącymi do monitorowania pracy procesów, serwera WWW lub MySQL. | |
cab42a30 | 32 | |
31d02ee5 MP |
33 | %prep |
34 | %setup -q -n %{pdir}-%{version} | |
35 | ||
36 | %build | |
37 | %{__perl} Makefile.PL \ | |
38 | INSTALLDIRS=vendor | |
31d02ee5 MP |
39 | %{__make} |
40 | ||
9df91cd6 | 41 | %{?with_tests:%{__make} test} |
31d02ee5 MP |
42 | |
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
9df91cd6 JB |
45 | |
46 | %{__make} install \ | |
47 | DESTDIR=$RPM_BUILD_ROOT | |
31d02ee5 MP |
48 | |
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
9df91cd6 | 54 | %doc README etc/watchdog.conf |
31d02ee5 MP |
55 | %dir %{perl_vendorlib}/Watchdog |
56 | %{perl_vendorlib}/Watchdog/*.pm | |
57 | %{_mandir}/man3/* |