From df6d9a5c6e07601ecaf294159957f826b12ecbcf Mon Sep 17 00:00:00 2001 From: Dmitry Kovalenko Date: Tue, 11 Apr 2017 14:31:26 +0300 Subject: [PATCH] Use %license macro instead of 'cp' Change-Id: I56e8b63bca04c81ee88bacb22b25964f5741adff --- packaging/swap-manager.spec | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packaging/swap-manager.spec b/packaging/swap-manager.spec index 9d4b1fe..9ea2e0a 100644 --- a/packaging/swap-manager.spec +++ b/packaging/swap-manager.spec @@ -117,8 +117,6 @@ $SWAP_BUILD_CONF make %install rm -rf ${RPM_BUILD_ROOT} -mkdir -p %{buildroot}/usr/share/license -cp LICENSE %{buildroot}/usr/share/license/%{name} cd daemon %make_install @@ -130,7 +128,7 @@ mkdir -p %{TZ_SYS_ETC} touch %{TZ_SYS_ETC}/resourced_proc_exclude.ini %files -/usr/share/license/%{name} +%license LICENSE %manifest swap-manager.manifest %defattr(-,root,root,-) %{_prefix}/bin/da_manager -- 2.7.4