# HG changeset patch # User Michael Schloh von Bennewitz # Date 1231345316 -3600 # Node ID beaae89a4a45157c2b1d972575eb6171fab888aa # Parent 3021904599776c1aeef3bfa9e035c1ba92457b6f Correct missing shell do command argument and port to Solaris 11. diff -r 302190459977 -r beaae89a4a45 libpcap/libpcap.spec --- a/libpcap/libpcap.spec Wed Jan 07 17:20:34 2009 +0100 +++ b/libpcap/libpcap.spec Wed Jan 07 17:21:56 2009 +0100 @@ -32,7 +32,7 @@ Group: Capturing License: GPL Version: 1.0.0 -Release: 20081028 +Release: 20090106 # list of sources Source0: http://www.tcpdump.org/release/libpcap-%{version}.tar.gz @@ -63,11 +63,21 @@ %prep %setup -q %patch -p0 + %{l_shtool} subst \ + -e 's;for ac_header in$;for ac_header in broken;' \ + configure %build + case "%{l_platform -t}" in + *-sunos* ) + ( echo "ac_cv_lib_dlpi_dlpi_walk=no" + ) >config.cache + ;; + esac CC="%{l_cc}" \ CFLAGS="%{l_cflags -O}" \ ./configure \ + --cache-file=./config.cache \ --prefix=%{l_prefix} \ --mandir=%{l_prefix}/man %{l_make} %{l_mflags -O}