libpcap/libpcap.spec

changeset 488
0bcf858a6152
parent 85
e6a1cd7ed6ba
child 489
0348d09236d3
     1.1 --- a/libpcap/libpcap.spec	Wed Aug 08 20:15:17 2012 +0200
     1.2 +++ b/libpcap/libpcap.spec	Wed Aug 08 20:24:57 2012 +0200
     1.3 @@ -1,6 +1,6 @@
     1.4  ##
     1.5  ##  libpcap.spec -- OpenPKG RPM Package Specification
     1.6 -##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
     1.7 +##  Copyright (c) 2000-2012 OpenPKG Foundation e.V. <http://openpkg.net/>
     1.8  ##
     1.9  ##  Permission to use, copy, modify, and distribute this software for
    1.10  ##  any purpose with or without fee is hereby granted, provided that
    1.11 @@ -21,6 +21,10 @@
    1.12  ##  SUCH DAMAGE.
    1.13  ##
    1.14  
    1.15 +#   package version
    1.16 +%define       V_tarball 1.3.0
    1.17 +%define       V_subdir  1.3.0
    1.18 +
    1.19  #   package information
    1.20  Name:         libpcap
    1.21  Summary:      Network Packet Capture Library
    1.22 @@ -31,20 +35,16 @@
    1.23  Class:        BASE
    1.24  Group:        Capturing
    1.25  License:      GPL
    1.26 -Version:      1.0.0
    1.27 -Release:      20090106
    1.28 +Version:      %{V_tarball}
    1.29 +Release:      20120613
    1.30  
    1.31  #   list of sources
    1.32 -Source0:      http://www.tcpdump.org/release/libpcap-%{version}.tar.gz
    1.33 +Source0:      http://www.tcpdump.org/release/libpcap-%{V_tarball}.tar.gz
    1.34  Patch0:       libpcap.patch
    1.35  
    1.36  #   build information
    1.37 -Prefix:       %{l_prefix}
    1.38 -BuildRoot:    %{l_buildroot}
    1.39 -BuildPreReq:  OpenPKG, openpkg >= 20040130, make, bison, flex
    1.40 -PreReq:       OpenPKG, openpkg >= 20040130
    1.41 -AutoReq:      no
    1.42 -AutoReqProv:  no
    1.43 +BuildPreReq:  OpenPKG, openpkg >= 20100101, bison, flex
    1.44 +PreReq:       OpenPKG, openpkg >= 20100101
    1.45  
    1.46  %description
    1.47      libpcap provides a portable framework for low-level network monitoring and
    1.48 @@ -55,35 +55,26 @@
    1.49  
    1.50  %track
    1.51      prog libpcap = {
    1.52 -        version   = %{version}
    1.53 -        url       = http://www.tcpdump.org/release/
    1.54 +        version   = %{V_tarball}
    1.55 +        url       = http://www.tcpdump.org/
    1.56          regex     = libpcap-(__VER__)\.tar\.gz
    1.57      }
    1.58  
    1.59  %prep
    1.60 -    %setup -q
    1.61 +    %setup -q -n libpcap-%{V_subdir}
    1.62      %patch -p0
    1.63 -    %{l_shtool} subst \
    1.64 -        -e 's;for ac_header in$;for ac_header in broken;' \
    1.65 -        configure
    1.66  
    1.67  %build
    1.68 -    case "%{l_platform -t}" in
    1.69 -        *-sunos* )
    1.70 -            ( echo "ac_cv_lib_dlpi_dlpi_walk=no"
    1.71 -            ) >config.cache
    1.72 -            ;;
    1.73 -    esac
    1.74      CC="%{l_cc}" \
    1.75      CFLAGS="%{l_cflags -O}" \
    1.76 +    GREP="grep" \
    1.77      ./configure \
    1.78 -        --cache-file=./config.cache \
    1.79          --prefix=%{l_prefix} \
    1.80 -        --mandir=%{l_prefix}/man
    1.81 +        --mandir=%{l_prefix}/man \
    1.82 +        --disable-shared
    1.83      %{l_make} %{l_mflags -O}
    1.84  
    1.85  %install
    1.86 -    rm -rf $RPM_BUILD_ROOT
    1.87      %{l_shtool} mkdir -f -p -m 755 \
    1.88          $RPM_BUILD_ROOT%{l_prefix}/bin \
    1.89          $RPM_BUILD_ROOT%{l_prefix}/man/man3
    1.90 @@ -96,5 +87,4 @@
    1.91  %files -f files
    1.92  
    1.93  %clean
    1.94 -    rm -rf $RPM_BUILD_ROOT
    1.95  

mercurial