]>
Commit | Line | Data |
---|---|---|
3ff37522 AM |
1 | # |
2 | # TODO: fam support is broken (it always needs running & working fam) | |
3 | # | |
ec3c6f89 | 4 | Summary: Apache top-like display |
bd587b6e | 5 | Summary(pl.UTF-8): Podobny do topa program pokazujący pracę Apache'a |
ec3c6f89 | 6 | Name: apachetop |
a5b1d4ad | 7 | Version: 0.12.6 |
0aaba68b | 8 | Release: 10 |
e8851b20 | 9 | Epoch: 1 |
ec3c6f89 | 10 | License: BSD |
296d17b9 | 11 | Group: Networking/Utilities |
a5b1d4ad AM |
12 | Source0: http://www.webta.org/apachetop/%{name}-%{version}.tar.gz |
13 | # Source0-md5: 604283ac4bbbddd98fc9b1f11381657e | |
c93ab0c4 AM |
14 | Patch0: %{name}-debian.patch |
15 | Patch1: %{name}-log_location.patch | |
3ba9a345 | 16 | Patch2: %{name}-maxpath.patch |
a5b1d4ad | 17 | URL: http://www.webta.org/projects/apachetop/ |
ec3c6f89 | 18 | BuildRequires: ncurses-devel |
26644195 AG |
19 | BuildRequires: pcre-devel |
20 | BuildRequires: readline-devel | |
fa633c8b | 21 | BuildRequires: adns-devel |
ec3c6f89 | 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 | ||
df9696d7 JR |
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ę, | |
4cc82156 | 31 | najbardziej popularne URL-e, itp. |
ec3c6f89 | 32 | |
33 | %prep | |
1790daf0 | 34 | %setup -q |
92568ef0 | 35 | %patch0 -p1 |
81ee36fe | 36 | %patch1 -p1 |
3ba9a345 | 37 | %patch2 -p1 |
ec3c6f89 | 38 | |
fa633c8b AM |
39 | sed -i -e 's#fam#fambroken#g' configure* |
40 | ||
ec3c6f89 | 41 | %build |
c93ab0c4 AM |
42 | %{__aclocal} |
43 | %{__autoconf} | |
44 | %{__automake} | |
e0e166a8 AM |
45 | %configure \ |
46 | --with-logfile=/var/log/httpd/access_log | |
3ff37522 | 47 | |
90ee50d5 | 48 | %{__make} \ |
d68e8728 | 49 | CXX="%{__cxx}" \ |
c93ab0c4 | 50 | CXXFLAGS="%{rpmcflags} %{rpmcppflags} -I/usr/include/ncurses -pthread" |
ec3c6f89 | 51 | |
52 | %install | |
53 | rm -rf $RPM_BUILD_ROOT | |
90ee50d5 AG |
54 | %{__make} install \ |
55 | DESTDIR=$RPM_BUILD_ROOT | |
ec3c6f89 | 56 | |
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %files | |
61 | %defattr(644,root,root,755) | |
90ee50d5 | 62 | %doc AUTHORS ChangeLog INSTALL NEWS README TODO |
fd912474 | 63 | %attr(755,root,root) %{_bindir}/* |
90ee50d5 | 64 | %{_mandir}/man1/* |