Added license file in pacakge
authorGangHeok Kim <gangheok.kim@samsung.com>
Fri, 27 Sep 2013 05:45:35 +0000 (14:45 +0900)
committerGangHeok Kim <gangheok.kim@samsung.com>
Fri, 27 Sep 2013 05:45:35 +0000 (14:45 +0900)
Change-Id: I675259c9079e0158a96cb327566034c98c15a6bc

LICENSE.MIT [new file with mode: 0644]
packaging/c-ares.manifest [moved from c-ares.manifest with 98% similarity]
packaging/c-ares.spec

diff --git a/LICENSE.MIT b/LICENSE.MIT
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.
similarity index 98%
rename from c-ares.manifest
rename to packaging/c-ares.manifest
index 81ace0c..97e8c31 100644 (file)
@@ -3,4 +3,3 @@
                <domain name="_"/>
        </request>
 </manifest>
-
index a88c58d..7e202ac 100644 (file)
@@ -1,11 +1,14 @@
-#sbs-git:slp/pkgs/c/c-ares c-ares 1.7.4 a598a0be73d9a97a303887c6e186d067256686eb
 Name:       c-ares
 Summary:    library for asynchronous name resolves (development files)
 Version: 1.7.4
 Release:    2
-Group:      TO_BE_FILLED
-License:    TO_BE_FILLED
+Group:      System/Libraries
+License:    MIT
 Source0:    %{name}-%{version}.tar.gz
+Source1001: c-ares.manifest
+BuildRequires:  pkgconfig(dbus-glib-1)
+BuildRequires:  pkgconfig(dlog)
+BuildRequires:  pkgconfig(vconf)
 
 BuildRequires:  cmake
 BuildRequires:  gettext-devel
@@ -16,7 +19,7 @@ library for asynchronous name resolves (development files)
 
 %package devel 
 Summary:    library for asynchronous name resolves (development files) (Developement)
-Group:      TO_BE_FILLED 
+Group:      Development/Languages
 Requires:   %{name} = %{version}-%{release}
 
 %description devel
@@ -24,29 +27,28 @@ library for asynchronous name resolves (development files) (Developement)
 
 %prep
 %setup -q
+cp %{SOURCE1001} .
 
 %build
 ./buildconf
 ./configure --prefix=/usr --enable-shared --enable-symbol-hiding
-make %{?jobs:-j%jobs}
+make %{?_smp_flags}
 
 %install
-rm -rf %{buildroot}
 %make_install
-%remove_docs
-%post
 
-%postun
+%remove_docs
 
+mkdir -p %{buildroot}/usr/share/license
+cp %{_builddir}/%{buildsubdir}/LICENSE.MIT %{buildroot}/usr/share/license/%{name}
 
 %files
-%manifest c-ares.manifest
-%defattr(-,root,root,-)
+%manifest %{name}.manifest
+/usr/share/license/%{name}
 /usr/lib/libcares.so.2
 /usr/lib/libcares.so.2.0.0
 
 %files devel 
-%defattr(-,root,root,-)
 /usr/include/*.h
 /usr/lib/libcares.so
 /usr/lib/pkgconfig/libcares.pc