| 1 ## |
1 ## |
| 2 ## srtp.spec -- OpenPKG RPM Package Specification |
2 ## srtp.spec -- OpenPKG RPM Package Specification |
| 3 ## Copyright (c) 2011 Michael Schloh von Bennewitz <michael@schloh.com> |
3 ## Copyright (c) 2012 Michael Schloh von Bennewitz <michael@schloh.com> |
| 4 ## |
4 ## |
| 5 ## Permission to use, copy, modify, and distribute this software for |
5 ## Permission to use, copy, modify, and distribute this software for |
| 6 ## any purpose with or without fee is hereby granted, provided that |
6 ## any purpose with or without fee is hereby granted, provided that |
| 7 ## the above copyright notice and this permission notice appear in all |
7 ## the above copyright notice and this permission notice appear in all |
| 8 ## copies. |
8 ## copies. |
| 25 Name: srtp |
25 Name: srtp |
| 26 Summary: Secure Real-time Transport Protocol |
26 Summary: Secure Real-time Transport Protocol |
| 27 URL: http://srtp.sourceforge.net/srtp.html |
27 URL: http://srtp.sourceforge.net/srtp.html |
| 28 Vendor: David McGrew |
28 Vendor: David McGrew |
| 29 Packager: Michael Schloh von Bennewitz |
29 Packager: Michael Schloh von Bennewitz |
| 30 Distribution: Europalab Production |
30 Distribution: Europalab Networks Production |
| 31 Class: EVAL |
31 Class: EVAL |
| 32 Group: Cryptography |
32 Group: Cryptography |
| 33 License: BSD |
33 License: BSD |
| 34 Version: 1.4.4.2 |
34 Version: 1.4.4.2 |
| 35 Release: 20110424 |
35 Release: 20120800 |
| 36 |
36 |
| 37 # list of sources |
37 # list of sources |
| 38 Source0: http://switch.dl.sourceforge.net/project/srtp/srtp/%{version}/srtp-%{version}.tar.bz2 |
38 Source0: http://switch.dl.sourceforge.net/project/srtp/srtp/%{version}/srtp-%{version}.tar.bz2 |
| 39 #Source0: cvs -d :pserver:anonymous@srtp.cvs.sourceforge.net:/cvsroot/srtp co -P srtp |
39 #Source0: cvs -d :pserver:anonymous@srtp.cvs.sourceforge.net:/cvsroot/srtp co -P srtp |
| 40 #Source0: http://srtp.sourceforge.net/srtp-%{version}.tar.gz |
40 #Source0: http://srtp.sourceforge.net/srtp-%{version}.tar.gz |
| 41 |
41 |
| 42 # build information |
42 # build information |
| 43 Prefix: %{l_prefix} |
43 BuildPreReq: OpenPKG, openpkg >= 20100101, make |
| 44 BuildRoot: %{l_buildroot} |
44 PreReq: OpenPKG, openpkg >= 20100101 |
| 45 BuildPreReq: OpenPKG, openpkg >= 20040130 |
|
| 46 PreReq: OpenPKG, openpkg >= 20040130 |
|
| 47 AutoReq: no |
|
| 48 AutoReqProv: no |
|
| 49 |
45 |
| 50 %description |
46 %description |
| 51 The libSRTP library is an open source implementation of the Secure Realtime |
47 The libSRTP library is an open source implementation of the Secure Realtime |
| 52 Transport Protocol (SRTP.) SRTP is a security profile for RTP that adds |
48 Transport Protocol (SRTP.) SRTP is a security profile for RTP that adds |
| 53 confidentiality, message authentication, and replay protection to that |
49 confidentiality, message authentication, and replay protection to that |
| 64 # unpack sources |
60 # unpack sources |
| 65 %setup -q -n %{name}-%{version} |
61 %setup -q -n %{name}-%{version} |
| 66 |
62 |
| 67 %build |
63 %build |
| 68 # prepare build configuration |
64 # prepare build configuration |
| |
65 loclibs= |
| |
66 case "%{l_platform -t}" in |
| |
67 *-sunos* ) loclibs="$loclibs -lsocket -lnsl" ;; |
| |
68 esac |
| 69 CC="%{l_cc}" \ |
69 CC="%{l_cc}" \ |
| 70 CFLAGS="%{l_cflags -O}" \ |
70 CFLAGS="%{l_cflags -O}" \ |
| 71 CPPFLAGS="%{l_cppflags}" \ |
71 CPPFLAGS="%{l_cppflags}" \ |
| 72 LDFLAGS="%{l_ldflags}" \ |
72 LDFLAGS="%{l_ldflags}" \ |
| |
73 LIBS="$loclibs" \ |
| 73 ./configure \ |
74 ./configure \ |
| 74 --prefix=%{l_prefix} |
75 --prefix=%{l_prefix} |
| 75 |
76 |
| 76 # build using parallel make |
77 # build using parallel make |
| 77 %{l_make} %{l_mflags -O} |
78 %{l_make} %{l_mflags -O} |
| 78 |
79 |
| 79 %install |
80 %install |
| 80 # remove previously existing installations |
|
| 81 rm -rf $RPM_BUILD_ROOT |
|
| 82 |
|
| 83 # run the native installation logic |
81 # run the native installation logic |
| 84 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT |
82 %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT |
| 85 |
83 |
| 86 # determine installation files |
84 # determine installation files |
| 87 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
85 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
| 88 |
86 |
| 89 %files -f files |
87 %files -f files |
| 90 |
88 |
| 91 %clean |
89 %clean |
| 92 rm -rf $RPM_BUILD_ROOT |
|
| 93 |
90 |