diff -r 0bcf858a6152 -r 0348d09236d3 libpcap/libpcap.spec --- a/libpcap/libpcap.spec Wed Aug 08 20:24:57 2012 +0200 +++ b/libpcap/libpcap.spec Wed Aug 08 20:27:30 2012 +0200 @@ -36,14 +36,14 @@ Group: Capturing License: GPL Version: %{V_tarball} -Release: 20120613 +Release: 20120800 # list of sources Source0: http://www.tcpdump.org/release/libpcap-%{V_tarball}.tar.gz Patch0: libpcap.patch # build information -BuildPreReq: OpenPKG, openpkg >= 20100101, bison, flex +BuildPreReq: OpenPKG, openpkg >= 20100101, make, bison, flex PreReq: OpenPKG, openpkg >= 20100101 %description @@ -63,6 +63,9 @@ %prep %setup -q -n libpcap-%{V_subdir} %patch -p0 + %{l_shtool} subst \ + -e 's;\(#if defined(PF_PACKET) && defined(SO_ATTACH_FILTER)\)$;\1 \&\& defined(__linux__);g' \ + gencode.c %build CC="%{l_cc}" \