Use license macro in spec file 24/120624/2 accepted/tizen/common/20170324.122600 accepted/tizen/ivi/20170324.111211 accepted/tizen/mobile/20170324.110926 accepted/tizen/tv/20170324.110950 accepted/tizen/unified/20170324.111249 accepted/tizen/wearable/20170324.111130 submit/tizen/20170324.044324
authorJiyong Min <jiyong.min@samsung.com>
Thu, 23 Mar 2017 10:24:07 +0000 (19:24 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Thu, 23 Mar 2017 11:06:15 +0000 (20:06 +0900)
Change-Id: Ieb99fa3c776098ee24b38f098d7e44deb0f86074
Signed-off-by: jiyong.min <jiyong.min@samsung.com>
packaging/capi-media-controller.spec

index c98fff6..2be66e2 100755 (executable)
@@ -62,9 +62,6 @@ MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
 %install
 rm -rf %{buildroot}
 %make_install
-mkdir -p %{buildroot}/%{_datadir}/license
-cp -rf %{_builddir}/%{name}-%{version}/LICENSE.APLv2.0 %{buildroot}/%{_datadir}/license/%{name}
-cp -rf %{_builddir}/%{name}-%{version}/LICENSE.APLv2.0 %{buildroot}/%{_datadir}/license/mediacontroller
 
 # Daemon & socket activation
 mkdir -p %{buildroot}%{_unitdir}
@@ -86,17 +83,17 @@ cp -f %{SOURCE5} %{buildroot}%{upgrade_script_path}
 %manifest %{name}.manifest
 %defattr(-,root,root,-)
 %{_libdir}/*.so.*
-%{_datadir}/license/%{name}
+%license LICENSE.APLv2.0
 
 %files -n mediacontroller
+%manifest media-controller-service.manifest
 %defattr(-,root,root,-)
 %{_bindir}/mediacontroller
-%manifest media-controller-service.manifest
 %{_unitdir}/mediacontroller.service
 %{_unitdir}/mediacontroller.socket
 %{_unitdir}/sockets.target.wants/mediacontroller.socket
-%{_datadir}/license/mediacontroller
 %{upgrade_script_path}/500.media-controller.upgrade.sh
+%license LICENSE.APLv2.0
 
 %files devel
 %{_libdir}/*.so