!1 Package init
From: @zhengyaohui Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
1109c2f1bf
BIN
goaccess-1.4.6.tar.gz
Normal file
BIN
goaccess-1.4.6.tar.gz
Normal file
Binary file not shown.
51
goaccess.spec
Normal file
51
goaccess.spec
Normal file
@ -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 <zhengyaohui1@huawei.com> - 1.4.6-1
|
||||
- package init
|
||||
Loading…
x
Reference in New Issue
Block a user