Remove hardcoding and fixed build accepted/tizen/20130604.185416 submit/tizen/20130604.113338
authorAnas Nashif <anas.nashif@intel.com>
Tue, 4 Jun 2013 11:31:38 +0000 (07:31 -0400)
committerAnas Nashif <anas.nashif@intel.com>
Tue, 4 Jun 2013 11:31:38 +0000 (07:31 -0400)
CMakeLists.txt
client/CMakeLists.txt
packaging/lbs-dbus.changes [new file with mode: 0644]
packaging/lbs-dbus.spec
server/CMakeLists.txt

index 0a7b6597dae02ad1406eda2449078a4862839fcf..eae5fda88a83c26d13356f1657b9817cd015b476 100644 (file)
@@ -15,10 +15,9 @@ FOREACH(flag ${pkgs_CFLAGS})
 ENDFOREACH(flag)
 
 SET(EXTRA_CFLAGS "${EXTRA_CFLAGS}  -Wl,-zdefs -fvisibility=hidden ")
-SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed")
 
 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS}")
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror -Wextra -fvisibility=hidden -fPIC")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wextra -fvisibility=hidden -fPIC")
 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-parameter -Wno-missing-field-initializers -Wmissing-declarations -Wcast-align")
 
 ADD_DEFINITIONS("-DFEATURE_DLOG_DEBUG")
@@ -32,9 +31,7 @@ MESSAGE(${CMAKE_EXE_LINKER_FLAGS})
 SET(PREFIX ${CMAKE_INSTALL_PREFIX})
 
 CONFIGURE_FILE(lbs-dbus.pc.in lbs-dbus.pc @ONLY)
-INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/lbs-dbus.pc DESTINATION lib/pkgconfig)
-
-INSTALL(FILES ${CMAKE_SOURCE_DIR}/LICENSE DESTINATION /usr/share/license RENAME liblbs-dbus)
+INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/lbs-dbus.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig)
 
 ADD_SUBDIRECTORY(client)
 ADD_SUBDIRECTORY(server)
index 160c80d32ffba77227df1ea0ea2a870d84dc2bf0..91e5634bc5f6340e1b160241cb7cfd822a2763f5 100644 (file)
@@ -13,5 +13,5 @@ TARGET_LINK_LIBRARIES(lbs-dbus ${pkgs_LDFLAGS})
 SET_TARGET_PROPERTIES(lbs-dbus PROPERTIES VERSION 0.1.0 SOVERSION 0 OUTPUT_NAME lbs-dbus)
 
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/lbs_dbus_client.h DESTINATION include/lbs-dbus)
-INSTALL(TARGETS lbs-dbus DESTINATION lib COMPONENT Runtime)
+INSTALL(TARGETS lbs-dbus DESTINATION ${LIB_INSTALL_DIR} COMPONENT Runtime)
 #ADD_SUBDIRECTORY(test_src)
diff --git a/packaging/lbs-dbus.changes b/packaging/lbs-dbus.changes
new file mode 100644 (file)
index 0000000..23b8120
--- /dev/null
@@ -0,0 +1,3 @@
+* Tue Jun 04 2013 Anas Nashif <anas.nashif@intel.com> submit/tizen/20130517.044934@56bc9cf
+- Remove hardcoding and fixed build
+
index fa73040efc7c2bf2733c1fafd284518bbc22a1b7..7fe6a0acb223b30e2d8536a6c49f219eefb741fb 100644 (file)
@@ -2,28 +2,24 @@ Name: lbs-dbus
 Summary: Dbus interface for Location based service
 Version: 0.1.6
 Release:    1
-Group:      System/Libraries
-License:    Apache
+Group:      Location/Service
+License:    Apache-2.0
 Source0:    lbs-dbus-%{version}.tar.gz
-Requires(post): /sbin/ldconfig
-Requires(postun): /sbin/ldconfig
 BuildRequires:  cmake
 BuildRequires:  pkgconfig(glib-2.0)
 BuildRequires:  pkgconfig(gobject-2.0)
 BuildRequires:  pkgconfig(dlog)
-#BuildRequires:  pkgconfig(security-server)
 BuildRequires:  pkgconfig(gio-2.0)
 BuildRequires:  pkgconfig(gio-unix-2.0)
 BuildRequires:  python
 BuildRequires:  python-xml
-#BuildRequires:  sec-product-features
 
 %description
 LBS dbus interface
 
 %package -n liblbs-dbus
 Summary:    LBS dbus library
-Group:      TO_BE/FILLED_IN
+Group:      Location/Libraries
 Requires(post): sys-assert
 
 %description -n liblbs-dbus
@@ -31,7 +27,7 @@ LBS client API library
 
 %package -n liblbs-dbus-devel
 Summary:    Telephony client API (devel)
-Group:      Development/Libraries
+Group:      Development/Location
 Requires:   liblbs-dbus = %{version}-%{release}
 
 %description -n liblbs-dbus-devel
@@ -43,28 +39,25 @@ LBS client API library (devel)
 
 
 %build
-cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
+%cmake . 
 
 
 make %{?jobs:-j%jobs}
 
 %install
-rm -rf %{buildroot}
 %make_install
-mkdir -p %{buildroot}/usr/share/license
 
-%post -p /sbin/ldconfig
+%post -p /sbin/ldconfig -n liblbs-dbus
 
-%postun -p /sbin/ldconfig
+%postun -p /sbin/ldconfig -n liblbs-dbus
 
 
 %files -n liblbs-dbus
 %manifest liblbs-dbus.manifest
+%license LICENSE
 %defattr(-,root,root,-)
-#%doc COPYING
 %{_libdir}/*.so.*
-%{_prefix}/etc/dbus-1/system.d/*
-/usr/share/license/liblbs-dbus
+%{_sysconfdir}/dbus-1/system.d/*
 
 %files -n liblbs-dbus-devel
 %defattr(-,root,root,-)
index 2abd6ca216678e49fde2b5d5d8ca2a2740bc32ca..e742568c880ad368d88a0627ecf0626799899c4b 100644 (file)
@@ -8,6 +8,7 @@ SET(SRCS_S
        src/lbs_dbus_server.c
        ${CMAKE_CURRENT_SOURCE_DIR}/generated-code.c
 )
+SET(SYSCONFDIR "/etc")
 MESSAGE(Server_CMAKE_BINARY_DIR: ${CMAKE_BINARY_DIR})
 MESSAGE(CMAKE_CURRENT_SOURCE_DIR: ${CMAKE_CURRENT_SOURCE_DIR})
 MESSAGE(CMAKE_SOURCE_DIR: ${CMAKE_SOURCE_DIR})
@@ -21,7 +22,7 @@ ADD_LIBRARY(lbs-dbus-server SHARED ${SRCS_S})
 TARGET_LINK_LIBRARIES(lbs-dbus-server ${pkgs_LDFLAGS})
 SET_TARGET_PROPERTIES(lbs-dbus-server PROPERTIES VERSION 0.1.0 SOVERSION 0 OUTPUT_NAME lbs-dbus-server)
 
-INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/res/lbs-dbus-server.conf DESTINATION ${PREFIX}/etc/dbus-1/system.d)
+INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/res/lbs-dbus-server.conf DESTINATION ${SYSCONFDIR}/dbus-1/system.d)
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/lbs_dbus_server.h DESTINATION include/lbs-dbus)
-INSTALL(TARGETS lbs-dbus-server DESTINATION lib COMPONENT Runtime)
+INSTALL(TARGETS lbs-dbus-server DESTINATION ${LIB_INSTALL_DIR} COMPONENT Runtime)
 #ADD_SUBDIRECTORY(test_src)