# HG changeset patch # User Michael Schloh von Bennewitz # Date 1346171445 -7200 # Node ID a9edd9452022bf1973e8e59d61a2397cbb8a8899 # Parent 869d6847b13e7d7a9186f8fad8b669d1f072b0c0 Port build configuration to SVR4, correct distro name, and modernize packaging. diff -r 869d6847b13e -r a9edd9452022 srtp/srtp.spec --- a/srtp/srtp.spec Tue Aug 28 18:30:40 2012 +0200 +++ b/srtp/srtp.spec Tue Aug 28 18:30:45 2012 +0200 @@ -1,6 +1,6 @@ ## ## srtp.spec -- OpenPKG RPM Package Specification -## Copyright (c) 2011 Michael Schloh von Bennewitz +## Copyright (c) 2012 Michael Schloh von Bennewitz ## ## Permission to use, copy, modify, and distribute this software for ## any purpose with or without fee is hereby granted, provided that @@ -27,12 +27,12 @@ URL: http://srtp.sourceforge.net/srtp.html Vendor: David McGrew Packager: Michael Schloh von Bennewitz -Distribution: Europalab Production +Distribution: Europalab Networks Production Class: EVAL Group: Cryptography License: BSD Version: 1.4.4.2 -Release: 20110424 +Release: 20120800 # list of sources Source0: http://switch.dl.sourceforge.net/project/srtp/srtp/%{version}/srtp-%{version}.tar.bz2 @@ -40,12 +40,8 @@ #Source0: http://srtp.sourceforge.net/srtp-%{version}.tar.gz # build information -Prefix: %{l_prefix} -BuildRoot: %{l_buildroot} -BuildPreReq: OpenPKG, openpkg >= 20040130 -PreReq: OpenPKG, openpkg >= 20040130 -AutoReq: no -AutoReqProv: no +BuildPreReq: OpenPKG, openpkg >= 20100101, make +PreReq: OpenPKG, openpkg >= 20100101 %description The libSRTP library is an open source implementation of the Secure Realtime @@ -66,10 +62,15 @@ %build # prepare build configuration + loclibs= + case "%{l_platform -t}" in + *-sunos* ) loclibs="$loclibs -lsocket -lnsl" ;; + esac CC="%{l_cc}" \ CFLAGS="%{l_cflags -O}" \ CPPFLAGS="%{l_cppflags}" \ LDFLAGS="%{l_ldflags}" \ + LIBS="$loclibs" \ ./configure \ --prefix=%{l_prefix} @@ -77,9 +78,6 @@ %{l_make} %{l_mflags -O} %install - # remove previously existing installations - rm -rf $RPM_BUILD_ROOT - # run the native installation logic %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT @@ -89,5 +87,4 @@ %files -f files %clean - rm -rf $RPM_BUILD_ROOT