File srtp.spec of Package srtp
#
# spec file for package srtp
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: srtp
%define lname libsrtp1
Summary: Secure Real-Time Transport Protocol (SRTP) library
Version: 1.4.4
Release: 0
License: BSD-3-Clause
Group: Development/Libraries/C and C++
Url: http://srtp.sourceforge.net/srtp.html
Source: %{name}-%{version}.tar.bz2
Patch1: srtp-automake.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
BuildRequires: automake >= 1.11
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: dos2unix
%description
The libSRTP library is an open source implementation of the Secure
Real-time Transport Protocol (SRTP) originally authored by Cisco
Systems, Inc.
%package -n %lname
Summary: Secure Real-Time Transport Protocol (SRTP) library
Group: System/Libraries
%description -n %lname
The libSRTP library is an open source implementation of the Secure
Real-time Transport Protocol (SRTP) originally authored by Cisco
Systems, Inc.
SRTP is a security profile for RTP that adds confidentiality, message
authentication, and replay protection to that protocol. It is specified
in RFC 3711. More information about the SRTP protocol itself can be
found on the Secure RTP page.
%package devel
Summary: Secure Real-Time Transport Protocol (SRTP) library
Group: Development/Libraries/C and C++
Requires: %lname = %version
%description devel
The libSRTP library is an open source implementation of the Secure
Real-time Transport Protocol (SRTP) originally authored by Cisco
Systems, Inc.
SRTP is a security profile for RTP that adds confidentiality, message
authentication, and replay protection to that protocol. It is specified
in RFC 3711. More information about the SRTP protocol itself can be
found on the Secure RTP page.
%prep
%setup -q -n %{name}
%patch -P 1 -p1
dos2unix doc/draft-irtf-cfrg-icm-00.txt
%build
autoreconf -fi
%configure \
--enable-generic-aesicm \
--enable-syslog
# --enable-gdoi
# FIXME: Does not work:
# --enable-kernel-linux
make %{?_smp_mflags}
%install
make install DESTDIR="%buildroot";
rm -f "%buildroot/%_libdir"/*.la
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files -n %lname
%defattr(-,root,root,-)
%_libdir/libsrtp.so.1*
%files devel
%defattr(-,root,root,-)
%doc CHANGES LICENSE README TODO VERSION doc/*.pdf doc/*.txt
%{_includedir}/%{name}
%_libdir/libsrtp.so
%{_libdir}/pkgconfig/libsrtp.pc
%changelog