Move db tools to a separate package and make them PIE 67/144367/1 accepted/tizen_4.0_unified accepted/tizen_5.0_unified accepted/tizen_unified tizen tizen_4.0 tizen_5.0 accepted/tizen/4.0/unified/20170828.222604 accepted/tizen/5.0/unified/20181102.025532 accepted/tizen/unified/20170817.153739 submit/tizen/20170816.232010 submit/tizen_4.0/20170828.100005 submit/tizen_5.0/20181101.000006 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m2_release
authorŁukasz Stelmach <l.stelmach@samsung.com>
Wed, 16 Aug 2017 08:51:37 +0000 (10:51 +0200)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Wed, 16 Aug 2017 10:01:19 +0000 (12:01 +0200)
Change-Id: If834ee66c2390c7023646d313927495332b942ad
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
packaging/ejdb.spec
src/tcbdb/tools/CMakeLists.txt
src/tcfdb/tools/CMakeLists.txt
src/tchdb/tools/CMakeLists.txt
src/tctdb/tools/CMakeLists.txt

index 38cf159..346d316 100644 (file)
@@ -23,6 +23,13 @@ Group: Development
 %description devel
 This package provides header files and other developer releated files for package %{name}.
 
+%package bin
+Summary: Tools for dealing with ejdb files
+Group:   System/Database
+
+%description bin
+This package provides several command line tools for dealing with EJDB and Tokyo Cabinet files.
+
 %prep
 %setup -q
 cp %{SOURCE1001} .
@@ -47,11 +54,13 @@ EOF
 %files
 %license LICENSE
 %manifest %{name}.manifest
+%{_libdir}/libejdb.so.1*
+
+%files bin
 %{_bindir}/jbbmgr
 %{_bindir}/jbfmgr
 %{_bindir}/jbhmgr
 %{_bindir}/jbtmgr
-%{_libdir}/libejdb.so.1*
 
 %docs_package
 
index fc1b2bd..b24f0f5 100644 (file)
@@ -2,7 +2,8 @@ link_libraries(ejdb_p)
 add_executable(jbbmgr jbbmgr.c)
 
 set_target_properties(jbbmgr PROPERTIES
-                                         COMPILE_FLAGS "-DEJDB_STATIC")
+                                         LINK_FLAGS "-Wl,--as-needed -pie"
+                                         COMPILE_FLAGS "-DEJDB_STATIC -fPIE")
 
 
 install(TARGETS jbbmgr
index 2493f99..02a0a94 100644 (file)
@@ -2,7 +2,8 @@ link_libraries(ejdb_p)
 add_executable(jbfmgr jbfmgr.c)
 
 set_target_properties(jbfmgr PROPERTIES
-                                         COMPILE_FLAGS "-DEJDB_STATIC")
+                                         LINK_FLAGS  "-Wl,--as-needed -pie"
+                                         COMPILE_FLAGS "-DEJDB_STATIC -fPIE")
                                          
 install(TARGETS jbfmgr
        FRAMEWORK DESTINATION ${FRAMEWORK_INSTALL_DIR}
index f12e3ed..c59f7b0 100644 (file)
@@ -1,7 +1,8 @@
 link_libraries(ejdb_p)
 add_executable(jbhmgr jbhmgr.c)
 set_target_properties(jbhmgr PROPERTIES
-                                         COMPILE_FLAGS "-DEJDB_STATIC")
+                                         LINK_FLAGS "-Wl,--as-needed -pie"
+                                         COMPILE_FLAGS "-DEJDB_STATIC -fPIE")
 
 install(TARGETS jbhmgr
        FRAMEWORK DESTINATION ${FRAMEWORK_INSTALL_DIR}
index e819900..39998d1 100644 (file)
@@ -1,7 +1,8 @@
 link_libraries(ejdb_p)
 add_executable(jbtmgr jbtmgr.c)
 set_target_properties(jbtmgr PROPERTIES
-                                         COMPILE_FLAGS "-DEJDB_STATIC")
+                                         LINK_FLAGS "-Wl,--as-needed -pie"
+                                         COMPILE_FLAGS "-DEJDB_STATIC -fPIE")
 
 install(TARGETS jbtmgr
        FRAMEWORK DESTINATION ${FRAMEWORK_INSTALL_DIR}