1.1 --- a/libpcap/libpcap.spec Wed Aug 08 20:24:57 2012 +0200 1.2 +++ b/libpcap/libpcap.spec Wed Aug 08 20:27:30 2012 +0200 1.3 @@ -36,14 +36,14 @@ 1.4 Group: Capturing 1.5 License: GPL 1.6 Version: %{V_tarball} 1.7 -Release: 20120613 1.8 +Release: 20120800 1.9 1.10 # list of sources 1.11 Source0: http://www.tcpdump.org/release/libpcap-%{V_tarball}.tar.gz 1.12 Patch0: libpcap.patch 1.13 1.14 # build information 1.15 -BuildPreReq: OpenPKG, openpkg >= 20100101, bison, flex 1.16 +BuildPreReq: OpenPKG, openpkg >= 20100101, make, bison, flex 1.17 PreReq: OpenPKG, openpkg >= 20100101 1.18 1.19 %description 1.20 @@ -63,6 +63,9 @@ 1.21 %prep 1.22 %setup -q -n libpcap-%{V_subdir} 1.23 %patch -p0 1.24 + %{l_shtool} subst \ 1.25 + -e 's;\(#if defined(PF_PACKET) && defined(SO_ATTACH_FILTER)\)$;\1 \&\& defined(__linux__);g' \ 1.26 + gencode.c 1.27 1.28 %build 1.29 CC="%{l_cc}" \