Merge branch 'tizen_2.2' into tizen tizen accepted/tizen/20130924.144453 accepted/tizen/20130924.170357 submit/tizen/20130924.054831
authorAnas Nashif <anas.nashif@intel.com>
Tue, 24 Sep 2013 05:46:54 +0000 (01:46 -0400)
committerAnas Nashif <anas.nashif@intel.com>
Tue, 24 Sep 2013 05:47:04 +0000 (01:47 -0400)
Change-Id: Id9ef7ba984eb4db5146730e9611f298f8f28c8f6
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
CMakeLists.txt [changed mode: 0755->0644]
LICENSE.APLv2.0 [changed mode: 0755->0644]
NOTICE [changed mode: 0755->0644]
osp-json.manifest [changed mode: 0755->0644]
osp-json.pc.in [changed mode: 0755->0644]
packaging/osp-json.spec

old mode 100755 (executable)
new mode 100644 (file)
index 8d89629..846f1d6
@@ -53,24 +53,12 @@ SET_TARGET_PROPERTIES(${this_target}
        CLEAN_DIRECT_OUTPUT 1
        )
 
-ADD_CUSTOM_COMMAND(TARGET ${this_target}
-    POST_BUILD
-               COMMAND ${CMAKE_COMMAND} -E copy ${LIBRARY_OUTPUT_PATH}/${CMAKE_SHARED_LIBRARY_PREFIX}${this_target}${CMAKE_SHARED_LIBRARY_SUFFIX} ${LIBRARY_OUTPUT_PATH}/debug/${CMAKE_SHARED_LIBRARY_PREFIX}${this_target}${CMAKE_SHARED_LIBRARY_SUFFIX}.${FULLVER} 
-               COMMAND ${CMAKE_COMMAND} -E create_symlink ${CMAKE_SHARED_LIBRARY_PREFIX}${this_target}${CMAKE_SHARED_LIBRARY_SUFFIX}.${FULLVER} ${LIBRARY_OUTPUT_PATH}/debug/${CMAKE_SHARED_LIBRARY_PREFIX}${this_target}${CMAKE_SHARED_LIBRARY_SUFFIX}.${MAJORVER}
-               COMMAND ${CMAKE_STRIP} --strip-unneeded ${LIBRARY_OUTPUT_PATH}/${CMAKE_SHARED_LIBRARY_PREFIX}${this_target}${CMAKE_SHARED_LIBRARY_SUFFIX}
-    COMMENT "strip ${this_target}"
-               )   
 
 INSTALL(DIRECTORY ${LIBRARY_OUTPUT_PATH}/ DESTINATION lib/osp
                FILES_MATCHING PATTERN "*.so*" 
                PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ                      
                     GROUP_EXECUTE GROUP_READ
                     WORLD_EXECUTE WORLD_READ)
-INSTALL(DIRECTORY ${LIBRARY_OUTPUT_PATH}/debug/ DESTINATION lib/osp/debug 
-               FILES_MATCHING PATTERN "*"
-               PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ                                          
-                                       GROUP_EXECUTE GROUP_READ
-                                       WORLD_EXECUTE WORLD_READ)
 
 
 
old mode 100755 (executable)
new mode 100644 (file)
diff --git a/NOTICE b/NOTICE
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index baf69fa..a570f36 100755 (executable)
@@ -1,57 +1,40 @@
-%define __strip /bin/true
-
-Name:          osp-json
-Summary:       osp json library
-Version:       1.2.2.0
-Release:       2
-Group:         System/Libraries
-License:       TO_BE/FILLED_IN
-Source0:       %{name}-%{version}.tar.gz
+Name:           osp-json
+Version:        1.2.2.0
+Release:        2
+License:        Apache-2.0
+Summary:        OSP JSON Library
+Group:          System/Libraries
+Source0:        %{name}-%{version}.tar.gz
 BuildRequires:  cmake
-BuildRequires:  pkgconfig(osp-appfw)
 BuildRequires:  osp-appfw-internal-devel
-
-# runtime requires
-Requires: osp-appfw 
+BuildRequires:  pkgconfig(osp-appfw)
+Requires:       osp-appfw
 
 %description
-osp json library
+OSP json library
 
 %package devel
-Summary:    osp json library (Development)
-Group:      TO_BE/FILLED_IN
-Requires:   %{name} = %{version}-%{release}
+Summary:        osp json library (Development)
+Requires:       %{name} = %{version}
 
 %description devel
 osp json library (DEV)
 
-%package debug
-Summary:    osp json library (Development)
-Group:      TO_BE/FILLED_IN
-Requires:   %{name} = %{version}-%{release}
-
-%description debug
-osp json library (DEV)
 
 %prep
 %setup -q
 
-%build 
+%build
 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
 %ifarch %{ix86}
-CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_OSP_X86_ -D_OSP_EMUL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
+CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_SECURE_LOG -D_OSP_X86_ -D_OSP_EMUL_" %cmake . -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
 %else
-CXXFLAGS="-O2 -g -pipe -Wall -fno-exceptions -Wformat -Wformat-security -Wl,--as-needed -fmessage-length=0 -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -D__SOFTFP__ -mthumb -Wa,-mimplicit-it=thumb -funwind-tables -D_OSP_DEBUG_ -D_OSP_ARMEL_" cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
+CXXFLAGS="$CXXFLAGS -D_OSP_DEBUG_ -D_SECURE_LOG -D_OSP_ARMEL_" %cmake .  -DFULLVER=%{version} -DMAJORVER=${MAJORVER}
 %endif
 
-# Call make instruction with smp support
-make %{?jobs:-j%jobs}
+make %{?_smp_mflags}
 
 %install
-rm -rf %{buildroot}
-mkdir -p %{buildroot}/usr/share/license
-cat %{_builddir}/%{name}-%{version}/LICENSE.APLv2.0 >> %{buildroot}/usr/share/license/%{name}
-
 %make_install
 
 %post -p /sbin/ldconfig
@@ -60,12 +43,9 @@ cat %{_builddir}/%{name}-%{version}/LICENSE.APLv2.0 >> %{buildroot}/usr/share/li
 
 %files
 %manifest osp-json.manifest
-/usr/share/license/%{name}
+%license LICENSE.APLv2.0
 %{_libdir}/osp/libosp-json.so*
 
 %files devel
 %{_includedir}/osp/*.h
 %{_libdir}/pkgconfig/osp-json.pc
-
-%files debug
-%{_libdir}/osp/debug/libosp-json.so.*