From: <ba...@us...> - 2008-08-27 15:10:48
|
Revision: 882 http://omc.svn.sourceforge.net/omc/?rev=882&view=rev Author: bartw Date: 2008-08-27 15:10:53 +0000 (Wed, 27 Aug 2008) Log Message: ----------- inserted a trunk directory Added Paths: ----------- cmpi-bindings/trunk/ cmpi-bindings/trunk/CMakeLists.txt cmpi-bindings/trunk/COPYING cmpi-bindings/trunk/README cmpi-bindings/trunk/TODO cmpi-bindings/trunk/VERSION.cmake cmpi-bindings/trunk/cmpi-bindings.spec.cmake cmpi-bindings/trunk/doc/ cmpi-bindings/trunk/include/ cmpi-bindings/trunk/mof/ cmpi-bindings/trunk/src/ cmpi-bindings/trunk/swig/ Removed Paths: ------------- cmpi-bindings/CMakeLists.txt cmpi-bindings/COPYING cmpi-bindings/README cmpi-bindings/TODO cmpi-bindings/VERSION.cmake cmpi-bindings/cmpi-bindings.spec.cmake cmpi-bindings/doc/ cmpi-bindings/include/ cmpi-bindings/mof/ cmpi-bindings/src/ cmpi-bindings/swig/ Deleted: cmpi-bindings/CMakeLists.txt =================================================================== --- cmpi-bindings/CMakeLists.txt 2008-08-26 23:30:44 UTC (rev 881) +++ cmpi-bindings/CMakeLists.txt 2008-08-27 15:10:53 UTC (rev 882) @@ -1,97 +0,0 @@ -# -# CMakeLists.txt for cmpi-bindings -# -PROJECT(cmpi-bindings) - -cmake_minimum_required(VERSION 2.4) - -enable_testing() -# -# cmake2.6: backward compatibility to cmake 2.4 -# -if(COMMAND cmake_policy) - cmake_policy(SET CMP0003 OLD) -endif(COMMAND cmake_policy) - -# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked -#SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH}) -#SET(CMAKE_MODULE_PATH ${CMAKE_INSTALL_PREFIX}/share/cmake/Modules ${CMAKE_MODULE_PATH}) - -# Library -IF ( DEFINED LIB ) - SET ( CMPI_LIBRARY_DIR "${CMAKE_INSTALL_PREFIX}/${LIB}/cmpi" ) -ELSE ( DEFINED LIB ) - IF (CMAKE_SIZEOF_VOID_P MATCHES "8") - SET( LIB_SUFFIX "64" ) - ENDIF(CMAKE_SIZEOF_VOID_P MATCHES "8") - SET ( CMPI_LIBRARY_DIR "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/cmpi" ) -ENDIF ( DEFINED LIB ) -MESSAGE(STATUS "Providers will be installed in ${CMPI_LIBRARY_DIR}" ) - -# Include -SET( CMPI_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/include/cmpi ) - - - -INCLUDE(${CMAKE_SOURCE_DIR}/VERSION.cmake) - -SET( PACKAGE "cmpi-bindings" ) -SET( VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}" ) - -SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Language Bindings for CMPI") -SET(CPACK_PACKAGE_VENDOR "Novell Inc.") -#SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/ReadMe.txt") -#SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/Copyright.txt") -SET(CPACK_PACKAGE_VERSION_MAJOR ${VERSION_MAJOR}) -SET(CPACK_PACKAGE_VERSION_MINOR ${VERSION_MINOR}) -SET(CPACK_PACKAGE_VERSION_PATCH ${VERSION_PATCH}) - -SET( CPACK_GENERATOR "TBZ2") -SET( CPACK_SOURCE_GENERATOR "TBZ2") -SET( CPACK_SOURCE_PACKAGE_FILE_NAME "${PACKAGE}-${VERSION}" ) - -# The following components are regex's to match anywhere (unless anchored) -# in absolute path + filename to find files or directories to be excluded -# from source tarball. -SET (CPACK_SOURCE_IGNORE_FILES -"/CVS/;/.svn/;/.libs/;/.deps/;.swp$;.#;/#;/build/" -"~$" -"\\\\.cvsignore$" -"/package" -"Makefile\\\\.in$" -) - -INCLUDE(CPack) - -#FIND_PACKAGE(SWIG REQUIRED) -MESSAGE(STATUS "Looking modules in ${CMAKE_MODULE_PATH}") -FIND_PROGRAM(SWIG_EXECUTABLE - NAMES swig-1.3 swig - PATHS ${SWIG_DIR} ${SWIG_DIR}/.. ${SWIG_DIR}/../../bin /usr/bin /usr/local/bin ${CMAKE_INSTALL_PREFIX}/bin -) - -IF ( NOT SWIG_EXECUTABLE ) - MESSAGE( FATAL "SWIG not found." ) -ELSE ( NOT SWIG_EXECUTABLE ) - MESSAGE( STATUS "SWIG found at ${SWIG_EXECUTABLE}" ) -ENDIF ( NOT SWIG_EXECUTABLE ) - -# don't build standalone provider, its included in the swig code -#ADD_SUBDIRECTORY(src) - -ADD_SUBDIRECTORY(swig) -ADD_SUBDIRECTORY(mof) - -SET( SRCPACKAGE_COMMAND - COMMAND ${CMAKE_MAKE_PROGRAM} package_source - COMMAND ${CMAKE_COMMAND} -E copy ${CPACK_SOURCE_PACKAGE_FILE_NAME}.tar.bz2 ${CMAKE_BINARY_DIR}/package/ - COMMAND ${CMAKE_COMMAND} -E remove ${CPACK_SOURCE_PACKAGE_FILE_NAME}.tar.bz2 - COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_SOURCE_DIR}/package/${PACKAGE}.changes" "${CMAKE_BINARY_DIR}/package/${PACKAGE}.changes" -) - -ADD_CUSTOM_TARGET( srcpackage - ${SRCPACKAGE_COMMAND} -) - -MESSAGE(STATUS "Writing spec file...") -CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/cmpi-bindings.spec.cmake ${CMAKE_BINARY_DIR}/package/cmpi-bindings.spec @ONLY) Deleted: cmpi-bindings/COPYING =================================================================== --- cmpi-bindings/COPYING 2008-08-26 23:30:44 UTC (rev 881) +++ cmpi-bindings/COPYING 2008-08-27 15:10:53 UTC (rev 882) @@ -1,28 +0,0 @@ -Copyright (C) 2008 Novell Inc. All rights reserved. -Copyright (C) 2008 SUSE Linux Products GmbH. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - - - Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - - Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - - - Neither the name of Novell Inc. nor of SUSE Linux Products GmbH nor the - names of its contributors may be used to endorse or promote products - derived from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' -AND ANY EXPRESS 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 Novell Inc. OR SUSE Linux Products GmbH OR -THE 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. Deleted: cmpi-bindings/README =================================================================== --- cmpi-bindings/README 2008-08-26 23:30:44 UTC (rev 881) +++ cmpi-bindings/README 2008-08-27 15:10:53 UTC (rev 882) @@ -1,50 +0,0 @@ -Swig bases CMPI bindings ------------------------- - -This implements a CMPI Instance provider via SWIG. - - -Currently supported languages - -- Ruby (complete) -- Python (almost there) - -Support for Python is only rough. The Python interpreter and the -Provider implementation get correctly loaded. But I do not know yet -how to call a Python function from C. - - -The prototype implements a dummy class 'Cmpi_Swig' which looks like -this: - -class Cmpi_Swig : CIM_ManagedElement -{ - [Description ("A friendly greeting") ] - string hello; -}; - - -FILES ------ - -mof/Swig_Generic.mof - The class definition -mof/Swig_Generic.reg - The (sfcb based) provider registration data - -src/cmpi_instance.c - A CMPI instance provider C stub to be included into - the SWIG generated C code. - It currently implements EnumInstances (for Ruby and Python) and - EnumInstanceNames (Ruby only) - Supporting more instance methods should be straightforward. - -include/cmpi - cmpi header files - - - -TODO ----- - -Convert it to a 'Generic' CMPI provider. \ No newline at end of file Deleted: cmpi-bindings/TODO =================================================================== --- cmpi-bindings/TODO 2008-08-26 23:30:44 UTC (rev 881) +++ cmpi-bindings/TODO 2008-08-27 15:10:53 UTC (rev 882) @@ -1,27 +0,0 @@ -Keep track of which objects are created with new*() methods from the -brokerEncFT, and which are created with clone(). We have to release the -later, not the former. - -Fix memory leaks related to cloning of CMPIData structs. - -Items marked as "TODO" in the code. - -Fix the build to determine the python version and dynamically link -to libpython. Cmake only knows how to statically link to libpython. -Right now it is hard-coded for libpython-2.5. - -Finish wrapping broker FTs, such as upcalls. - -Handling CMPIStatus: -Instead of returning CMPIStatus, check it in C code, and throw and -exception if it isn't CMPI_RC_OK. Functions that return CMPIStatus -would then be void instead. We'll check CMPIStatus* output parameters -as well, and do the same. We need to create an exception class with a -code and error string in swig. -[Not possible to pass status+message in a generic way. How about a -toplevel function which raised the execption ?] - -Split src/ into target-specific and common parts - -Wrap CMPIEnumeration and CMPIArray in typemaps. - Deleted: cmpi-bindings/VERSION.cmake =================================================================== --- cmpi-bindings/VERSION.cmake 2008-08-26 23:30:44 UTC (rev 881) +++ cmpi-bindings/VERSION.cmake 2008-08-27 15:10:53 UTC (rev 882) @@ -1,3 +0,0 @@ -SET(VERSION_MAJOR "0") -SET(VERSION_MINOR "1") -SET(VERSION_PATCH "0") Deleted: cmpi-bindings/cmpi-bindings.spec.cmake =================================================================== --- cmpi-bindings/cmpi-bindings.spec.cmake 2008-08-26 23:30:44 UTC (rev 881) +++ cmpi-bindings/cmpi-bindings.spec.cmake 2008-08-27 15:10:53 UTC (rev 882) @@ -1,84 +0,0 @@ -# -# spec file for package cmpi-bindings -# -# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. -# This file and all modifications and additions to the pristine -# package are under the same license as the package itself. -# -# Please submit bugfixes or comments via http://bugs.opensuse.org/ -# - -# nodebuginfo - -Name: @PACKAGE@ -Version: @VERSION@ -Release: 0 -License: GPL -Summary: Bindings for cmpi -Group: Development/Sources -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: cmake gcc-c++ ruby-devel swig -BuildRequires: sblim-sfcb-devel -Source: %{name}-%{version}.tar.bz2 - -%description -- - -%prep -%setup -q - -%build -mkdir build -cd build -cmake -DCMAKE_INSTALL_PREFIX=%{prefix} \ - -DLIB=%{_lib} \ - -DCMAKE_VERBOSE_MAKEFILE=TRUE \ - -DCMAKE_C_FLAGS_RELEASE:STRING="%{optflags}" \ - -DCMAKE_CXX_FLAGS_RELEASE:STRING="%{optflags}" \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_SKIP_RPATH=1 \ - .. -make %{?jobs:-j %jobs} - -%install -cd build -make install DESTDIR=$RPM_BUILD_ROOT - -%clean -%{__rm} -rf %{buildroot} - -%package -n cmpi-ruby -Summary: Ruby bindings for cmpi -Group: Development/Languages/Ruby - -%description -n cmpi-ruby -- - -%files -n cmpi-ruby -%defattr(-,root,root,-) -%{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/yui.so - -#%package -n python-yui -#Summary: Python bindings for cmpi -#Group: Development/Languages/Python -#%description -n python-yui -#- -# -#%files -n python-yui -#%defattr(-,root,root,-) -#%{_libdir}/python2.5/site-packages/_yui.so -#%{_libdir}/python2.5/site-packages/yui.py - -#%package -n perl-yui -#Summary: Perl bindings for cmpi -#Group: Development/Languages/Perl -# -#%description -n perl-yui -#- -# -#%files -n perl-yui -#%defattr(-,root,root,-) -#/usr/lib/perl5/*/*/yui.pm -#/usr/lib/perl5/*/*/yui.so - -%changelog Copied: cmpi-bindings/trunk/CMakeLists.txt (from rev 881, cmpi-bindings/CMakeLists.txt) =================================================================== --- cmpi-bindings/trunk/CMakeLists.txt (rev 0) +++ cmpi-bindings/trunk/CMakeLists.txt 2008-08-27 15:10:53 UTC (rev 882) @@ -0,0 +1,97 @@ +# +# CMakeLists.txt for cmpi-bindings +# +PROJECT(cmpi-bindings) + +cmake_minimum_required(VERSION 2.4) + +enable_testing() +# +# cmake2.6: backward compatibility to cmake 2.4 +# +if(COMMAND cmake_policy) + cmake_policy(SET CMP0003 OLD) +endif(COMMAND cmake_policy) + +# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked +#SET(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH}) +#SET(CMAKE_MODULE_PATH ${CMAKE_INSTALL_PREFIX}/share/cmake/Modules ${CMAKE_MODULE_PATH}) + +# Library +IF ( DEFINED LIB ) + SET ( CMPI_LIBRARY_DIR "${CMAKE_INSTALL_PREFIX}/${LIB}/cmpi" ) +ELSE ( DEFINED LIB ) + IF (CMAKE_SIZEOF_VOID_P MATCHES "8") + SET( LIB_SUFFIX "64" ) + ENDIF(CMAKE_SIZEOF_VOID_P MATCHES "8") + SET ( CMPI_LIBRARY_DIR "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/cmpi" ) +ENDIF ( DEFINED LIB ) +MESSAGE(STATUS "Providers will be installed in ${CMPI_LIBRARY_DIR}" ) + +# Include +SET( CMPI_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/include/cmpi ) + + + +INCLUDE(${CMAKE_SOURCE_DIR}/VERSION.cmake) + +SET( PACKAGE "cmpi-bindings" ) +SET( VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}" ) + +SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Language Bindings for CMPI") +SET(CPACK_PACKAGE_VENDOR "Novell Inc.") +#SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/ReadMe.txt") +#SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/Copyright.txt") +SET(CPACK_PACKAGE_VERSION_MAJOR ${VERSION_MAJOR}) +SET(CPACK_PACKAGE_VERSION_MINOR ${VERSION_MINOR}) +SET(CPACK_PACKAGE_VERSION_PATCH ${VERSION_PATCH}) + +SET( CPACK_GENERATOR "TBZ2") +SET( CPACK_SOURCE_GENERATOR "TBZ2") +SET( CPACK_SOURCE_PACKAGE_FILE_NAME "${PACKAGE}-${VERSION}" ) + +# The following components are regex's to match anywhere (unless anchored) +# in absolute path + filename to find files or directories to be excluded +# from source tarball. +SET (CPACK_SOURCE_IGNORE_FILES +"/CVS/;/.svn/;/.libs/;/.deps/;.swp$;.#;/#;/build/" +"~$" +"\\\\.cvsignore$" +"/package" +"Makefile\\\\.in$" +) + +INCLUDE(CPack) + +#FIND_PACKAGE(SWIG REQUIRED) +MESSAGE(STATUS "Looking modules in ${CMAKE_MODULE_PATH}") +FIND_PROGRAM(SWIG_EXECUTABLE + NAMES swig-1.3 swig + PATHS ${SWIG_DIR} ${SWIG_DIR}/.. ${SWIG_DIR}/../../bin /usr/bin /usr/local/bin ${CMAKE_INSTALL_PREFIX}/bin +) + +IF ( NOT SWIG_EXECUTABLE ) + MESSAGE( FATAL "SWIG not found." ) +ELSE ( NOT SWIG_EXECUTABLE ) + MESSAGE( STATUS "SWIG found at ${SWIG_EXECUTABLE}" ) +ENDIF ( NOT SWIG_EXECUTABLE ) + +# don't build standalone provider, its included in the swig code +#ADD_SUBDIRECTORY(src) + +ADD_SUBDIRECTORY(swig) +ADD_SUBDIRECTORY(mof) + +SET( SRCPACKAGE_COMMAND + COMMAND ${CMAKE_MAKE_PROGRAM} package_source + COMMAND ${CMAKE_COMMAND} -E copy ${CPACK_SOURCE_PACKAGE_FILE_NAME}.tar.bz2 ${CMAKE_BINARY_DIR}/package/ + COMMAND ${CMAKE_COMMAND} -E remove ${CPACK_SOURCE_PACKAGE_FILE_NAME}.tar.bz2 + COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_SOURCE_DIR}/package/${PACKAGE}.changes" "${CMAKE_BINARY_DIR}/package/${PACKAGE}.changes" +) + +ADD_CUSTOM_TARGET( srcpackage + ${SRCPACKAGE_COMMAND} +) + +MESSAGE(STATUS "Writing spec file...") +CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/cmpi-bindings.spec.cmake ${CMAKE_BINARY_DIR}/package/cmpi-bindings.spec @ONLY) Property changes on: cmpi-bindings/trunk/CMakeLists.txt ___________________________________________________________________ Added: svn:mergeinfo + Copied: cmpi-bindings/trunk/COPYING (from rev 881, cmpi-bindings/COPYING) =================================================================== --- cmpi-bindings/trunk/COPYING (rev 0) +++ cmpi-bindings/trunk/COPYING 2008-08-27 15:10:53 UTC (rev 882) @@ -0,0 +1,28 @@ +Copyright (C) 2008 Novell Inc. All rights reserved. +Copyright (C) 2008 SUSE Linux Products GmbH. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + - Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + - Neither the name of Novell Inc. nor of SUSE Linux Products GmbH nor the + names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' +AND ANY EXPRESS 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 Novell Inc. OR SUSE Linux Products GmbH OR +THE 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. Property changes on: cmpi-bindings/trunk/COPYING ___________________________________________________________________ Added: svn:mergeinfo + Copied: cmpi-bindings/trunk/README (from rev 881, cmpi-bindings/README) =================================================================== --- cmpi-bindings/trunk/README (rev 0) +++ cmpi-bindings/trunk/README 2008-08-27 15:10:53 UTC (rev 882) @@ -0,0 +1,50 @@ +Swig bases CMPI bindings +------------------------ + +This implements a CMPI Instance provider via SWIG. + + +Currently supported languages + +- Ruby (complete) +- Python (almost there) + +Support for Python is only rough. The Python interpreter and the +Provider implementation get correctly loaded. But I do not know yet +how to call a Python function from C. + + +The prototype implements a dummy class 'Cmpi_Swig' which looks like +this: + +class Cmpi_Swig : CIM_ManagedElement +{ + [Description ("A friendly greeting") ] + string hello; +}; + + +FILES +----- + +mof/Swig_Generic.mof + The class definition +mof/Swig_Generic.reg + The (sfcb based) provider registration data + +src/cmpi_instance.c + A CMPI instance provider C stub to be included into + the SWIG generated C code. + It currently implements EnumInstances (for Ruby and Python) and + EnumInstanceNames (Ruby only) + Supporting more instance methods should be straightforward. + +include/cmpi + cmpi header files + + + +TODO +---- + +Convert it to a 'Generic' CMPI provider. \ No newline at end of file Property changes on: cmpi-bindings/trunk/README ___________________________________________________________________ Added: svn:mergeinfo + Copied: cmpi-bindings/trunk/TODO (from rev 881, cmpi-bindings/TODO) =================================================================== --- cmpi-bindings/trunk/TODO (rev 0) +++ cmpi-bindings/trunk/TODO 2008-08-27 15:10:53 UTC (rev 882) @@ -0,0 +1,27 @@ +Keep track of which objects are created with new*() methods from the +brokerEncFT, and which are created with clone(). We have to release the +later, not the former. + +Fix memory leaks related to cloning of CMPIData structs. + +Items marked as "TODO" in the code. + +Fix the build to determine the python version and dynamically link +to libpython. Cmake only knows how to statically link to libpython. +Right now it is hard-coded for libpython-2.5. + +Finish wrapping broker FTs, such as upcalls. + +Handling CMPIStatus: +Instead of returning CMPIStatus, check it in C code, and throw and +exception if it isn't CMPI_RC_OK. Functions that return CMPIStatus +would then be void instead. We'll check CMPIStatus* output parameters +as well, and do the same. We need to create an exception class with a +code and error string in swig. +[Not possible to pass status+message in a generic way. How about a +toplevel function which raised the execption ?] + +Split src/ into target-specific and common parts + +Wrap CMPIEnumeration and CMPIArray in typemaps. + Property changes on: cmpi-bindings/trunk/TODO ___________________________________________________________________ Added: svn:mergeinfo + Copied: cmpi-bindings/trunk/VERSION.cmake (from rev 881, cmpi-bindings/VERSION.cmake) =================================================================== --- cmpi-bindings/trunk/VERSION.cmake (rev 0) +++ cmpi-bindings/trunk/VERSION.cmake 2008-08-27 15:10:53 UTC (rev 882) @@ -0,0 +1,3 @@ +SET(VERSION_MAJOR "0") +SET(VERSION_MINOR "1") +SET(VERSION_PATCH "0") Property changes on: cmpi-bindings/trunk/VERSION.cmake ___________________________________________________________________ Added: svn:mergeinfo + Copied: cmpi-bindings/trunk/cmpi-bindings.spec.cmake (from rev 881, cmpi-bindings/cmpi-bindings.spec.cmake) =================================================================== --- cmpi-bindings/trunk/cmpi-bindings.spec.cmake (rev 0) +++ cmpi-bindings/trunk/cmpi-bindings.spec.cmake 2008-08-27 15:10:53 UTC (rev 882) @@ -0,0 +1,84 @@ +# +# spec file for package cmpi-bindings +# +# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# nodebuginfo + +Name: @PACKAGE@ +Version: @VERSION@ +Release: 0 +License: GPL +Summary: Bindings for cmpi +Group: Development/Sources +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: cmake gcc-c++ ruby-devel swig +BuildRequires: sblim-sfcb-devel +Source: %{name}-%{version}.tar.bz2 + +%description +- + +%prep +%setup -q + +%build +mkdir build +cd build +cmake -DCMAKE_INSTALL_PREFIX=%{prefix} \ + -DLIB=%{_lib} \ + -DCMAKE_VERBOSE_MAKEFILE=TRUE \ + -DCMAKE_C_FLAGS_RELEASE:STRING="%{optflags}" \ + -DCMAKE_CXX_FLAGS_RELEASE:STRING="%{optflags}" \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_SKIP_RPATH=1 \ + .. +make %{?jobs:-j %jobs} + +%install +cd build +make install DESTDIR=$RPM_BUILD_ROOT + +%clean +%{__rm} -rf %{buildroot} + +%package -n cmpi-ruby +Summary: Ruby bindings for cmpi +Group: Development/Languages/Ruby + +%description -n cmpi-ruby +- + +%files -n cmpi-ruby +%defattr(-,root,root,-) +%{_libdir}/ruby/vendor_ruby/%{rb_ver}/%{rb_arch}/yui.so + +#%package -n python-yui +#Summary: Python bindings for cmpi +#Group: Development/Languages/Python +#%description -n python-yui +#- +# +#%files -n python-yui +#%defattr(-,root,root,-) +#%{_libdir}/python2.5/site-packages/_yui.so +#%{_libdir}/python2.5/site-packages/yui.py + +#%package -n perl-yui +#Summary: Perl bindings for cmpi +#Group: Development/Languages/Perl +# +#%description -n perl-yui +#- +# +#%files -n perl-yui +#%defattr(-,root,root,-) +#/usr/lib/perl5/*/*/yui.pm +#/usr/lib/perl5/*/*/yui.so + +%changelog Property changes on: cmpi-bindings/trunk/cmpi-bindings.spec.cmake ___________________________________________________________________ Added: svn:mergeinfo + Property changes on: cmpi-bindings/trunk/doc ___________________________________________________________________ Added: svn:mergeinfo + Property changes on: cmpi-bindings/trunk/include ___________________________________________________________________ Added: svn:mergeinfo + Property changes on: cmpi-bindings/trunk/mof ___________________________________________________________________ Added: svn:mergeinfo + Property changes on: cmpi-bindings/trunk/src ___________________________________________________________________ Added: svn:mergeinfo + Property changes on: cmpi-bindings/trunk/swig ___________________________________________________________________ Added: svn:mergeinfo + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |