File apachetop.spec of Package apachetop

# spec file for package apachetop
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2013 Pascal Bleser <>
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           apachetop
Version:        0.12.6
Release:        0
Summary:        Top-Like Display for Apache Information
License:        BSD-3-Clause
Group:          Productivity/Networking/Web/Servers
Patch0:         apachetop-0.12.6-maxpathlen.patch
BuildRequires:  autoconf
BuildRequires:  automake
%if 0%{?suse_version} > 1210
BuildRequires:  gamin-devel
BuildRequires:  fam-devel
BuildRequires:  gcc-c++
BuildRequires:  glibc-devel
BuildRequires:  libadns-devel
BuildRequires:  libtool
BuildRequires:  make
BuildRequires:  ncurses-devel
BuildRequires:  pcre-devel
BuildRequires:  pkgconfig
BuildRequires:  readline-devel
Requires:       fam-server
Recommends:     rpcbind
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

ApacheTop is a curses-based top-like display for Apache information, including
requests per second, bytes per second, most popular URLs, etc.
Requires fam-server and a portmapper (like rpcbind) running.

%setup -q
%patch0 -p1

CFLAGS="%{optflags} -fpermissive" \
CXXFLAGS="%{optflags} -fpermissive" \
%configure --with-logfile=%{_localstatedir}/log/apache2/access_log
make %{?_smp_mflags}

make DESTDIR=%{buildroot} install %{?_smp_mflags}


openSUSE Build Service is sponsored by