Add MIT License file.
authorMun, Gwan-gyeong <kk.moon@samsung.com>
Tue, 29 Mar 2016 13:59:01 +0000 (22:59 +0900)
committerMun, Gwan-gyeong <kk.moon@samsung.com>
Tue, 29 Mar 2016 13:59:01 +0000 (22:59 +0900)
Modify spec file for installing license files.

Change-Id: Ida19907e299b6fddbb35d667738bb278ccb49456

COPYING [new file with mode: 0644]
packaging/vulkan-wsi-tizen.spec

diff --git a/COPYING b/COPYING
new file mode 100644 (file)
index 0000000..70d517d
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,19 @@
+Copyright (C) 2000 - 2016 Samsung Electronics co., Ltd. All Rights Reserved.
+
+Permission to use, copy, modify, distribute, and sell this software and its
+documentation for any purpose is hereby granted without fee, provided that
+the above copyright notice appear in all copies and that both that copyright
+notice and this permission notice appear in supporting documentation, and
+that the name of the copyright holders not be used in advertising or
+publicity pertaining to distribution of the software without specific,
+written prior permission.  The copyright holders make no representations
+about the suitability of this software for any purpose.  It is provided "as
+is" without express or implied warranty.
+
+THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
+INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
+EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
+DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
+OF THIS SOFTWARE.
index 3619d4a..59923dd 100644 (file)
@@ -11,6 +11,8 @@ BuildRequires: autoconf > 2.64
 BuildRequires: automake >= 1.11
 BuildRequires: libtool >= 2.2
 
+%global TZ_SYS_RO_SHARE  %{?TZ_SYS_RO_SHARE:%TZ_SYS_RO_SHARE}%{!?TZ_SYS_RO_SHARE:/usr/share}
+
 %description
 Vulkan WSI (Window System Integration) Layer for Tizen
 
@@ -23,8 +25,11 @@ make %{?_smp_mflags}
 
 %install
 %make_install
+mkdir -p %{buildroot}/%{TZ_SYS_RO_SHARE}/license
+cp -a %{_builddir}/%{buildsubdir}/COPYING %{buildroot}/%{TZ_SYS_RO_SHARE}/license/%{name}
 
 %files -n %{name}
+%{TZ_SYS_RO_SHARE}/license/%{name}
 %defattr(-,root,root,-)
 %{_libdir}/vulkan/vulkan-wsi-tizen.so
 /etc/vulkan/icd.d/vulkan-wsi-tizen.json