Name: libnf Version: 1.26 #Release: 1%{?dist} Release: 2 Summary: Library providing C API for processing nfdump files Group: Networking/Tools License: GPL URL: http://libnf.net Source0: http://libnf.net/packages/%{name}-%{version}.tar.gz BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: bzip2-devel Requires: bzip2-libs %description API for manipulating with nfdump files. See http://libnf.net for more information. %package devel Summary: Libraries and header files for the libnf.net library Group: Development/Libraries Requires: %{name} %description devel This package provides the libraries, include files, and other resources needed for developing libnf applications. %package -n nfdumpp Summary: Parallel nfdump Group: Networking/Tools Requires: %{name} %description -n nfdumpp Nfdumpp is implementation of parallel nfdump based on libnf.net library. %prep %setup -q %build %configure --enable-bz2static=no CFLAGS=-fPIC make %{?_smp_mflags} %install rm -rf %{buildroot} # redundant except for RHEL 5 %make_install %clean rm -rf %{buildroot} %post /sbin/ldconfig %postun /sbin/ldconfig %files %{_bindir}/libnf-info %{_bindir}/lnf_ex* %{_includedir}/libnf.h %{_includedir}/ffilter.h %{_libdir}/libnf.so.* %files devel %{_includedir}/libnf.h %{_includedir}/ffilter.h %{_libdir}/libnf.so* %{_libdir}/libnf.a %{_libdir}/libnf.la %files -n nfdumpp %{_bindir}/nfdumpp %changelog * Tue Aug 11 2015 Tomas Podermanski - Initial version of specfile