diff --git a/goaccess-1.4.6.tar.gz b/goaccess-1.4.6.tar.gz new file mode 100644 index 0000000..8aaae12 Binary files /dev/null and b/goaccess-1.4.6.tar.gz differ diff --git a/goaccess.spec b/goaccess.spec new file mode 100644 index 0000000..ba467bd --- /dev/null +++ b/goaccess.spec @@ -0,0 +1,51 @@ +%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: 1 +Summary: Real-time web log analyzer and interactive viewer +License: GPLv2+ +URL: https://goaccess.io/ +Source0: https://tar.goaccess.io/%{name}-%{version}.tar.gz +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 +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 +* Tue Sep 7 2021 zhengyaohui - 1.4.6-1 +- package init