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