package: install license by %license macro 93/124593/1
authorJinhyung Choi <jinh0.choi@samsung.com>
Wed, 12 Apr 2017 01:44:58 +0000 (10:44 +0900)
committerJinhyung Choi <jinh0.choi@samsung.com>
Wed, 12 Apr 2017 01:44:58 +0000 (10:44 +0900)
Change-Id: I0d42f68373dddbbcd08a61fce471d33a0f4ee668
Signed-off-by: Jinhyung Choi <jinh0.choi@samsung.com>
packaging/emuld.spec

index f3c5a2882a88c78e61f86201da37a70c41f7a85f..2a979fda923a15134fb7cce015bd9d436a442fe3 100644 (file)
@@ -77,11 +77,6 @@ fi
 cp emuld.service %{buildroot}/usr/lib/systemd/system/.
 ln -s ../emuld.service %{buildroot}/usr/lib/systemd/system/emulator.target.wants/emuld.service
 
-# for license
-mkdir -p %{buildroot}/usr/share/license
-cp LICENSE %{buildroot}/usr/share/license/%{name}
-cp LICENSE %{buildroot}/usr/share/license/libemuld
-
 %make_install
 
 %clean
@@ -104,14 +99,14 @@ chmod 770 %{_prefix}/bin/emuld
 %defattr(-,root,root,-)
 %manifest emuld.manifest
 %{_prefix}/bin/emuld
-/usr/share/license/%{name}
+%license LICENSE
 /usr/lib/systemd/system/emuld.service
 /usr/lib/systemd/system/emulator.target.wants/emuld.service
 
 %files -n libemuld
 %defattr(-,root,root,-)
 %manifest libemuld.manifest
-/usr/share/license/libemuld
+%license LICENSE
 %{_libdir}/libemuld.so*
 
 %files -n libemuld-devel