--- /dev/null
+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.
-#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
%package devel
Summary: library for asynchronous name resolves (development files) (Developement)
-Group: TO_BE_FILLED
+Group: Development/Languages
Requires: %{name} = %{version}-%{release}
%description devel
%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