From e67de4dde27ef4d22588fe804baf25609723a86c Mon Sep 17 00:00:00 2001 From: Wootak Jung Date: Mon, 3 Apr 2017 16:55:28 +0900 Subject: [PATCH 1/1] Use %license macro in spec file Change-Id: I6e7445c4a3a7406d2d8e9db61390e69bc7963011 --- CMakeLists.txt | 1 - packaging/tel-plugin-indicator.spec | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2f8f5be..6f45776 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,4 +55,3 @@ SET_TARGET_PROPERTIES(indicator-plugin # install INSTALL(TARGETS ${PLUGIN_NAME} LIBRARY DESTINATION ${PLUGIN_DEST}) INSTALL(TARGETS indicator-plugin LIBRARY DESTINATION ${LIBDIR}/telephony/plugins) -INSTALL(FILES ${CMAKE_SOURCE_DIR}/LICENSE DESTINATION /usr/share/license RENAME tel-plugin-indicator) diff --git a/packaging/tel-plugin-indicator.spec b/packaging/tel-plugin-indicator.spec index 1cec727..46e9f49 100644 --- a/packaging/tel-plugin-indicator.spec +++ b/packaging/tel-plugin-indicator.spec @@ -1,6 +1,6 @@ %define major 0 %define minor 1 -%define patchlevel 72 +%define patchlevel 73 Name: tel-plugin-indicator Version: %{major}.%{minor}.%{patchlevel} @@ -39,11 +39,9 @@ make %{?_smp_mflags} %install %make_install -mkdir -p %{buildroot}/usr/share/license -cp LICENSE %{buildroot}/usr/share/license/%{name} %files %manifest tel-plugin-indicator.manifest %defattr(644,root,root,-) %{_libdir}/telephony/plugins/indicator-plugin* -/usr/share/license/%{name} +%license LICENSE -- 2.7.4