%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} .
%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
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
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}
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}
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}