%global _hardened_build 1 Name: nfdump Version: 1.6.22 Release: 1 Summary: NetFlow collecting and processing tools License: BSD and GPLv2+ URL: https://github.com/phaag/nfdump Source0: https://github.com/phaag/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: autoconf automake byacc bzip2-devel flex gcc libpcap-devel libtool make BuildRequires: rrdtool-devel sed Requires: nfdump-libs = %{version}-%{release} %description Nfdump is a set of tools to collect and process NetFlow data. It's fast and has a powerful filter pcap like syntax. It supports NetFlow versions v1, v5, v7, v9 and IPFIX as well as a limited set of sflow. It includes support for CISCO ASA (NSEL) and CISCO NAT (NEL) devices which export event logging records as v9 flows. Nfdump is fully IPv6 compatible. %package libs Summary: Libraries used by NFDUMP packages %description libs Contains libraries used by NFDUMP utilities %prep %setup -q %build ./bootstrap export LDFLAGS="${LDFLAGS} -fPIC" %configure \ --enable-nsel \ --enable-nfprofile \ --enable-nftrack \ --enable-sflow \ --enable-readpcap \ --enable-nfpcapd \ --enable-shared \ --disable-static sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool make %install make install DESTDIR=%{buildroot} chmod 0644 AUTHORS ChangeLog README.md rm -f %{buildroot}%{_libdir}/*.la %ldconfig_scriptlets libs %files %license LICENSE %doc AUTHORS ChangeLog README.md %{_bindir}/* %{_mandir}/man1/*.1* %files libs %{_libdir}/libnfdump-%{version}.so %{_libdir}/libnfdump.so %changelog * Mon Sep 6 2021 wulei - 1.6.22-1 - package init