[-]
[+]
|
Changed |
cmake-gui.changes
|
|
[-]
[+]
|
Changed |
cmake.changes
^
|
|
[-]
[+]
|
Changed |
cmake-gui.spec
^
|
|
[-]
[+]
|
Changed |
cmake.spec
^
|
|
[-]
[+]
|
Added |
cmake-fix-ruby-test.patch
^
|
@@ -0,0 +1,11 @@
+--- Modules/FindRuby.cmake.orig 2013-05-18 15:29:53.805033064 +0200
++++ Modules/FindRuby.cmake 2013-05-18 15:30:21.605683563 +0200
+@@ -102,7 +102,7 @@
+ _RUBY_CONFIG_VAR("sitelibdir" RUBY_SITELIB_DIR)
+
+ # vendor_ruby available ?
+- execute_process(COMMAND ${RUBY_EXECUTABLE} -r vendor-specific -e "print 'true'"
++ execute_process(COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print 'true' unless Config::CONFIG['vendorarchdir'].nil?"
+ OUTPUT_VARIABLE RUBY_HAS_VENDOR_RUBY ERROR_QUIET)
+
+ if(RUBY_HAS_VENDOR_RUBY)
|
|
Added |
cmake-2.8.12.1.tar.gz
^
|
|
Added |
cmake-2.8.12.tar.gz
^
|
[-]
[+]
|
Added |
cmake.macros
^
|
@@ -0,0 +1,43 @@
+#
+# Macros for cmake
+#
+%__cmake %{_bindir}/cmake
+%_cmake_debug %{?with_debug:debug}%{?!with_debug:release}
+
+%cmake \
+ CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \
+ CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \
+ FFLAGS="${FFLAGS:-%optflags%{?_fmoddir: -I%_fmoddir}}" ; export FFLAGS ; \
+ find . -name CMakeLists.txt \\\
+ -exec sed -i -e '/^[[:space:]]*[sS][eE][tT][[:space:]]*([[:space:]]*CMAKE_BUILD_TYPE.*)/{s/^/#IGNORE /g}' {} + \\\
+ -exec sed -i -e '/^[[:space:]]*[sS][eE][tT][[:space:]]*([[:space:]]*CMAKE_COLOR_MAKEFILE.*)/{s/^/#IGNORE /g}' {} + \\\
+ -exec sed -i -e '/^[[:space:]]*[sS][eE][tT][[:space:]]*([[:space:]]*CMAKE_INSTALL_PREFIX.*)/{s/^/#IGNORE /g}' {} + \\\
+ -exec sed -i -e '/^[[:space:]]*[sS][eE][tT][[:space:]]*([[:space:]]*CMAKE_VERBOSE_MAKEFILE.*)/{s/^/#IGNORE /g}' {} + \
+ mkdir -p build \
+ cd build \
+ %define enable_debug 1 \
+ %{?_enable_debug: %{expand: %%global enable_debug 1}} \
+ %__cmake .. \\\
+ -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \\\
+ -DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \\\
+ -DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \\\
+ -DLIB_INSTALL_DIR:PATH=%{_libdir} \\\
+ -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \\\
+ -DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \\\
+ -DCMAKE_BUILD_TYPE=%{_cmake_debug} \\\
+%if "%{?_lib}" == "lib64" \
+ -DLIB_SUFFIX=64 \\\
+%endif \
+ -DCMAKE_SKIP_RPATH:BOOL=ON \\\
+ -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \\\
+ -DBUILD_SHARED_LIBS:BOOL=ON \\\
+ -DBUILD_STATIC_LIBS:BOOL=OFF \\\
+ -DCMAKE_COLOR_MAKEFILE:BOOL=OFF \\\
+ -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF \\\
+ -DCMAKE_MODULES_INSTALL_DIR=%{_datadir}/cmake/Modules \\\
+ -DCMAKE_USER_MAKE_RULES_OVERRIDE="%{_datadir}/cmake/Modules/opensuse_rules.cmake"
+
+%cmake_install \
+ cd build \
+ make DESTDIR=%{buildroot} install/fast \
+ cd ..
|
[-]
[+]
|
Added |
opensuse_rules.cmake
^
|
@@ -0,0 +1,8 @@
+SET (CMAKE_AR /usr/bin/ar CACHE FILEPATH "Archive manager" FORCE)
+SET (CMAKE_ASM_COMPILE_OBJECT "<CMAKE_C_COMPILER> <DEFINES> OPTFLAGS <FLAGS> -o <OBJECT> -c <SOURCE>" CACHE STRING "ASM compile command" FORCE)
+SET (CMAKE_C_COMPILER /usr/bin/gcc CACHE FILEPATH "C compiler" FORCE)
+SET (CMAKE_C_COMPILE_OBJECT "<CMAKE_C_COMPILER> <DEFINES> <FLAGS> -o <OBJECT> -c <SOURCE>" CACHE STRING "C compile command" FORCE)
+SET (CMAKE_CXX_COMPILER /usr/bin/c++ CACHE FILEPATH "C++ compiler" FORCE)
+SET (CMAKE_CXX_COMPILE_OBJECT "<CMAKE_CXX_COMPILER> <DEFINES> <FLAGS> -o <OBJECT> -c <SOURCE>" CACHE STRING "C++ compile command" FORCE)
+SET (CMAKE_RANLIB /usr/bin/ranlib CACHE FILEPATH "Archive index generator" FORCE)
+SET (PKG_CONFIG_EXECUTABLE /usr/bin/pkg-config CACHE FILEPATH "pkg-config executable" FORCE)
|