Add license file into rpm package tizen_2.2 2.2.1_release submit/tizen_2.2/20131029.075152
authorJae-young Hwang <j-zero.hwang@samsung.com>
Wed, 25 Sep 2013 08:20:11 +0000 (17:20 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Fri, 27 Sep 2013 02:39:35 +0000 (02:39 +0000)
License file must be included in Tizen SDK release binary
because Tizen SDK license is deleted.

Change-Id: I5b537a5ec735a4ab4f7b3d43356818c1f7a662c2
Signed-off-by: Jae-young Hwang <j-zero.hwang@samsung.com>
packaging/bzip2.spec

index 4bb0853..ada5869 100755 (executable)
@@ -60,6 +60,9 @@ make CC="%{__cc}" AR=%{__ar} RANLIB=%{__ranlib} \
 
 %install
 rm -rf ${RPM_BUILD_ROOT}
+# license
+mkdir -p %{buildroot}/usr/share/license
+cp LICENSE %{buildroot}/usr/share/license/%{name}
 
 chmod 644 bzlib.h
 mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,/%{_lib},%{_libdir},%{_includedir}}
@@ -106,6 +109,7 @@ rm -rf ${RPM_BUILD_ROOT}
 %{_datadir}/license/%{name}
 %{_bindir}/*
 %doc %{_mandir}/*/*
+/usr/share/license/%{name}
 
 %files libs
 %defattr(-,root,root,-)