[libmikey] Initial commit (see rhbz #626701)

Peter Lemenkov peter at fedoraproject.org
Sun Oct 31 04:56:28 UTC 2010


commit a75353005bc2edc7e15dd3b7b1056f35e11d85c7
Author: Peter Lemenkov <lemenkov at gmail.com>
Date:   Sun Oct 31 07:56:19 2010 +0300

    Initial commit (see rhbz #626701)
    
    Signed-off-by: Peter Lemenkov <lemenkov at gmail.com>

 .gitignore                                         |    1 +
 ...redundant-specificators-required-by-GCC-4.patch |   32 ++++++++
 libmikey.spec                                      |   76 ++++++++++++++++++++
 sources                                            |    1 +
 4 files changed, 110 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..bbd054c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libmikey-0.8.0.tar.bz2
diff --git a/libmikey-0001-Remove-the-redundant-specificators-required-by-GCC-4.patch b/libmikey-0001-Remove-the-redundant-specificators-required-by-GCC-4.patch
new file mode 100644
index 0000000..9f06e93
--- /dev/null
+++ b/libmikey-0001-Remove-the-redundant-specificators-required-by-GCC-4.patch
@@ -0,0 +1,32 @@
+From 304b99c892febafc200e94ca33b6bfb0c9810244 Mon Sep 17 00:00:00 2001
+From: Peter Lemenkov <lemenkov at gmail.com>
+Date: Mon, 25 Oct 2010 13:11:11 +0400
+Subject: [PATCH] Remove the redundant specificators (required by GCC 4.5.1)
+
+Signed-off-by: Peter Lemenkov <lemenkov at gmail.com>
+---
+ mikey/MikeyCsIdMap.cxx |    4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/mikey/MikeyCsIdMap.cxx b/mikey/MikeyCsIdMap.cxx
+index 6e51fb3..c64068f 100644
+--- a/mikey/MikeyCsIdMap.cxx
++++ b/mikey/MikeyCsIdMap.cxx
+@@ -36,12 +36,12 @@ MikeyIPSEC4Cs::MikeyIPSEC4Cs( uint8_t policyNo, uint32_t spi, uint32_t spiSrcadd
+         policyNo( policyNo ), spi( spi ), spiSrcaddr( spiSrcaddr ), spiDstaddr( spiDstaddr ){};
+ 
+ MikeyCsIdMapSrtp::MikeyCsIdMapSrtp(){
+-        cs = vector<MikeySrtpCs *>::vector();
++        cs = vector<MikeySrtpCs *>();
+ }
+ 
+ //added 041201 JOOR
+ MikeyCsIdMapIPSEC4::MikeyCsIdMapIPSEC4(){
+-        cs = list<MikeyIPSEC4Cs *>::list();
++        cs = list<MikeyIPSEC4Cs *>();
+ }
+ 
+ MikeyCsIdMapSrtp::MikeyCsIdMapSrtp( byte_t * data, int length ){
+-- 
+1.7.2.3
+
diff --git a/libmikey.spec b/libmikey.spec
new file mode 100644
index 0000000..8b38523
--- /dev/null
+++ b/libmikey.spec
@@ -0,0 +1,76 @@
+Summary:		A C++ library implementing the Multimedia Internet KEYing protocol
+Name:			libmikey
+Version:		0.8.0
+Release:		0.2.20100127svn3750%{?dist}
+License:		LGPLv2+
+URL:			http://www.minisip.org/
+Group:			System Environment/Libraries
+# svn export -r 3750  svn://svn.minisip.org/minisip/trunk/libmikey libmikey-0.8.0
+# tar cjf libmikey-0.8.0.tar.bz2 libmikey-0.8.0/
+Source0:		%{name}-%{version}.tar.bz2
+Patch1:			libmikey-0001-Remove-the-redundant-specificators-required-by-GCC-4.patch
+BuildRequires:		autoconf
+BuildRequires:		automake
+BuildRequires:		libtool
+BuildRequires:		libmcrypto-devel >= 0.8.0
+BuildRequires:		libmutil-devel >= 0.8.0
+BuildRequires:		libmnetutil-devel >= 0.8.0
+BuildRoot:		%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+%description
+libmikey is a C++ library that implements the Multimedia Internet KEYing.
+This protocol aims to provide a key exchange for secure multimedia streaming.
+It is usually embedded in SIP or RTSP session setup.
+
+%package devel
+Summary:		Development files for the libmikey library
+Group:			Development/Libraries
+Requires:		%{name} = %{version}-%{release}
+Requires:		automake
+Requires:		pkgconfig
+
+
+%description devel
+Development files for the libmikey library
+
+%prep
+%setup -q
+%patch1 -p1 -b .remove_specificator
+
+%build
+sh ./bootstrap
+%configure --disable-static
+make %{?_smp_mflags}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make DESTDIR=$RPM_BUILD_ROOT install
+rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING.LIB
+%{_libdir}/*.so.*
+
+%files devel
+%defattr(-,root,root)
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/%{name}.pc
+%{_includedir}/*
+%{_datadir}/aclocal/*.m4
+
+
+%changelog
+* Mon Oct 25 2010 Peter Lemenkov <lemenkov at gmail.com> - 0.8.0-0.2.20100127svn3750
+- Fixed build with GCC 4.5.1
+
+* Mon Aug 23 2010 Peter Lemenkov <lemenkov at gmail.com> - 0.8.0-0.1.20100127svn3750
+- Initial package for Fedora
diff --git a/sources b/sources
index e69de29..3b3dd6f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b22c89a5e1d5745149a23e0e1527ceee  libmikey-0.8.0.tar.bz2


More information about the scm-commits mailing list