LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File goaccess.spec of Package goaccess (Project home:aljex)

#
# 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 http://bugs.opensuse.org/
#


# See also http://en.opensuse.org/openSUSE:Specfile_guidelines

Name:           goaccess
Version:        1.2
Release:        0
Summary:        Open Source web analytics
License:        MIT
Group:          System/Monitoring
Url:            http://goaccess.io
Source0:        http://tar.goaccess.io/%{name}-%{version}.tar.gz
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

%description
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.

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

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

%install
make DESTDIR=%{buildroot} install

%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING README ChangeLog
%config %{_sysconfdir}/goaccess.conf
%{_bindir}/goaccess
%{_datadir}/goaccess
%doc %{_mandir}/man1/goaccess.1*

%changelog