rpms/sems/EL-6 sems-0001-Force-to-use-system-wide-GSM-includes.patch, NONE, 1.1 sems-0002-Allow-rewrite-of-custom-makefiles-by-CMake.patch, NONE, 1.1 sems-0003-Set-CFG_PREFIX-to-empty-string-by-default.patch, NONE, 1.1 sems-0004-Fix-for-old-python-2.4.patch, NONE, 1.1 sems-0005-Compatibility-with-older-CMake-2.4.patch, NONE, 1.1 import.log, 1.7, 1.8 sems.spec, 1.13, 1.14 sems--0001-Force-to-use-system-wide-GSM-includes.patch, 1.1, NONE sems--0002-Allow-rewrite-of-custom-makefiles-by-CMake.patch, 1.1, NONE sems--0003-Relax-requirements-for-CMake-version.patch, 1.1, NONE sems--0004-Set-CFG_PREFIX-to-empty-string-by-default.patch, 1.1, NONE sems--0005-Enable-support-for-CMake-2.4.patch, 1.1, NONE

Peter Lemenkov peter at fedoraproject.org
Thu May 20 11:28:10 UTC 2010


Author: peter

Update of /cvs/pkgs/rpms/sems/EL-6
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv20623/EL-6

Modified Files:
	import.log sems.spec 
Added Files:
	sems-0001-Force-to-use-system-wide-GSM-includes.patch 
	sems-0002-Allow-rewrite-of-custom-makefiles-by-CMake.patch 
	sems-0003-Set-CFG_PREFIX-to-empty-string-by-default.patch 
	sems-0004-Fix-for-old-python-2.4.patch 
	sems-0005-Compatibility-with-older-CMake-2.4.patch 
Removed Files:
	sems--0001-Force-to-use-system-wide-GSM-includes.patch 
	sems--0002-Allow-rewrite-of-custom-makefiles-by-CMake.patch 
	sems--0003-Relax-requirements-for-CMake-version.patch 
	sems--0004-Set-CFG_PREFIX-to-empty-string-by-default.patch 
	sems--0005-Enable-support-for-CMake-2.4.patch 
Log Message:
Fixed build for EL-5

sems-0001-Force-to-use-system-wide-GSM-includes.patch:
 gsm.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- NEW FILE sems-0001-Force-to-use-system-wide-GSM-includes.patch ---
>From 9cb680c4f42773cf89518a3b678d71aa7ab29661 Mon Sep 17 00:00:00 2001
From: Peter Lemenkov <lemenkov at gmail.com>
Date: Wed, 31 Mar 2010 11:52:52 +0400
Subject: [PATCH 1/5] Force to use system-wide GSM includes

Signed-off-by: Peter Lemenkov <lemenkov at gmail.com>
---
 core/plug-in/gsm/gsm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/core/plug-in/gsm/gsm.c b/core/plug-in/gsm/gsm.c
index 805ef78..bfc6a59 100644
--- a/core/plug-in/gsm/gsm.c
+++ b/core/plug-in/gsm/gsm.c
@@ -27,7 +27,7 @@
 
 #include "amci.h"
 #include "codecs.h"
-#include "gsm-1.0-pl10/inc/gsm.h"
+#include <gsm.h>
 #include "../../log.h"
 
 #include <stdlib.h>
-- 
1.6.6.1


sems-0002-Allow-rewrite-of-custom-makefiles-by-CMake.patch:
 CMakeLists.txt |   10 ----------
 1 file changed, 10 deletions(-)

--- NEW FILE sems-0002-Allow-rewrite-of-custom-makefiles-by-CMake.patch ---
>From 702b728185a6ae9cc1c511e1c4a04839222ca8b7 Mon Sep 17 00:00:00 2001
From: Peter Lemenkov <lemenkov at gmail.com>
Date: Wed, 31 Mar 2010 11:53:48 +0400
Subject: [PATCH 2/5] Allow rewrite of custom makefiles by CMake

Signed-off-by: Peter Lemenkov <lemenkov at gmail.com>
---
 CMakeLists.txt |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 518b14c..c7c6e40 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,15 +9,6 @@ SET(SEMS_EXTRA_VERSION dev)
 SET(SEMS_VERSION
     "${SEMS_MAJOR_VERSION}.${SEMS_MINOR_VERSION}.${SEMS_BUILD_VERSION}")
 
-IF(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR AND NOT MSVC_IDE)
-	message(FATAL_ERROR "In-source builds are not allowed.
-CMake would overwrite all makefiles distributed with SEMS.
-Please create a directory and run cmake from there, passing the path
-to this source directory as the last argument.
-This process created the file `CMakeCache.txt' and the directory `CMakeFiles'.
-Please delete them.")
-ENDIF(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR AND NOT MSVC_IDE)
-
 OPTION(SEMS_USE_SPANDSP       "Build with spandsp" OFF)
 OPTION(SEMS_USE_LIBSAMPLERATE "Build with libsamplerate" OFF)
 OPTION(SEMS_USE_ZRTP          "Build with ZRTP" OFF)
-- 
1.6.6.1


sems-0003-Set-CFG_PREFIX-to-empty-string-by-default.patch:
 CMakeLists.txt |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- NEW FILE sems-0003-Set-CFG_PREFIX-to-empty-string-by-default.patch ---
>From 925e57b57d82c4b1813b1bb41faf23380e21d736 Mon Sep 17 00:00:00 2001
From: Peter Lemenkov <lemenkov at gmail.com>
Date: Wed, 31 Mar 2010 18:56:39 +0400
Subject: [PATCH 3/5] Set CFG_PREFIX to empty string by default

Signed-off-by: Peter Lemenkov <lemenkov at gmail.com>
---
 CMakeLists.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index c7c6e40..e0d749a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -25,7 +25,7 @@ OPTION(MAX_RTP_SESSIONS:int   "How many rtp sessions SEMS will handle simultaneo
 SET(CMAKE_DL_LIBS ${CMAKE_DL_LIBS} m pthread)
 
 IF (NOT SEMS_CFG_PREFIX)
-	SET(SEMS_CFG_PREFIX "/usr/local")
+	SET(SEMS_CFG_PREFIX "")
 ENDIF (NOT SEMS_CFG_PREFIX)
 MESSAGE(STATUS "SEMS cfg prefix was set to: ${SEMS_CFG_PREFIX}")
 
-- 
1.6.6.1


sems-0004-Fix-for-old-python-2.4.patch:
 Ivr.cpp |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- NEW FILE sems-0004-Fix-for-old-python-2.4.patch ---
>From a09ad947b38446e2c7b3389b4ede87de1d8707a0 Mon Sep 17 00:00:00 2001
From: Peter Lemenkov <lemenkov at gmail.com>
Date: Sat, 1 May 2010 22:19:48 +0400
Subject: [PATCH 4/5] Fix for old python 2.4

Signed-off-by: Peter Lemenkov <lemenkov at gmail.com>
---
 apps/ivr/Ivr.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/apps/ivr/Ivr.cpp b/apps/ivr/Ivr.cpp
index f4ed59f..1a0dccb 100644
--- a/apps/ivr/Ivr.cpp
+++ b/apps/ivr/Ivr.cpp
@@ -229,7 +229,7 @@ void IvrFactory::import_object(PyObject* m, const char* name, PyTypeObject* type
     return;
   }
   Py_INCREF(type);
-  PyModule_AddObject(m, name, (PyObject *)type);
+  PyModule_AddObject(m, (char*)name, (PyObject *)type);
 }
 
 void IvrFactory::import_ivr_builtins()
-- 
1.6.6.1


sems-0005-Compatibility-with-older-CMake-2.4.patch:
 CMakeLists.txt                                       |    2 +-
 apps/diameter_client/CMakeLists.txt                  |    2 --
 apps/diameter_client/lib_dbase/CMakeLists.txt        |    1 +
 apps/py_sems/CMakeLists.txt                          |    3 ---
 apps/py_sems/sip/CMakeLists.txt                      |    1 +
 apps/xmlrpc2di/CMakeLists.txt                        |    3 ---
 apps/xmlrpc2di/xmlrpc++/src/CMakeLists.txt           |    1 +
 cmake/python.rules.txt                               |    4 ++--
 core/plug-in/binrpcctrl/CMakeLists.txt               |    3 ---
 core/plug-in/binrpcctrl/libbinrpc/src/CMakeLists.txt |    1 +
 core/plug-in/ilbc/CMakeLists.txt                     |    4 ----
 11 files changed, 7 insertions(+), 18 deletions(-)

--- NEW FILE sems-0005-Compatibility-with-older-CMake-2.4.patch ---
>From 91ef0f3c7475dfd0b0f71ef1cffa0082035d930f Mon Sep 17 00:00:00 2001
From: Peter Lemenkov <lemenkov at gmail.com>
Date: Tue, 18 May 2010 17:31:11 +0000
Subject: [PATCH 5/5] Compatibility with older CMake (2.4).

Signed-off-by: Peter Lemenkov <lemenkov at gmail.com>
---
 CMakeLists.txt                                     |    2 +-
 apps/diameter_client/CMakeLists.txt                |    2 --
 apps/diameter_client/lib_dbase/CMakeLists.txt      |    1 +
 apps/py_sems/CMakeLists.txt                        |    3 ---
 apps/py_sems/sip/CMakeLists.txt                    |    1 +
 apps/xmlrpc2di/CMakeLists.txt                      |    3 ---
 apps/xmlrpc2di/xmlrpc++/src/CMakeLists.txt         |    1 +
 cmake/python.rules.txt                             |    4 ++--
 core/plug-in/binrpcctrl/CMakeLists.txt             |    3 ---
 .../binrpcctrl/libbinrpc/src/CMakeLists.txt        |    1 +
 core/plug-in/ilbc/CMakeLists.txt                   |    3 ---
 core/plug-in/ilbc/iLBC_rfc3951/CMakeLists.txt      |    1 +
 12 files changed, 8 insertions(+), 17 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index e0d749a..0cfb538 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
 
 PROJECT (SEMS)
 
diff --git a/apps/diameter_client/CMakeLists.txt b/apps/diameter_client/CMakeLists.txt
index c510194..a7ce86a 100644
--- a/apps/diameter_client/CMakeLists.txt
+++ b/apps/diameter_client/CMakeLists.txt
@@ -6,8 +6,6 @@ ServerConnection.cpp
 ADD_SUBDIRECTORY (lib_dbase)
 INCLUDE_DIRECTORIES (lib_dbase)
 
-SET_PROPERTY(TARGET libdbase PROPERTY IMPORTED_LOCATION ./lib_dbase/libdbase.a)
-
 SET(sems_module_name diameter_client)
 SET(sems_module_libs libdbase)
 
diff --git a/apps/diameter_client/lib_dbase/CMakeLists.txt b/apps/diameter_client/lib_dbase/CMakeLists.txt
index 62016f9..138f636 100644
--- a/apps/diameter_client/lib_dbase/CMakeLists.txt
+++ b/apps/diameter_client/lib_dbase/CMakeLists.txt
@@ -9,4 +9,5 @@ IF(OPENSSL_FOUND)
 ENDIF(OPENSSL_FOUND)
 
 ADD_LIBRARY(libdbase STATIC ${libdbase_SRCS})
+ADD_CUSTOM_COMMAND(TARGET libdbase POST_BUILD COMMAND cp ARGS liblibdbase.a libliblibdbase.a)
 
diff --git a/apps/py_sems/CMakeLists.txt b/apps/py_sems/CMakeLists.txt
index 91bc246..40b7be3 100644
--- a/apps/py_sems/CMakeLists.txt
+++ b/apps/py_sems/CMakeLists.txt
@@ -18,11 +18,8 @@ EXECUTE_PROCESS(COMMAND python-config --libs OUTPUT_VARIABLE PYTHON_LIB_FLAGS OU
 SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${PYTHON_LIB_FLAGS}")
 
 ADD_SUBDIRECTORY (sip)
-
 INCLUDE_DIRECTORIES (sip)
 
-SET_PROPERTY(TARGET sip PROPERTY IMPORTED_LOCATION ./sip/sip.a)
-
 SET(sems_module_name py_sems)
 SET(sems_module_libs sip)
 INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
diff --git a/apps/py_sems/sip/CMakeLists.txt b/apps/py_sems/sip/CMakeLists.txt
index edcd6d7..81d4df4 100644
--- a/apps/py_sems/sip/CMakeLists.txt
+++ b/apps/py_sems/sip/CMakeLists.txt
@@ -18,4 +18,5 @@ sippy_sems_libstring.cpp
 
 EXECUTE_PROCESS(COMMAND python configure.py WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
 ADD_LIBRARY(sip STATIC ${sip_SRCS})
+ADD_CUSTOM_COMMAND(TARGET sip POST_BUILD COMMAND cp ARGS libsip.a liblibsip.a)
 
diff --git a/apps/xmlrpc2di/CMakeLists.txt b/apps/xmlrpc2di/CMakeLists.txt
index d4ef304..a11ac3b 100644
--- a/apps/xmlrpc2di/CMakeLists.txt
+++ b/apps/xmlrpc2di/CMakeLists.txt
@@ -5,11 +5,8 @@ XMLRPC2DI.cpp
 )
 
 ADD_SUBDIRECTORY (xmlrpc++)
-
 INCLUDE_DIRECTORIES (xmlrpc++/src)
 
-SET_PROPERTY(TARGET xmlrpcpp PROPERTY IMPORTED_LOCATION ./xmlrpc++/src/xmlrpcpp.a)
-
 SET(sems_module_name xmlrpc2di)
 SET(sems_module_libs xmlrpcpp)
 
diff --git a/apps/xmlrpc2di/xmlrpc++/src/CMakeLists.txt b/apps/xmlrpc2di/xmlrpc++/src/CMakeLists.txt
index f4a1299..42a4b34 100644
--- a/apps/xmlrpc2di/xmlrpc++/src/CMakeLists.txt
+++ b/apps/xmlrpc2di/xmlrpc++/src/CMakeLists.txt
@@ -19,4 +19,5 @@ XmlRpcValue.cpp
 # Solaris: -lsocket -lnsl
 
 ADD_LIBRARY(xmlrpcpp STATIC ${xmlrpcpp_SRCS})
+ADD_CUSTOM_COMMAND(TARGET xmlrpcpp POST_BUILD COMMAND cp ARGS libxmlrpcpp.a liblibxmlrpcpp.a)
 
diff --git a/cmake/python.rules.txt b/cmake/python.rules.txt
index 54f7880..b7d37ad 100644
--- a/cmake/python.rules.txt
+++ b/cmake/python.rules.txt
@@ -1,7 +1,7 @@
-FUNCTION(PYTHON_SOURCES_COMPILE python_files sems_python_dir)
+MACRO(PYTHON_SOURCES_COMPILE python_files sems_python_dir)
 	FOREACH (python_file ${python_files})
 		EXECUTE_PROCESS(COMMAND python -c "import py_compile; py_compile.compile('${CMAKE_CURRENT_SOURCE_DIR}/${python_file}')")
 		EXECUTE_PROCESS(COMMAND python -O -c "import py_compile; py_compile.compile('${CMAKE_CURRENT_SOURCE_DIR}/${python_file}')")
 		INSTALL (FILES ${python_file} ${python_file}c ${python_file}o DESTINATION ${SEMS_EXEC_PREFIX}/${SEMS_LIBDIR}/sems/${sems_python_dir})
 	ENDFOREACH(python_file ${python_files})
-ENDFUNCTION()
+ENDMACRO(PYTHON_SOURCES_COMPILE python_files sems_python_dir)
diff --git a/core/plug-in/binrpcctrl/CMakeLists.txt b/core/plug-in/binrpcctrl/CMakeLists.txt
index 27ced92..3899407 100644
--- a/core/plug-in/binrpcctrl/CMakeLists.txt
+++ b/core/plug-in/binrpcctrl/CMakeLists.txt
@@ -5,11 +5,8 @@ CtrlServer.cpp
 )
 
 ADD_SUBDIRECTORY (libbinrpc)
-
 INCLUDE_DIRECTORIES (libbinrpc/include)
 
-SET_PROPERTY(TARGET libbinrpc PROPERTY IMPORTED_LOCATION ./libbinrpc/src/binrpcctrl.a)
-
 SET(sems_module_name binrpcctrl)
 SET(sems_module_libs libbinrpc)
 INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
diff --git a/core/plug-in/binrpcctrl/libbinrpc/src/CMakeLists.txt b/core/plug-in/binrpcctrl/libbinrpc/src/CMakeLists.txt
index 90dda19..a8df076 100644
--- a/core/plug-in/binrpcctrl/libbinrpc/src/CMakeLists.txt
+++ b/core/plug-in/binrpcctrl/libbinrpc/src/CMakeLists.txt
@@ -34,4 +34,5 @@ ADD_DEFINITIONS(-DBINRPC_LIB_VER="1.0-1" -D_LIBBINRPC_BUILD -DNDEBUG)
 
 ADD_LIBRARY(libbinrpc STATIC ${libbinrpc_SRCS})
 SET_TARGET_PROPERTIES(libbinrpc PROPERTIES OUTPUT_NAME "libbinrpc")
+ADD_CUSTOM_COMMAND(TARGET libbinrpc POST_BUILD COMMAND cp ARGS liblibbinrpc.a libliblibbinrpc.a)
 
diff --git a/core/plug-in/ilbc/CMakeLists.txt b/core/plug-in/ilbc/CMakeLists.txt
index 959f268..1f4dcfb 100644
--- a/core/plug-in/ilbc/CMakeLists.txt
+++ b/core/plug-in/ilbc/CMakeLists.txt
@@ -3,11 +3,8 @@ set (ilbc_SRCS
 )
 
 ADD_SUBDIRECTORY (iLBC_rfc3951)
-
 INCLUDE_DIRECTORIES (iLBC_rfc3951)
 
-SET_PROPERTY(TARGET libilbc PROPERTY IMPORTED_LOCATION ./iLBC_rfc3951/ilbc.a)
-
 SET(sems_module_name ilbc)
 SET(sems_module_libs libilbc)
 INCLUDE(${CMAKE_SOURCE_DIR}/cmake/module.rules.txt)
-- 
1.6.6.1



Index: import.log
===================================================================
RCS file: /cvs/pkgs/rpms/sems/EL-6/import.log,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -p -r1.7 -r1.8
--- import.log	1 May 2010 05:19:25 -0000	1.7
+++ import.log	20 May 2010 11:28:08 -0000	1.8
@@ -5,3 +5,4 @@ sems-1_1_1-6_fc11:HEAD:sems-1.1.1-6.fc11
 sems-1_2_0-1_fc12:F-12:sems-1.2.0-1.fc12.src.rpm:1270129616
 sems-1_2_0-2_fc12:F-12:sems-1.2.0-2.fc12.src.rpm:1271688426
 sems-1_2_1-1_fc12:F-12:sems-1.2.1-1.fc12.src.rpm:1272691130
+sems-1_2_1-2_fc12:EL-6:sems-1.2.1-2.fc12.src.rpm:1274354848


Index: sems.spec
===================================================================
RCS file: /cvs/pkgs/rpms/sems/EL-6/sems.spec,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -p -r1.13 -r1.14
--- sems.spec	1 May 2010 05:19:25 -0000	1.13
+++ sems.spec	20 May 2010 11:28:09 -0000	1.14
@@ -1,7 +1,7 @@
 Summary:	SIP Express Media Server, an extensible SIP media server
 Name:		sems
 Version:	1.2.1
-Release:	1%{?dist}
+Release:	2%{?dist}
 URL:		http://www.iptel.org/sems
 ## wget http://ftp.iptel.org/pub/sems/1.2/1.2.1/src/sems-1.2.1.tar.gz
 ## tar zx --exclude iLBC_rfc3951 -f sems-1.2.1.tar.gz
@@ -10,15 +10,15 @@ Source0:	%{name}-%{version}.w_o_ilbc_sou
 License:	GPLv2+
 Group:		Applications/Communications
 # Will be proposed for inclusion in upstream
-Patch1:		sems--0001-Force-to-use-system-wide-GSM-includes.patch
+Patch1:		sems-0001-Force-to-use-system-wide-GSM-includes.patch
 # Fedora-specific
-Patch2:		sems--0002-Allow-rewrite-of-custom-makefiles-by-CMake.patch
-# Will be proposed for inclusion in upstream
-Patch3:		sems--0003-Relax-requirements-for-CMake-version.patch
+Patch2:		sems-0002-Allow-rewrite-of-custom-makefiles-by-CMake.patch
 # Fedora-specific
-Patch4:		sems--0004-Set-CFG_PREFIX-to-empty-string-by-default.patch
-# RHEL-specific, will be applied upstream
-Patch5:		sems--0005-Enable-support-for-CMake-2.4.patch
+Patch3:		sems-0003-Set-CFG_PREFIX-to-empty-string-by-default.patch
+# RHEL-specific
+Patch4:		sems-0004-Fix-for-old-python-2.4.patch
+# RHEL-specific, partially applied upstream
+Patch5:		sems-0005-Compatibility-with-older-CMake-2.4.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:	python >= 2.3
 BuildRequires: sip-devel
@@ -185,10 +185,10 @@ XMLRPC servers.
 rm -rf core/plug-in/gsm/gsm-1.0-pl10/
 %patch1 -p1 -b .use_system_wide_gsm
 %patch2 -p1 -b .allow_rewrite_of_makefiles
-%patch3 -p1 -b .relax_required_cmake_ver
-%patch4 -p1 -b .cfg_prefix_to_empty_string
-%if 0%{?rhel}
-%patch5 -p1 -b .fix_for_cmake_2_4
+%patch3 -p1 -b .cfg_prefix_to_empty_string
+%if 0%{?el4}%{?el5}
+%patch4 -p1 -b .support_for_python_2_4
+%patch5 -p1 -b .support_for_cmake_2_4
 %endif
 
 
@@ -603,6 +603,9 @@ fi
 %{_libdir}/%{name}/plug-in/xmlrpc2di.so
 
 %changelog
+* Fri May  7 2010 Peter Lemenkov <lemenkov at gmail.com> 1.2.1-2
+- Fixed build for EPEL
+
 * Fri Apr 30 2010 Peter Lemenkov <lemenkov at gmail.com> 1.2.1-1
 - Ver. 1.2.1
 - Dropped upstreamed patches


--- sems--0001-Force-to-use-system-wide-GSM-includes.patch DELETED ---


--- sems--0002-Allow-rewrite-of-custom-makefiles-by-CMake.patch DELETED ---


--- sems--0003-Relax-requirements-for-CMake-version.patch DELETED ---


--- sems--0004-Set-CFG_PREFIX-to-empty-string-by-default.patch DELETED ---


--- sems--0005-Enable-support-for-CMake-2.4.patch DELETED ---



More information about the scm-commits mailing list