Mon, 28 Jan 2013 17:37:18 +0100
Correct socket error reporting improvement with IPv6 portable code,
after helpful recommendation by Saúl Ibarra Corretgé on OSips devlist.
michael@309 | 1 | ## |
michael@309 | 2 | ## srtp.spec -- OpenPKG RPM Package Specification |
michael@542 | 3 | ## Copyright (c) 2012 Michael Schloh von Bennewitz <michael@schloh.com> |
michael@309 | 4 | ## |
michael@309 | 5 | ## Permission to use, copy, modify, and distribute this software for |
michael@309 | 6 | ## any purpose with or without fee is hereby granted, provided that |
michael@309 | 7 | ## the above copyright notice and this permission notice appear in all |
michael@309 | 8 | ## copies. |
michael@309 | 9 | ## |
michael@309 | 10 | ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
michael@309 | 11 | ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
michael@309 | 12 | ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
michael@309 | 13 | ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
michael@309 | 14 | ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
michael@309 | 15 | ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
michael@309 | 16 | ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
michael@309 | 17 | ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
michael@309 | 18 | ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
michael@309 | 19 | ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
michael@309 | 20 | ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
michael@309 | 21 | ## SUCH DAMAGE. |
michael@309 | 22 | ## |
michael@309 | 23 | |
michael@309 | 24 | # package information |
michael@309 | 25 | Name: srtp |
michael@309 | 26 | Summary: Secure Real-time Transport Protocol |
michael@309 | 27 | URL: http://srtp.sourceforge.net/srtp.html |
michael@309 | 28 | Vendor: David McGrew |
michael@309 | 29 | Packager: Michael Schloh von Bennewitz |
michael@542 | 30 | Distribution: Europalab Networks Production |
michael@309 | 31 | Class: EVAL |
michael@309 | 32 | Group: Cryptography |
michael@309 | 33 | License: BSD |
michael@309 | 34 | Version: 1.4.4.2 |
michael@542 | 35 | Release: 20120800 |
michael@309 | 36 | |
michael@309 | 37 | # list of sources |
michael@309 | 38 | Source0: http://switch.dl.sourceforge.net/project/srtp/srtp/%{version}/srtp-%{version}.tar.bz2 |
michael@309 | 39 | #Source0: cvs -d :pserver:anonymous@srtp.cvs.sourceforge.net:/cvsroot/srtp co -P srtp |
michael@309 | 40 | #Source0: http://srtp.sourceforge.net/srtp-%{version}.tar.gz |
michael@309 | 41 | |
michael@309 | 42 | # build information |
michael@542 | 43 | BuildPreReq: OpenPKG, openpkg >= 20100101, make |
michael@542 | 44 | PreReq: OpenPKG, openpkg >= 20100101 |
michael@309 | 45 | |
michael@309 | 46 | %description |
michael@309 | 47 | The libSRTP library is an open source implementation of the Secure Realtime |
michael@309 | 48 | Transport Protocol (SRTP.) SRTP is a security profile for RTP that adds |
michael@309 | 49 | confidentiality, message authentication, and replay protection to that |
michael@309 | 50 | protocol. It is specified in RFC 3711. |
michael@309 | 51 | |
michael@309 | 52 | %track |
michael@309 | 53 | prog srtp = { |
michael@309 | 54 | version = %{version} |
michael@309 | 55 | url = http://srtp.sourceforge.net/ |
michael@309 | 56 | regex = srtp-(__VER__)\.tar.bz2 |
michael@309 | 57 | } |
michael@309 | 58 | |
michael@309 | 59 | %prep |
michael@309 | 60 | # unpack sources |
michael@309 | 61 | %setup -q -n %{name}-%{version} |
michael@309 | 62 | |
michael@309 | 63 | %build |
michael@309 | 64 | # prepare build configuration |
michael@542 | 65 | loclibs= |
michael@542 | 66 | case "%{l_platform -t}" in |
michael@542 | 67 | *-sunos* ) loclibs="$loclibs -lsocket -lnsl" ;; |
michael@542 | 68 | esac |
michael@309 | 69 | CC="%{l_cc}" \ |
michael@309 | 70 | CFLAGS="%{l_cflags -O}" \ |
michael@309 | 71 | CPPFLAGS="%{l_cppflags}" \ |
michael@309 | 72 | LDFLAGS="%{l_ldflags}" \ |
michael@542 | 73 | LIBS="$loclibs" \ |
michael@309 | 74 | ./configure \ |
michael@309 | 75 | --prefix=%{l_prefix} |
michael@309 | 76 | |
michael@309 | 77 | # build using parallel make |
michael@309 | 78 | %{l_make} %{l_mflags -O} |
michael@309 | 79 | |
michael@309 | 80 | %install |
michael@309 | 81 | # run the native installation logic |
michael@309 | 82 | %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT |
michael@309 | 83 | |
michael@309 | 84 | # determine installation files |
michael@309 | 85 | %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
michael@309 | 86 | |
michael@309 | 87 | %files -f files |
michael@309 | 88 | |
michael@309 | 89 | %clean |
michael@309 | 90 |