add new module for Tizen related directories
authorAnas Nashif <anas.nashif@intel.com>
Thu, 27 Jun 2013 15:22:48 +0000 (11:22 -0400)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Tue, 6 Jan 2015 10:17:16 +0000 (11:17 +0100)
packaging/TizenCommon.cmake [new file with mode: 0644]
packaging/cmake.changes
packaging/cmake.spec

diff --git a/packaging/TizenCommon.cmake b/packaging/TizenCommon.cmake
new file mode 100644 (file)
index 0000000..2a83785
--- /dev/null
@@ -0,0 +1,36 @@
+# Copied from libzypp
+# Library
+IF ( DEFINED LIB )
+  SET ( LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/${LIB}" )
+ELSE ( DEFINED  LIB )
+  IF (CMAKE_SIZEOF_VOID_P MATCHES "8")
+    SET( LIB_SUFFIX "64" )
+  ENDIF(CMAKE_SIZEOF_VOID_P MATCHES "8")
+  SET ( LIB_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}" )
+ENDIF ( DEFINED  LIB )
+MESSAGE(STATUS "Libraries will be installed in ${LIB_INSTALL_DIR}" )
+
+# system configuration dir (etc)
+IF( NOT DEFINED SYSCONFDIR )
+  IF ( ${CMAKE_INSTALL_PREFIX} STREQUAL "/usr" )
+    # if installing in usr, set sysconfg to etc
+    SET( SYSCONFDIR /etc )
+  ELSE ( ${CMAKE_INSTALL_PREFIX} STREQUAL "/usr" )
+    SET ( SYSCONFDIR "${CMAKE_INSTALL_PREFIX}/etc" )
+  ENDIF ( ${CMAKE_INSTALL_PREFIX} STREQUAL "/usr" )
+ENDIF( NOT DEFINED SYSCONFDIR )
+MESSAGE(STATUS "Config files will be installed in ${SYSCONFDIR}" )
+
+# usr INSTALL_PREFIX
+
+IF( DEFINED CMAKE_INSTALL_PREFIX )
+  SET( INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX} )
+ELSE( DEFINED CMAKE_INSTALL_PREFIX )
+  SET( INSTALL_PREFIX /usr )
+ENDIF( DEFINED CMAKE_INSTALL_PREFIX )
+
+# system configuration dir (etc)
+IF( NOT DEFINED MANDIR )
+  SET( MANDIR ${INSTALL_PREFIX}/share/man )
+ENDIF( NOT DEFINED MANDIR )
+MESSAGE( "** Manual files will be installed in ${MANDIR}" )
index 6496fd2..5ff75f8 100644 (file)
@@ -1,5 +1,10 @@
+<<<<<<< HEAD
 * Fri Jun 14 2013 Anas Nashif <anas.nashif@intel.com> submit/tizen/20130509.173457@d984652
 - Require ncurses-devel for building, not pkgconfig(ncurses)
+=======
+* Thu Jun 27 2013 Anas Nashif <anas.nashif@intel.com> submit/tizen/20130509.173457@1c276c3
+- add new module for Tizen related directories
+>>>>>>> 1f13767... add new module for Tizen related directories
 
 * Wed Feb 13 2013 Anas Nashif <anas.nashif@intel.com> upstream/2.8.10.2@260abb7
 - Update to 2.8.10.2
index cb301e6..d9905ca 100644 (file)
@@ -7,6 +7,7 @@ Url:            http://www.cmake.org
 Group:          Platfrom Development/Tools
 Source0:        http://www.cmake.org/files/v2.8/cmake-%{version}.tar.gz
 Source1:        macros.cmake
+Source2:        TizenCommon.cmake
 BuildRequires:  fdupes
 BuildRequires:  expat-devel
 BuildRequires:  pkgconfig(libarchive) >= 2.8.0
@@ -45,7 +46,7 @@ make VERBOSE=1 %{?_smp_mflags}
 %make_install 
 mkdir -p %{buildroot}%{_libdir}/cmake
 find %{buildroot}/usr/share/cmake -type f -print0 | xargs -0 chmod 644
-cp ChangeLog.manual %{buildroot}/usr/share/doc/packages/%{name}/Changelog
+cp %{SOURCE2} %{buildroot}/%{_datadir}/%{name}/Modules
 
 # Install cmake rpm macros
 install -D -p -m 0644 %{S:1} \
@@ -64,4 +65,4 @@ fdupes %buildroot/usr/share/cmake
 %{_bindir}/cmake
 %{_bindir}/cpack
 %{_bindir}/ctest
-%{_datadir}/%{name}/*
+%{_datadir}/%{name}