Summary: Filebeat License: Elastic license Name: filebeat Version: 7.17.28 Release: 0 URL: https://github.com/elastic/beats #Source0: https://github.com/elastic/beats/archive/refs/tags/v%{version}.tar.gz BuildRequires: make automake BuildRequires: dh-autoreconf curl-devel expat-devel gettext-devel openssl-devel perl-devel zlib-devel BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Filebeat agent %build # Install newer golang go_version=1.24.1 curl -LO https://go.dev/dl/go${go_version}.linux-ppc64le.tar.gz tar -C /tmp -xzf go${go_version}.linux-ppc64le.tar.gz export PATH=$PATH:/tmp/go/bin go version # Build git v2 for auditbeat build process GITVERSION="2.30.0" curl -LO https://mirrors.edge.kernel.org/pub/software/scm/git/git-${GITVERSION}.tar.gz tar -zxf git-${GITVERSION}.tar.gz cd git-${GITVERSION}/ make configure ./configure --prefix=/tmp make all make install export PATH="/tmp/bin:${PATH}" git --version export GOPATH=/tmp/go mkdir -p ${GOPATH}/src/github.com/elastic cd ${GOPATH}/src/github.com/elastic git clone https://github.com/elastic/beats.git cd beats/filebeat git checkout v%{version} make %install mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_datadir}/%{name}/bin/ mv /tmp/go/src/github.com/elastic/beats/%{name}/%{name} %{buildroot}%{_datadir}/%{name}/bin/%{name} %post %{__ln_s} -f %{_datadir}/%{name}/bin/%{name} %{_bindir}/%{name} %files %defattr(-,root,root) %{_datadir}/%{name}/bin/%{name} %changelog