From 922f569701894b98eb42929ff959fe2334081d38 Mon Sep 17 00:00:00 2001 From: Wootak Jung Date: Mon, 3 Apr 2017 16:04:23 +0900 Subject: [PATCH] Use %license macro in spec file Change-Id: I7a02fd43fd1bee8b78906bb4be830f9ed804e2cb --- CMakeLists.txt | 1 - packaging/capi-telephony.spec | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 45ea6b4..63fc370 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -104,7 +104,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-telephony) ADD_SUBDIRECTORY(test) diff --git a/packaging/capi-telephony.spec b/packaging/capi-telephony.spec index ea489b0..1f8320e 100644 --- a/packaging/capi-telephony.spec +++ b/packaging/capi-telephony.spec @@ -1,6 +1,6 @@ Name: capi-telephony Summary: Telephony Core API -Version: 0.1.69 +Version: 0.1.70 Release: 1 Group: System/Libraries License: Apache-2.0 @@ -41,7 +41,6 @@ make %{?jobs:-j%jobs} %install rm -rf %{buildroot} %make_install -mkdir -p %{buildroot}/usr/share/license %post -p /sbin/ldconfig @@ -50,7 +49,7 @@ mkdir -p %{buildroot}/usr/share/license %files %manifest capi-telephony.manifest %{_libdir}/libcapi-telephony.so.* -/usr/share/license/capi-telephony +%license LICENSE %files devel %{_includedir}/telephony/telephony.h -- 2.7.4