File goaccess.spec of Package goaccess

# spec file for package goaccess
# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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

# See also

Name:           goaccess
Version:        1.2
Release:        0
Summary:        Open Source web analytics
License:        MIT
Group:          System/Monitoring
Patch0:         debug.diff
Patch1:         conf.diff
BuildRequires:  ncurses-devel
BuildRequires:  openssl-devel
BuildRequires:  libGeoIP-devel
BuildRequires:  glib2-devel
BuildRequires:  gcc make glibc-devel pkgconfig
BuildRequires:  autoconf automake libtool
BuildRequires:  apache2-devel
BuildRequires:  gettext-tools

GoAccess is a fast, terminal-based log analyzer. Its core idea is
to quickly analyze and view web server statistics in real time
without needing to use your browser.

%setup -q -n %{name}-%{version}
%patch0 -p1
%patch1 -p1
sed -i -e "s/__DATE__/\"openSUSE\"/" -e "s/__TIME__/\"BuildService\"/" src/error.h

%configure \
	--htmldir=%{_datadir}/%{name} \
	--enable-utf8 \
	--enable-geoip \
	--with-openssl \
	--with-getline \
make %{?_smp_mflags}

make DESTDIR=%{buildroot} install

%config %{_sysconfdir}/goaccess.conf
%doc %{_mandir}/man1/goaccess.1*

openSUSE Build Service is sponsored by