Using %license macro to install license file instead of using manual command. 82/126982/1 accepted/tizen/unified/20170519.200917 submit/tizen/20170519.132143 tizen_4.0.m1_release
authorWoochan Lee <wc0917.lee@samsung.com>
Tue, 25 Apr 2017 12:16:20 +0000 (21:16 +0900)
committerWoochan Lee <wc0917.lee@samsung.com>
Tue, 25 Apr 2017 12:16:31 +0000 (21:16 +0900)
Change-Id: If31fd6f70adf0b1779291c261ec33afbb90488d2

packaging/ui-viewmgr.spec

index 1f0f3748393427ec3d52a8b17fb6686e5e8eef06..4ea5027a9627f953a87e4fd4bfcf6fe2e85b8076 100644 (file)
@@ -54,9 +54,6 @@ make %{?jobs:-j%jobs}
 rm -rf %{buildroot}
 %make_install
 
-mkdir -p %{buildroot}/usr/share/license
-cp %{_builddir}/%{buildsubdir}/LICENSE %{buildroot}/usr/share/license/%{name}
-
 %post -p /sbin/ldconfig
 
 %postun -p /sbin/ldconfig
@@ -65,7 +62,7 @@ cp %{_builddir}/%{buildsubdir}/LICENSE %{buildroot}/usr/share/license/%{name}
 %defattr(-,root,root,-)
 %{_libdir}/libui-viewmgr.so.*
 %manifest ui-viewmgr.manifest
-/usr/share/license/%{name}
+%license LICENSE
 /usr/share/edje/ui-viewmgr/ui-viewmgr.edj
 
 %files ui.viewmgr.demo