goaccess/goaccess.spec

59 lines
1.7 KiB
RPMSpec
Raw Permalink Normal View History

2021-09-12 17:16:27 +08:00
%bcond_without lto
%bcond_without openssl
%if %{with lto}
%global optflags %{optflags} -flto
%global build_ldflags %{build_ldflags} -flto
%endif
Name: goaccess
2023-04-17 14:00:39 +08:00
Version: 1.7.2
Release: 1
2021-09-12 17:16:27 +08:00
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
2021-09-12 17:16:27 +08:00
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
2021-09-12 17:16:27 +08:00
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
2023-04-17 14:00:39 +08:00
* Mon Apr 17 2023 liyanan <thistleslyn@163.com> - 1.7.2-1
- Update to 1.7.2
* Fri Oct 8 2021 baizhonggui <baizhonggui@huawei.com> - 1.4.6-2
- Fix goaccess -h/--help exit-code: 1 to 0
2021-09-12 17:16:27 +08:00
* Tue Sep 7 2021 zhengyaohui <zhengyaohui1@huawei.com> - 1.4.6-1
- package init