michael@309: ## michael@309: ## srtp.spec -- OpenPKG RPM Package Specification michael@309: ## Copyright (c) 2011 Michael Schloh von Bennewitz michael@309: ## michael@309: ## Permission to use, copy, modify, and distribute this software for michael@309: ## any purpose with or without fee is hereby granted, provided that michael@309: ## the above copyright notice and this permission notice appear in all michael@309: ## copies. michael@309: ## michael@309: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@309: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@309: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@309: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@309: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@309: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@309: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@309: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@309: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@309: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@309: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@309: ## SUCH DAMAGE. michael@309: ## michael@309: michael@309: # package information michael@309: Name: srtp michael@309: Summary: Secure Real-time Transport Protocol michael@309: URL: http://srtp.sourceforge.net/srtp.html michael@309: Vendor: David McGrew michael@309: Packager: Michael Schloh von Bennewitz michael@309: Distribution: Europalab Production michael@309: Class: EVAL michael@309: Group: Cryptography michael@309: License: BSD michael@309: Version: 1.4.4.2 michael@366: Release: 20110424 michael@309: michael@309: # list of sources michael@309: Source0: http://switch.dl.sourceforge.net/project/srtp/srtp/%{version}/srtp-%{version}.tar.bz2 michael@309: #Source0: cvs -d :pserver:anonymous@srtp.cvs.sourceforge.net:/cvsroot/srtp co -P srtp michael@309: #Source0: http://srtp.sourceforge.net/srtp-%{version}.tar.gz michael@309: michael@309: # build information michael@309: Prefix: %{l_prefix} michael@309: BuildRoot: %{l_buildroot} michael@309: BuildPreReq: OpenPKG, openpkg >= 20040130 michael@309: PreReq: OpenPKG, openpkg >= 20040130 michael@309: AutoReq: no michael@309: AutoReqProv: no michael@309: michael@309: %description michael@309: The libSRTP library is an open source implementation of the Secure Realtime michael@309: Transport Protocol (SRTP.) SRTP is a security profile for RTP that adds michael@309: confidentiality, message authentication, and replay protection to that michael@309: protocol. It is specified in RFC 3711. michael@309: michael@309: %track michael@309: prog srtp = { michael@309: version = %{version} michael@309: url = http://srtp.sourceforge.net/ michael@309: regex = srtp-(__VER__)\.tar.bz2 michael@309: } michael@309: michael@309: %prep michael@309: # unpack sources michael@309: %setup -q -n %{name}-%{version} michael@309: michael@309: %build michael@309: # prepare build configuration michael@309: CC="%{l_cc}" \ michael@309: CFLAGS="%{l_cflags -O}" \ michael@309: CPPFLAGS="%{l_cppflags}" \ michael@309: LDFLAGS="%{l_ldflags}" \ michael@309: ./configure \ michael@309: --prefix=%{l_prefix} michael@309: michael@309: # build using parallel make michael@309: %{l_make} %{l_mflags -O} michael@309: michael@309: %install michael@309: # remove previously existing installations michael@309: rm -rf $RPM_BUILD_ROOT michael@309: michael@309: # run the native installation logic michael@309: %{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT michael@309: michael@309: # determine installation files michael@309: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@309: michael@309: %files -f files michael@309: michael@309: %clean michael@309: rm -rf $RPM_BUILD_ROOT michael@309: