File apachetop.spec of Package apachetop
#
# spec file for package apachetop
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2013 Pascal Bleser <pascal.bleser@opensuse.org>
#
# 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 http://bugs.opensuse.org/
#
Name: apachetop
Version: 0.23.2
Release: 0
Summary: Top-Like Display for Apache Information
License: BSD-3-Clause
Group: Productivity/Networking/Web/Servers
Url: https://github.com/tessus
Source: https://github.com/tessus/apachetop/releases/download/%{version}/apachetop-%{version}.tar.gz
Source1: https://github.com/tessus/apachetop/releases/download/%{version}/apachetop-%{version}.tar.gz.asc
BuildRequires: autoconf
BuildRequires: automake
%if 0%{?suse_version} > 1210
BuildRequires: gamin-devel
%else
BuildRequires: fam-devel
%endif
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
%description
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.
%prep
%setup -q
%build
CFLAGS="%{optflags} -fpermissive" \
CXXFLAGS="%{optflags} -fpermissive" \
%configure --with-logfile=%{_localstatedir}/log/apache2/access_log
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%files
%license LICENSE
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/apachetop
%{_mandir}/man1/apachetop.1*
%changelog