From 05f1e242a1915179ba9987bc24d51b4c20678172 Mon Sep 17 00:00:00 2001 From: Baptiste DURAND Date: Mon, 7 Oct 2013 15:27:40 +0200 Subject: [PATCH] Fix Build/Packaging Errors => 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 --- packaging/wrt-commons.spec | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packaging/wrt-commons.spec b/packaging/wrt-commons.spec index 3b3fee7..f958838 100644 --- a/packaging/wrt-commons.spec +++ b/packaging/wrt-commons.spec @@ -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 -- 2.7.4