Fixed build error 18/95418/1 accepted/tizen/3.0/base/20161104.104345 submit/tizen_3.0_base/20161103.074103
authorchleun.moon <chleun.moon@samsung.com>
Thu, 3 Nov 2016 07:34:39 +0000 (16:34 +0900)
committerchleun.moon <chleun.moon@samsung.com>
Thu, 3 Nov 2016 07:34:54 +0000 (16:34 +0900)
Change-Id: I00e6ac85101d53923cb9464dfa43af5c67563c21
Signed-off-by: cheoleun <chleun.moon@samsung.com>
COPYING [new file with mode: 0644]
packaging/LICENSE [new file with mode: 0644]
packaging/c-ares.spec

diff --git a/COPYING b/COPYING
new file mode 100644 (file)
index 0000000..e3f5b64
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,10 @@
+Copyright 1998 by the Massachusetts Institute of Technology.
+
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted, 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 M.I.T. not be used in advertising or publicity pertaining to
+distribution of the software without specific, written prior permission.
+M.I.T. makes no representations about the suitability of this software for any
+purpose.  It is provided "as is" without express or implied warranty.
diff --git a/packaging/LICENSE b/packaging/LICENSE
new file mode 100644 (file)
index 0000000..e3f5b64
--- /dev/null
@@ -0,0 +1,10 @@
+Copyright 1998 by the Massachusetts Institute of Technology.
+
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted, 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 M.I.T. not be used in advertising or publicity pertaining to
+distribution of the software without specific, written prior permission.
+M.I.T. makes no representations about the suitability of this software for any
+purpose.  It is provided "as is" without express or implied warranty.
index a44ce71..dac7494 100644 (file)
@@ -7,6 +7,7 @@ Group:          Development/Libraries/C and C++
 Source:         http://daniel.haxx.se/projects/c-ares/%{name}-%{version}.tar.bz2
 Source2:        baselibs.conf
 Source1001:    c-ares.manifest
+Source1002:    LICENSE
 BuildRequires:  pkg-config
 BuildRequires:  libtool
 Url:            http://daniel.haxx.se/projects/c-ares
@@ -39,6 +40,7 @@ by Greg Hudson at MIT.
 %prep
 %setup -q -n %{name}-%{version}
 cp %{SOURCE1001} .
+cp %{SOURCE1002} .
 
 %build
 autoreconf -fiv
@@ -48,8 +50,8 @@ make %{?_smp_mflags}
 
 %install
 %make_install
-mkdir -p %{buildroot}/usr/share/license
-cp LICENSE %{buildroot}/usr/share/license/%{name}
+#mkdir -p %{buildroot}/usr/share/license
+#cp LICENSE %{buildroot}/usr/share/license/%{name}
 
 %post -p /sbin/ldconfig -n libcares
 
@@ -57,14 +59,15 @@ cp LICENSE %{buildroot}/usr/share/license/%{name}
 
 %files -n libcares
 %manifest %{name}.manifest
+%license LICENSE
 %defattr(-,root,root)
 %{_libdir}/libcares.so.2*
 
 %files -n libcares-devel
 %manifest %{name}.manifest
+%license LICENSE
 %defattr(-,root,root)
 %{_libdir}/libcares.so
 %{_includedir}/*.h
 %{_mandir}/man3/ares_*
 %{_libdir}/pkgconfig/libcares.pc
-/usr/share/license/%{name}