From 2ebd0a10a1de2cb2b5ba3cb95f539fb2b5d82892 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Thu, 23 Mar 2017 16:24:44 +0900 Subject: [PATCH] Use %license to create license file Change-Id: Id7debe4149c01951fc828e0e60b55065e6213e36 Signed-off-by: Jihoon Kim --- CMakeLists.txt | 1 - packaging/capi-ui-inputmethod.spec | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b4da6ae..de97864 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -103,7 +103,6 @@ CONFIGURE_FILE( @ONLY ) INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${fw_name}.pc DESTINATION ${LIBDIR}/pkgconfig) -INSTALL(FILES ${CMAKE_SOURCE_DIR}/LICENSE DESTINATION /usr/share/license RENAME capi-ui-inputmethod) IF(UNIX) diff --git a/packaging/capi-ui-inputmethod.spec b/packaging/capi-ui-inputmethod.spec index 5e5fa78..44fb783 100644 --- a/packaging/capi-ui-inputmethod.spec +++ b/packaging/capi-ui-inputmethod.spec @@ -52,8 +52,6 @@ make %{?jobs:-j%jobs} %install rm -rf %{buildroot} %make_install -mkdir -p %{buildroot}/usr/share/license -cp LICENSE %{buildroot}/usr/share/license/%{name} %post -p /sbin/ldconfig @@ -63,7 +61,7 @@ cp LICENSE %{buildroot}/usr/share/license/%{name} %files %manifest capi-ui-inputmethod.manifest %{_libdir}/libcapi-ui-inputmethod.so* -/usr/share/license/capi-ui-inputmethod +%license LICENSE %files devel %{_includedir}/inputmethod*.h -- 2.7.4