]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # TODO: fam support is broken (it always needs running & working fam) | |
3 | # | |
4 | Summary: Apache top-like display | |
5 | Summary(pl.UTF-8): Podobny do topa program pokazujący pracę Apache'a | |
6 | Name: apachetop | |
7 | Version: 0.12.6 | |
8 | Release: 9 | |
9 | Epoch: 1 | |
10 | License: BSD | |
11 | Group: Networking/Utilities | |
12 | Source0: http://www.webta.org/apachetop/%{name}-%{version}.tar.gz | |
13 | # Source0-md5: 604283ac4bbbddd98fc9b1f11381657e | |
14 | Patch0: %{name}-debian.patch | |
15 | Patch1: %{name}-log_location.patch | |
16 | Patch2: %{name}-maxpath.patch | |
17 | URL: http://www.webta.org/projects/apachetop/ | |
18 | BuildRequires: ncurses-devel | |
19 | BuildRequires: pcre-devel | |
20 | BuildRequires: readline-devel | |
21 | BuildRequires: adns-devel | |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
25 | A curses-based top-like display for Apache information, including | |
26 | requests per second, bytes per second, most popular URLs, etc. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | Oparty na curses podobny do topa program pokazujący informacje o pracy | |
30 | Apache'a, włączając w to zapytania na sekundę, bajty na sekundę, | |
31 | najbardziej popularne URL-e, itp. | |
32 | ||
33 | %prep | |
34 | %setup -q | |
35 | %patch0 -p1 | |
36 | %patch1 -p1 | |
37 | %patch2 -p1 | |
38 | ||
39 | sed -i -e 's#fam#fambroken#g' configure* | |
40 | ||
41 | %build | |
42 | %{__aclocal} | |
43 | %{__autoconf} | |
44 | %{__automake} | |
45 | %configure \ | |
46 | --with-logfile=/var/log/httpd/access_log | |
47 | ||
48 | %{__make} \ | |
49 | CXX="%{__cxx}" \ | |
50 | CXXFLAGS="%{rpmcflags} %{rpmcppflags} -I/usr/include/ncurses -pthread" | |
51 | ||
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | %{__make} install \ | |
55 | DESTDIR=$RPM_BUILD_ROOT | |
56 | ||
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
62 | %doc AUTHORS ChangeLog INSTALL NEWS README TODO | |
63 | %attr(755,root,root) %{_bindir}/* | |
64 | %{_mandir}/man1/* |