libdnet/libdnet.spec

changeset 569
0bfe61798a56
parent 568
f43677a707f3
     1.1 --- a/libdnet/libdnet.spec	Tue Aug 28 18:34:30 2012 +0200
     1.2 +++ b/libdnet/libdnet.spec	Tue Aug 28 18:34:35 2012 +0200
     1.3 @@ -31,19 +31,15 @@
     1.4  Class:        PLUS
     1.5  Group:        Network
     1.6  License:      MIT-style
     1.7 -Version:      1.11
     1.8 -Release:      20080101
     1.9 +Version:      1.12
    1.10 +Release:      20120800
    1.11  
    1.12  #   list of sources
    1.13 -Source0:      http://switch.dl.sourceforge.net/sourceforge/libdnet/libdnet-%{version}.tar.gz
    1.14 +Source0:      http://libdnet.googlecode.com/files/libdnet-%{version}.tgz
    1.15  
    1.16  #   build information
    1.17 -Prefix:       %{l_prefix}
    1.18 -BuildRoot:    %{l_buildroot}
    1.19 -BuildPreReq:  OpenPKG, openpkg >= 20040130, bison, flex, make, perl, perl-sys
    1.20 -PreReq:       OpenPKG, openpkg >= 20040130
    1.21 -AutoReq:      no
    1.22 -AutoReqProv:  no
    1.23 +BuildPreReq:  OpenPKG, openpkg >= 20100101, bison, flex, make, perl, perl-sys
    1.24 +PreReq:       OpenPKG, openpkg >= 20100101
    1.25  
    1.26  %description
    1.27      libdnet provides a simplified, portable interface to several
    1.28 @@ -56,8 +52,8 @@
    1.29  %track
    1.30      prog libdnet = {
    1.31          version   = %{version}
    1.32 -        url       = http://libdnet.sourceforge.net/
    1.33 -        regex     = libdnet-(__VER__)\.tar\.gz
    1.34 +        url       = http://libdnet.googlecode.com/files/
    1.35 +        regex     = libdnet-(__VER__)\.tgz
    1.36      }
    1.37  
    1.38  %prep
    1.39 @@ -71,17 +67,17 @@
    1.40  %build
    1.41      case "%{l_platform -t}" in
    1.42          *-freebsd5* ) echo "ac_cv_header_netinet_ip_fw_h=no" >config.cache ;;
    1.43 +        *-sunos*    ) echo "ac_cv_dnet_linux_pf_packet=no" >config.cache ;;
    1.44      esac
    1.45      CC="%{l_cc}" \
    1.46      CFLAGS="%{l_cflags -O}" \
    1.47      ./configure \
    1.48 -        --disable-shared \
    1.49          --cache-file=./config.cache \
    1.50 -        --prefix=%{l_prefix}
    1.51 +        --prefix=%{l_prefix} \
    1.52 +        --disable-shared
    1.53      %{l_make} %{l_mflags -O}
    1.54  
    1.55  %install
    1.56 -    rm -rf $RPM_BUILD_ROOT
    1.57      %{l_shtool} mkdir -p $RPM_BUILD_ROOT%{l_prefix}/man/man3
    1.58      %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
    1.59      %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
    1.60 @@ -89,5 +85,4 @@
    1.61  %files -f files
    1.62  
    1.63  %clean
    1.64 -    rm -rf $RPM_BUILD_ROOT
    1.65  

mercurial