3 %bcond_with tests # perform "make test". starts test httpd service
5 %include /usr/lib/rpm/macros.perl
7 %define pnam Scoreboard
8 Summary: Apache::Scoreboard - Perl interface to the Apache scoreboard structure
9 Summary(pl.UTF-8): Apache::Scoreboard - perlowy interfejs do struktury scoreboard Apache'a
10 Name: perl-Apache-Scoreboard
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: df133feb853c4ef743557e6621adcc3f
17 BuildRequires: apache-mod_perl-devel
18 BuildRequires: apr-devel >= 1:1.0
19 BuildRequires: apr-util-devel >= 1:1.0
20 BuildRequires: perl-Apache-Test
21 BuildRequires: perl-devel >= 1:5.8.0
22 BuildRequires: perl-mod_perl
24 BuildRequires: perl-Chart-PNGgraph
26 BuildRequires: rpm-perlprov >= 4.1-13
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 Apache keeps track of server activity in a structure known as the
31 scoreboard. There is a slot in the scoreboard for each child server,
32 containing information such as status, access count, bytes served and
33 cpu time. This same information is used by mod_status to provide
34 current server statistics in a human readable form.
36 %description -l pl.UTF-8
37 Apache śledzi aktywność serwera w strukturze znanej jako scoreboard. W
38 scoreboard znajduje się slot dla każdego serwera potomnego,
39 zawierający informacje takie jak stan, liczba klientów, wysłanych
40 bajtów i zajęty czas procesora. Te same informacje są używane przez
41 mod_status do udostępniania aktualnych statystyk w postaci czytelnej
45 %setup -q -n %{pdir}-%{pnam}-2.09
48 INC="-I/usr/include/apache $(apr-1-config --includes) $(apu-1-config --includes)"
49 %{__perl} Makefile.PL \
53 %{__perl} Makefile.PL \
59 OPTIMIZE="%{rpmcflags}"
60 %{?with_tests:%{__make} test}
63 rm -rf $RPM_BUILD_ROOT
66 DESTDIR=$RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT%{_examplesdir}
69 cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
70 rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
71 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Apache/Scoreboard/.packlist
74 rm -rf $RPM_BUILD_ROOT
77 %defattr(644,root,root,755)
79 %{perl_vendorarch}/Apache/*.pm
80 %dir %{perl_vendorarch}/auto/Apache
81 %dir %{perl_vendorarch}/auto/Apache/Scoreboard
82 %attr(755,root,root) %{perl_vendorarch}/auto/Apache/Scoreboard/*.so
83 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}