summaryrefslogtreecommitdiff
path: root/perl-Apache-VMonitor.spec
blob: f3e67590ed398c20de002967df99cac4d3606498 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# TODO
# - webapps?
# Conditional build:
%bcond_with	apache1		# build with apache1
%bcond_with	tests		# perform "make test" (require to start apache)

%define		pdir	Apache
%define		pnam	VMonitor
%include	/usr/lib/rpm/macros.perl
Summary:	Apache::VMonitor - visual system and Apache server monitor
Summary(pl.UTF-8):	Apache::VMonitor - wizualny monitor serwera Apache i systemu
Name:		perl-Apache-VMonitor
Version:	2.06
Release:	1
# same as perl
License:	GPL v1+ or Artistic
Group:		Development/Languages/Perl
Source0:	http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5:	39e86632f5007022c91de169a301576e
Source1:	%{name}.conf
URL:		http://search.cpan.org/dist/Apache-VMonitor/
BuildRequires:	apache-mod_perl-devel >= 1.15
BuildRequires:	perl-devel >= 1:5.8.0
BuildRequires:	rpm-perlprov >= 4.1-13
BuildConflicts:	apache1-mod_perl
%if %{with tests}
BuildRequires:	perl-Apache-Scoreboard
BuildRequires:	perl-Template-Toolkit
%endif
Requires:	apache-mod_perl >= 1.15
Requires:	perl-Apache-Scoreboard >= 0.08
Requires:	perl-GTop >= 0.09
Requires:	perl-Template-Toolkit
BuildArch:	noarch
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
This module emulates the reporting functionalities of top(1), extended
for mod_perl processes, mount(1), and df(1) utilities. It has a visual
alerting capabilities and configurable automatic refresh mode. All the
sections can be shown/hidden dynamically through the web interface.

%description -l pl.UTF-8
Ten moduł emuluje funkcjolaność raportowania oferowaną przez top(1),
rozszerzoną dla procesów mod_perla, oraz narzędzi mount(1) i df(1). Ma
opcje wizualnego ostrzegania i konfigurowalny tryb automatycznego
odświeżania. Wszystkie sekcje mogą być ukrywane/pokazywane dynamicznie
przez interfejs WWW.

%prep
%setup -q -n %{pdir}-%{pnam}-%{version}

%build
%{__perl} Makefile.PL \
	INSTALLDIRS=vendor \
	MOD_PERL=%{?with_apache1:1}%{!?with_apache1:2}
%{__make}

%{?with_tests:%{__make} test}

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

install -D %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/httpd.conf/80_Apache_VMonitor.conf

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%{perl_vendorlib}/%{pdir}/*.pm
%{_mandir}/man3/*
%{_sysconfdir}/httpd/httpd.conf/*.conf