diff --git a/.gitignore b/.gitignore index e69de29..c138c11 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/libnetfilter_cttimeout-1.0.0.tar.bz2 diff --git a/libnetfilter_cttimeout.spec b/libnetfilter_cttimeout.spec new file mode 100644 index 0000000..7a2117b --- /dev/null +++ b/libnetfilter_cttimeout.spec @@ -0,0 +1,67 @@ +Name: libnetfilter_cttimeout +Version: 1.0.0 +Release: 1%{?dist} +Summary: Timeout policy tuning for Netfilter/conntrack +Group: System Environment/Libraries +License: GPLv2+ +URL: http://netfilter.org +Source0: http://netfilter.org/projects/%{name}/files/%{name}-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: libmnl-devel >= 1.0.0, pkgconfig, kernel-headers + +%description +This infrastructure allows you to define fine-grain timeout +policies per flow. Basically, from user-space, you can create +timeout policy objects via nfct_timeout_alloc(), set the +policy attributes, via nfct_timeout_*_attr_set(), and then +build the ctnetlink message to communicate this new timeout +policy to the kernel. + +%package devel +Summary: Timeout policy tuning for Netfilter/conntrack +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: libmnl-devel >= 1.0.0 +Requires: kernel-headers + +%description devel +This infrastructure allows you to define fine-grain timeout +policies per flow. Basically, from user-space, you can create +timeout policy objects via nfct_timeout_alloc(), set the +policy attributes, via nfct_timeout_*_attr_set(), and then +build the ctnetlink message to communicate this new timeout +policy to the kernel. + +%prep +%setup -q + +%build +%configure --disable-static + +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';' + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%doc COPYING README +%{_libdir}/*.so.* + +%files devel +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc +%dir %{_includedir}/libnetfilter_cttimeout +%{_includedir}/libnetfilter_cttimeout/*.h + +%changelog +* Fri Aug 10 2012 Paul P. Komkoff Jr - 1.0.0-1 +- initial commit diff --git a/sources b/sources index e69de29..0383a62 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +7697437fc9ebb6f6b83df56a633db7f9 libnetfilter_cttimeout-1.0.0.tar.bz2