Files
apachetop/apachetop.spec
Eric Schirra f65ccabf0c Accepting request 1074023 from home:ecsos:monitoring
- Update to 0.23.2
  - Fix C++17 compatibility (drop register keyword) by @thesamesam in #13
  - use pcre2 (instead of pcre), --with-pcre2=<path>
  - fix a potential segfault, if regex is not valid
  - if regex is not valid, treat the input as literal string
  - Full Changelog: https://github.com/tessus/apachetop/compare/0.19.7...0.23.2
- Update to 0.19.7
  - attempt to find ncurses via pkg-config first
  - add .editorconfig
- Update to 0.18.4
  - fix for clang6
  - add better build instructions to INSTALL
  - add option (-v) to show version
  - fix minor mem leak (8 bytes per apachetop invocation)
- Update to 0.17.4
  - create config.nice when running ./configure
  - fix error: extra qualification on member (when using adns)
  - fix compiler warnings
  - fix a potential buffer overflow
  - cleanup repository (remove files generated by autotools)
- Update to 0.15.6
  - allow other time/date formats in Apache log
  - use sys/param.h for MAXPATHLEN
  - fix deprecated auto tools macros
  - fix compiler warnings
  - use silent compile rules
  - updated man page
  - updated autotools files
  - change version to 0.YY.M of new release
- Change to new URL.
- Drop apachetop-0.12.6-maxpathlen.patch, because now in upstream.

OBS-URL: https://build.opensuse.org/request/show/1074023
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/apachetop?expand=0&rev=4
2023-03-23 17:44:08 +00:00

73 lines
2.3 KiB
RPMSpec

#
# 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