Update package spec file for license
authorZbigniew Kostrzewa <z.kostrzewa@samsung.com>
Fri, 27 Sep 2013 10:56:06 +0000 (12:56 +0200)
committerSoo-Hyun Choi <sh9.choi@samsung.com>
Mon, 30 Sep 2013 02:13:19 +0000 (02:13 +0000)
[Issue#]   LINUXWRT-927
[Problem]  Invalid/missing license file
[Cause]    N/A
[Solution] Update license file

[Verification]
    1. Build repository
    2. Install package on DUT
    3. Check whether license for this repository exists in
       /usr/share/license

Change-Id: I79bb6e22510af5a8c9e5dddbc80274e0f8b7a52a

packaging/libiri.spec

index febe452..67e33f6 100644 (file)
@@ -39,6 +39,9 @@ sh ./autogen.sh
 make %{?_smp_mflags}
 
 %install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}/usr/share/license
+cp LICENSE %{buildroot}/usr/share/license/%{name}
 %make_install
 
 
@@ -47,6 +50,7 @@ make %{?_smp_mflags}
 %manifest libiri.manifest
 %{_libdir}/*.so
 
+%{_datadir}/license/%{name}
 
 %files devel
 %{_libdir}/pkgconfig/*.pc