Use license macro in spec 74/120274/3
authorJeongho Mok <jho.mok@samsung.com>
Wed, 22 Mar 2017 07:51:13 +0000 (16:51 +0900)
committerJeongho Mok <jho.mok@samsung.com>
Mon, 27 Mar 2017 08:25:36 +0000 (01:25 -0700)
[Version] 0.10.105
[Profile] Common
[Issue Type] License

Change-Id: I0875eb154e38fe38719fe7c5d9f7f34110a57f79

packaging/libmm-sound.spec

index 9927fc0..428463b 100644 (file)
@@ -86,9 +86,6 @@ make %{?_smp_mflags}
 
 %install
 rm -rf %{buildroot}
-mkdir -p %{buildroot}/usr/share/license
-cp LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
-cp LICENSE.APLv2 %{buildroot}/usr/share/license/libmm-sound-tool
 mkdir -p %{buildroot}/etc/dbus-1/system.d/
 cp %{SOURCE3} %{buildroot}/etc/dbus-1/system.d/sound-server.conf
 cp %{SOURCE6} %{buildroot}/etc/dbus-1/system.d/focus-server.conf
@@ -144,8 +141,7 @@ ln -sf ../focus-server.path %{buildroot}%{_unitdir}/multi-user.target.wants/focu
 %{_unitdir}/focus-server.service
 %{_unitdir}/focus-server.path
 /usr/share/sounds/sound-server/*
-%{_datadir}/license/%{name}
-%{_datadir}/license/libmm-sound-tool
+%license LICENSE.APLv2
 /etc/dbus-1/system.d/sound-server.conf
 /etc/dbus-1/system.d/focus-server.conf
 %{_datadir}/dbus-1/system-services/org.tizen.SoundServer.service
@@ -173,3 +169,4 @@ ln -sf ../focus-server.path %{buildroot}%{_unitdir}/multi-user.target.wants/focu
 %manifest libmm-sound-tool.manifest
 %defattr(-,root,root,-)
 %{_bindir}/mm_sound_testsuite
+%license LICENSE.APLv2