Name: ipt-netflow Version: 2.2.1 Release: 1%{?dist} Summary: Netflow iptables modules License: GPLv3+ URL: https://github.com/aabc/ipt-netflow Source: %{name}-%{version}.tgz Patch0: ipt-netflow-2.1-nokernel.patch Patch1: ipt-netflow-2.1-noipt.patch BuildRequires: iptables-devel Requires: iptables Requires: dkms-%{name} = %{version}-%{release} %description ipt-netflow is very fast and effective Netflow exporting module for Linux kernel. This is netfilter/iptables module adding support for NETFLOW target. This package provides the NETFLOW library which will be loaded by iptables when NETFLOW rules are processed. %package -n dkms-%{name} Summary: DKMS ipt_NETFLOW kernel module Requires: dkms Requires: make BuildArch: noarch %description -n dkms-%{name} This package provides the ipt_NETFLOW kernel module. %prep %setup -q %patch0 -p1 -b .orig mv -v configure configure.nokernel mv -v configure.orig configure %patch1 -p1 %build ./configure.nokernel make libipt_NETFLOW.so libip6t_NETFLOW.so %install # Install the library make DESTDIR=%{buildroot} linstall # Install the sources of the module mkdir -p %{buildroot}%{_usrsrc}/%{name}-%{version}-%{release} cp -av Makefile.in configure version.sh compat.h murmur3.h ipt_NETFLOW*{c,h} %{buildroot}%{_usrsrc}/%{name}-%{version}-%{release} cat > %{buildroot}%{_usrsrc}/%{name}-%{version}-%{release}/dkms.conf <