]> git.pld-linux.org Git - packages/perl-Apache-Scoreboard.git/blame - perl-Apache-Scoreboard.spec
use generic url
[packages/perl-Apache-Scoreboard.git] / perl-Apache-Scoreboard.spec
CommitLineData
477ff75c 1#
475a152b 2# Conditional build:
7aed29cd 3%bcond_with tests # perform "make test". starts test httpd service
5d5de3f4 4
0e119787 5%define pdir Apache
6%define pnam Scoreboard
5d5de3f4 7%include /usr/lib/rpm/macros.perl
23f00189 8Summary: Apache::Scoreboard - Perl interface to the Apache scoreboard structure
0f43c47a 9Summary(pl.UTF-8): Apache::Scoreboard - perlowy interfejs do struktury scoreboard Apache'a
23f00189 10Name: perl-Apache-Scoreboard
ad27fb63 11Version: 2.09.2
8c3d1a18 12Release: 3
e9217214 13License: unknown
23f00189 14Group: Development/Languages/Perl
d6a91d5a 15Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
ad27fb63 16# Source0-md5: df133feb853c4ef743557e6621adcc3f
5d5de3f4 17URL: http://search.cpan.org/dist/Apache-Scoreboard/
477ff75c 18BuildRequires: apache-mod_perl-devel
2271fac7
JB
19BuildRequires: apr-devel >= 1:1.0
20BuildRequires: apr-util-devel >= 1:1.0
a13e2cc6 21BuildRequires: perl-Apache-Test
475a152b 22BuildRequires: perl-devel >= 1:5.8.0
a13e2cc6 23BuildRequires: perl-mod_perl
475a152b 24%if %{with tests}
d744aa23 25BuildRequires: perl-Chart-PNGgraph
475a152b 26%endif
27BuildRequires: rpm-perlprov >= 4.1-13
23f00189 28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
23f00189 30%description
31Apache keeps track of server activity in a structure known as the
2ecee0c2
JB
32scoreboard. There is a slot in the scoreboard for each child server,
33containing information such as status, access count, bytes served and
34cpu time. This same information is used by mod_status to provide
35current server statistics in a human readable form.
23f00189 36
fbb48871
JR
37%description -l pl.UTF-8
38Apache śledzi aktywność serwera w strukturze znanej jako scoreboard. W
39scoreboard znajduje się slot dla każdego serwera potomnego,
40zawierający informacje takie jak stan, liczba klientów, wysłanych
41bajtów i zajęty czas procesora. Te same informacje są używane przez
42mod_status do udostępniania aktualnych statystyk w postaci czytelnej
43dla człowieka.
23f00189 44
23f00189 45%prep
ad27fb63 46%setup -q -n %{pdir}-%{pnam}-2.09
23f00189 47
48%build
477ff75c
ER
49INC="-I/usr/include/apache $(apr-1-config --includes) $(apu-1-config --includes)"
50%{__perl} Makefile.PL \
51 INSTALLDIRS=vendor \
52 INC="$INC"
53cd Dummy
475a152b 54%{__perl} Makefile.PL \
55 INSTALLDIRS=vendor \
477ff75c
ER
56 INC="$INC"
57cd ..
475a152b 58%{__make} \
a15d70f8 59 CC="%{__cc}" \
475a152b 60 OPTIMIZE="%{rpmcflags}"
477ff75c 61%{?with_tests:%{__make} test}
23f00189 62
63%install
64rm -rf $RPM_BUILD_ROOT
65
475a152b 66%{__make} install \
67 DESTDIR=$RPM_BUILD_ROOT
23f00189 68
69install -d $RPM_BUILD_ROOT%{_examplesdir}
70cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
477ff75c
ER
71rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
72rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Apache/Scoreboard/.packlist
23f00189 73
74%clean
75rm -rf $RPM_BUILD_ROOT
76
77%files
23f00189 78%defattr(644,root,root,755)
634026df 79%doc Changes README
475a152b 80%{perl_vendorarch}/Apache/*.pm
26006b36 81%dir %{perl_vendorarch}/auto/Apache
475a152b 82%dir %{perl_vendorarch}/auto/Apache/Scoreboard
83%attr(755,root,root) %{perl_vendorarch}/auto/Apache/Scoreboard/*.so
23f00189 84%attr(755,root,root) %{_examplesdir}/%{name}-%{version}
85%{_mandir}/man3/*
This page took 0.096924 seconds and 4 git commands to generate.