File fluent-bit.spec of Package fluent-bit
# Turn off the brp-python-bytecompile script
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
%define compound_version 1.9.8.1
%define unzipped_tarball fluent-bit_1.9.8-1
Summary:Package for fluent-bit.
Name: fluent-bit
Version:%{compound_version}
Release:%{compound_version}
Source0: %{unzipped_tarball}.tar.gz
Packager: Ophélie Gagnard ophelie.gagnard@nexedi.com
BuildRequires: gcc-c++
BuildRequires: make
BuildRequires: patch
BuildRequires: wget
BuildRequires: chrpath
BuildRequires: openssl-devel
%if 0%{?centos_version} <= 700 || 0%{?rhel_version} <= 700 || 0%{?suse_version} < 1300 || 0%{?sle_version} < 130000
BuildRequires: python
BuildRequires: python-devel
%else
BuildRequires: python3
BuildRequires: python3-devel
%endif
AutoReqProv: no
%prep
rm -rf $RPM_BUILD_DIR/%{unzipped_tarball}
zcat $RPM_SOURCE_DIR/%{unzipped_tarball}.tar.gz | tar -xvf -
%build
cd $RPM_BUILD_DIR/%{unzipped_tarball}
make
%install
cd $RPM_BUILD_DIR/%{unzipped_tarball}
%files
%defattr(-,root,root)
%pre
%post
%preun
%postun