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