srtp/srtp.spec

changeset 542
a9edd9452022
parent 366
a8a705664ef9
     1.1 --- a/srtp/srtp.spec	Tue Aug 28 18:30:40 2012 +0200
     1.2 +++ b/srtp/srtp.spec	Tue Aug 28 18:30:45 2012 +0200
     1.3 @@ -1,6 +1,6 @@
     1.4  ##
     1.5  ##  srtp.spec -- OpenPKG RPM Package Specification
     1.6 -##  Copyright (c) 2011 Michael Schloh von Bennewitz <michael@schloh.com>
     1.7 +##  Copyright (c) 2012 Michael Schloh von Bennewitz <michael@schloh.com>
     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 @@ -27,12 +27,12 @@
    1.12  URL:          http://srtp.sourceforge.net/srtp.html
    1.13  Vendor:       David McGrew
    1.14  Packager:     Michael Schloh von Bennewitz
    1.15 -Distribution: Europalab Production
    1.16 +Distribution: Europalab Networks Production
    1.17  Class:        EVAL
    1.18  Group:        Cryptography
    1.19  License:      BSD
    1.20  Version:      1.4.4.2
    1.21 -Release:      20110424
    1.22 +Release:      20120800
    1.23  
    1.24  #   list of sources
    1.25  Source0:      http://switch.dl.sourceforge.net/project/srtp/srtp/%{version}/srtp-%{version}.tar.bz2
    1.26 @@ -40,12 +40,8 @@
    1.27  #Source0:      http://srtp.sourceforge.net/srtp-%{version}.tar.gz
    1.28  
    1.29  #   build information
    1.30 -Prefix:       %{l_prefix}
    1.31 -BuildRoot:    %{l_buildroot}
    1.32 -BuildPreReq:  OpenPKG, openpkg >= 20040130
    1.33 -PreReq:       OpenPKG, openpkg >= 20040130
    1.34 -AutoReq:      no
    1.35 -AutoReqProv:  no
    1.36 +BuildPreReq:  OpenPKG, openpkg >= 20100101, make
    1.37 +PreReq:       OpenPKG, openpkg >= 20100101
    1.38  
    1.39  %description
    1.40  The libSRTP library is an open source implementation of the Secure Realtime
    1.41 @@ -66,10 +62,15 @@
    1.42  
    1.43  %build
    1.44      #   prepare build configuration
    1.45 +    loclibs=
    1.46 +    case "%{l_platform -t}" in
    1.47 +        *-sunos* ) loclibs="$loclibs -lsocket -lnsl" ;;
    1.48 +    esac
    1.49      CC="%{l_cc}" \
    1.50      CFLAGS="%{l_cflags -O}" \
    1.51      CPPFLAGS="%{l_cppflags}" \
    1.52      LDFLAGS="%{l_ldflags}" \
    1.53 +    LIBS="$loclibs" \
    1.54      ./configure \
    1.55          --prefix=%{l_prefix}
    1.56  
    1.57 @@ -77,9 +78,6 @@
    1.58      %{l_make} %{l_mflags -O}
    1.59  
    1.60  %install
    1.61 -    #   remove previously existing installations
    1.62 -    rm -rf $RPM_BUILD_ROOT
    1.63 -
    1.64      #   run the native installation logic
    1.65      %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT
    1.66  
    1.67 @@ -89,5 +87,4 @@
    1.68  %files -f files
    1.69  
    1.70  %clean
    1.71 -    rm -rf $RPM_BUILD_ROOT
    1.72  

mercurial