Use %license macro on spec file 03/124303/1 accepted/tizen/unified/20170411.164210 submit/tizen/20170411.055804 tizen_4.0.m1_release
authorpr.jung <pr.jung@samsung.com>
Tue, 11 Apr 2017 05:53:52 +0000 (14:53 +0900)
committerpr.jung <pr.jung@samsung.com>
Tue, 11 Apr 2017 05:53:52 +0000 (14:53 +0900)
Change-Id: I1067ae3d6574b560c865a82d2a444a1cf80d2122
Signed-off-by: pr.jung <pr.jung@samsung.com>
packaging/libfeedback.spec

index 1fb26661808476c597a297e8dc950760e5962bca..ca9ddbccd15a5769ffbc826686a01e77e09d4dc8 100644 (file)
@@ -94,10 +94,6 @@ mv mobile feedback.mobile
 mv wearable feedback.wearable
 popd
 
-mkdir -p %{buildroot}%{_datadir}/license
-cp LICENSE %{buildroot}%{_datadir}/license/%{name}
-cp LICENSE %{buildroot}%{_datadir}/license/svi-data
-
 mkdir -p %{buildroot}%{TZ_SYS_SHARE}/feedback/haptic/custom
 
 %post -p /sbin/ldconfig
@@ -111,7 +107,7 @@ rm -rf %{TZ_SYS_SHARE}/feedback/
 %files
 %defattr(-,root,root,-)
 %{_libdir}/libfeedback.so.*
-%{_datadir}/license/%{name}
+%license LICENSE
 %manifest libfeedback.manifest
 
 %files devel
@@ -123,12 +119,13 @@ rm -rf %{TZ_SYS_SHARE}/feedback/
 %files -n svi-data
 %defattr(666,app,app,-)
 %dir %{TZ_SYS_SHARE}/feedback/haptic/custom
-%{_datadir}/license/svi-data
+%license LICENSE
 %manifest svi-data.manifest
 
 %files -n svi-data-profile_common
 %defattr(644,root,root,-)
 %{_datadir}/feedback/*
+%license LICENSE
 %manifest svi-data.manifest
 
 %post -n svi-data-profile_mobile
@@ -138,6 +135,7 @@ rm -f %{_datadir}/feedback
 %files -n svi-data-profile_mobile
 %defattr(644,root,root,-)
 %{_datadir}/feedback.mobile/*
+%license LICENSE
 %manifest svi-data.manifest
 
 %post -n svi-data-profile_wearable
@@ -147,4 +145,5 @@ rm -f %{_datadir}/feedback
 %files -n svi-data-profile_wearable
 %defattr(644,root,root,-)
 %{_datadir}/feedback.wearable/*
+%license LICENSE
 %manifest svi-data.manifest