Fix Build/Packaging Errors 87/10587/1 accepted/tizen/20131010.112157 accepted/tizen/20131011.014516 accepted/tizen/20131011.014554 submit/tizen/20131010.112027
authorBaptiste DURAND <baptiste.durand@eurogiciel.fr>
Mon, 7 Oct 2013 13:27:40 +0000 (15:27 +0200)
committerBaptiste DURAND <baptiste.durand@eurogiciel.fr>
Mon, 7 Oct 2013 13:27:40 +0000 (15:27 +0200)
=>  Use macro %cmake
=> Remove useless cp command for LICENSE.

Since rpm 4.11 the license is managed by rpm (by using %license macro in file section)

Change-Id: If68cf57c6f39ec036d34f0a0394b6960e9dbfce7
Signed-off-by: Baptiste DURAND <baptiste.durand@eurogiciel.fr>
packaging/wrt-commons.spec

index 3b3fee772fcfc6f918cb36faffea9f8f5668d10a..f958838c07367fea333bec5ec27932a9bdd16b26 100644 (file)
@@ -58,7 +58,7 @@ export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE"
 
 export LDFLAGS+="-Wl,--rpath=%{_libdir} -Wl,--hash-style=both -Wl,--as-needed"
 
-cmake . -DVERSION=%{version} \
+%cmake . -DVERSION=%{version} \
         -DDPL_LOG="OFF"      \
         -DCMAKE_BUILD_TYPE=%{?build_type:%build_type} \
         %{?WITH_TESTS:-DWITH_TESTS=%WITH_TESTS} \
@@ -66,8 +66,6 @@ cmake . -DVERSION=%{version} \
 make %{?jobs:-j%jobs}
 
 %install
-mkdir -p %{buildroot}/usr/share/license
-cp LICENSE %{buildroot}/usr/share/license/%{name}
 %make_install