diff -r 50be4b455aec -r 2ff4e4701310 srtp/srtp.spec --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/srtp/srtp.spec Sun Mar 20 19:27:35 2011 +0100 @@ -0,0 +1,93 @@ +## +## srtp.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2011 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 +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## + +# package information +Name: srtp +Summary: Secure Real-time Transport Protocol +URL: http://srtp.sourceforge.net/srtp.html +Vendor: David McGrew +Packager: Michael Schloh von Bennewitz +Distribution: Europalab Production +Class: EVAL +Group: Cryptography +License: BSD +Version: 1.4.4.2 +Release: 20110300 + +# list of sources +Source0: http://switch.dl.sourceforge.net/project/srtp/srtp/%{version}/srtp-%{version}.tar.bz2 +#Source0: cvs -d :pserver:anonymous@srtp.cvs.sourceforge.net:/cvsroot/srtp co -P srtp +#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 + +%description +The libSRTP library is an open source implementation of the Secure Realtime +Transport Protocol (SRTP.) SRTP is a security profile for RTP that adds +confidentiality, message authentication, and replay protection to that +protocol. It is specified in RFC 3711. + +%track + prog srtp = { + version = %{version} + url = http://srtp.sourceforge.net/ + regex = srtp-(__VER__)\.tar.bz2 + } + +%prep + # unpack sources + %setup -q -n %{name}-%{version} + +%build + # prepare build configuration + CC="%{l_cc}" \ + CFLAGS="%{l_cflags -O}" \ + CPPFLAGS="%{l_cppflags}" \ + LDFLAGS="%{l_ldflags}" \ + ./configure \ + --prefix=%{l_prefix} + + # build using parallel make + %{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 + + # determine installation files + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} + +%files -f files + +%clean + rm -rf $RPM_BUILD_ROOT +