diff -r 76a25ceeb6bf -r 0bcf858a6152 libpcap/libpcap.spec --- a/libpcap/libpcap.spec Wed Aug 08 20:15:17 2012 +0200 +++ b/libpcap/libpcap.spec Wed Aug 08 20:24:57 2012 +0200 @@ -1,6 +1,6 @@ ## ## libpcap.spec -- OpenPKG RPM Package Specification -## Copyright (c) 2000-2008 OpenPKG Foundation e.V. +## Copyright (c) 2000-2012 OpenPKG Foundation e.V. ## ## Permission to use, copy, modify, and distribute this software for ## any purpose with or without fee is hereby granted, provided that @@ -21,6 +21,10 @@ ## SUCH DAMAGE. ## +# package version +%define V_tarball 1.3.0 +%define V_subdir 1.3.0 + # package information Name: libpcap Summary: Network Packet Capture Library @@ -31,20 +35,16 @@ Class: BASE Group: Capturing License: GPL -Version: 1.0.0 -Release: 20090106 +Version: %{V_tarball} +Release: 20120613 # list of sources -Source0: http://www.tcpdump.org/release/libpcap-%{version}.tar.gz +Source0: http://www.tcpdump.org/release/libpcap-%{V_tarball}.tar.gz Patch0: libpcap.patch # build information -Prefix: %{l_prefix} -BuildRoot: %{l_buildroot} -BuildPreReq: OpenPKG, openpkg >= 20040130, make, bison, flex -PreReq: OpenPKG, openpkg >= 20040130 -AutoReq: no -AutoReqProv: no +BuildPreReq: OpenPKG, openpkg >= 20100101, bison, flex +PreReq: OpenPKG, openpkg >= 20100101 %description libpcap provides a portable framework for low-level network monitoring and @@ -55,35 +55,26 @@ %track prog libpcap = { - version = %{version} - url = http://www.tcpdump.org/release/ + version = %{V_tarball} + url = http://www.tcpdump.org/ regex = libpcap-(__VER__)\.tar\.gz } %prep - %setup -q + %setup -q -n libpcap-%{V_subdir} %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}" \ + GREP="grep" \ ./configure \ - --cache-file=./config.cache \ --prefix=%{l_prefix} \ - --mandir=%{l_prefix}/man + --mandir=%{l_prefix}/man \ + --disable-shared %{l_make} %{l_mflags -O} %install - rm -rf $RPM_BUILD_ROOT %{l_shtool} mkdir -f -p -m 755 \ $RPM_BUILD_ROOT%{l_prefix}/bin \ $RPM_BUILD_ROOT%{l_prefix}/man/man3 @@ -96,5 +87,4 @@ %files -f files %clean - rm -rf $RPM_BUILD_ROOT