goaccess/goaccess.spec
baizg1107 dc67c33cb1 Fix goaccess -h/--help exit-code
(cherry picked from commit 867e181b83db2309180078bb889d1db86bf97972)
2021-10-09 15:28:57 +08:00

56 lines
1.6 KiB
RPMSpec

%bcond_without lto
%bcond_without openssl
%if %{with lto}
%global optflags %{optflags} -flto
%global build_ldflags %{build_ldflags} -flto
%endif
Name: goaccess
Version: 1.4.6
Release: 2
Summary: Real-time web log analyzer and interactive viewer
License: GPLv2+
URL: https://goaccess.io/
Source0: https://tar.goaccess.io/%{name}-%{version}.tar.gz
Patch0: 0001-Fix-usage-exit-code.patch
BuildRequires: autoconf automake gcc GeoIP-devel ncurses-devel gettext-devel
%if %{with openssl}
BuildRequires: openssl-devel
%endif
BuildRequires: make
%description
GoAccess is a real-time web log analyzer and interactive viewer that runs in a
terminal in *nix systems. It provides fast and valuable HTTP statistics for
system administrators that require a visual server report on the fly.
%prep
%autosetup -p1
sed -i '/-pthread/d' configure.ac
%build
%configure \
--enable-debug \
--enable-geoip=legacy \
--enable-utf8 \
--with-getline \
%{?with_openssl: --with-openssl}
%make_build
%install
%make_install
%find_lang %{name}
%files -f %{name}.lang
%license COPYING
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%config(noreplace) %{_sysconfdir}/%{name}/browsers.list
%config(noreplace) %{_sysconfdir}/%{name}/podcast.list
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%changelog
* Fri Oct 8 2021 baizhonggui <baizhonggui@huawei.com> - 1.4.6-2
- Fix goaccess -h/--help exit-code: 1 to 0
* Tue Sep 7 2021 zhengyaohui <zhengyaohui1@huawei.com> - 1.4.6-1
- package init