summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-10-30 20:58:58 (GMT)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>2014-12-08 12:27:09 (GMT)
commit1551754819c981b44a3ace343202e7319befd2f5 (patch)
tree1a31d8627d584d87e54bd06b4efe33be08acd9a7
parent1c9d586a6b1540b79602ac48109d1e8c2e74c68e (diff)
downloadc-ares-1551754819c981b44a3ace343202e7319befd2f5.zip
c-ares-1551754819c981b44a3ace343202e7319befd2f5.tar.gz
c-ares-1551754819c981b44a3ace343202e7319befd2f5.tar.bz2
packaging: Intitial packaging for Tizen
Change-Id: Iaba7c263da4ef05284cbd4f159a14911f78a146b Author: Anas Nashif <anas.nashif@intel.com>
-rw-r--r--packaging/baselibs.conf1
-rw-r--r--packaging/c-ares.spec68
2 files changed, 69 insertions, 0 deletions
diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf
new file mode 100644
index 0000000..2ae68fa
--- /dev/null
+++ b/packaging/baselibs.conf
@@ -0,0 +1 @@
+libcares
diff --git a/packaging/c-ares.spec b/packaging/c-ares.spec
new file mode 100644
index 0000000..29ae92e
--- /dev/null
+++ b/packaging/c-ares.spec
@@ -0,0 +1,68 @@
+Url: http://daniel.haxx.se/projects/c-ares
+%define pkg_name c-ares
+
+Name: c-ares
+Version: 1.7.5
+Release: 1
+License: MIT
+Summary: Library for asynchronous name resolves
+Group: Development/Libraries/C and C++
+Source: http://daniel.haxx.se/projects/c-ares/%{pkg_name}-%{version}.tar.bz2
+Source2: baselibs.conf
+BuildRequires: pkg-config
+BuildRequires: libtool
+
+%description
+c-ares is a C library that performs DNS requests and name resolves
+asynchronously. c-ares is a fork of the library named 'ares', written
+by Greg Hudson at MIT.
+
+%package -n libcares
+Summary: Library for asynchronous name resolves
+Group: Development/Libraries/C and C++
+
+%description -n libcares
+c-ares is a C library that performs DNS requests and name resolves
+asynchronously. c-ares is a fork of the library named 'ares', written
+by Greg Hudson at MIT.
+
+%package -n libcares-devel
+Summary: Library for asynchronous name resolves
+Group: Development/Libraries/C and C++
+Requires: libcares = %{version}
+Requires: glibc-devel
+
+%description -n libcares-devel
+c-ares is a C library that performs DNS requests and name resolves
+asynchronously. c-ares is a fork of the library named 'ares', written
+by Greg Hudson at MIT.
+
+%prep
+%setup -q -n %{pkg_name}-%{version}
+
+%build
+autoreconf -fiv
+%configure --enable-symbol-hiding --enable-nonblocking --enable-shared --disable-static --with-pic
+sed -i -e 's@-g0@-g@g' Makefile
+make %{?_smp_mflags}
+
+%install
+make install DESTDIR=%{buildroot}
+rm -f %{buildroot}%{_libdir}/*.la
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files -n libcares
+%defattr(-,root,root)
+%{_libdir}/libcares.so.2*
+
+%files -n libcares-devel
+%defattr(-,root,root)
+%{_libdir}/libcares.so
+%{_includedir}/*.h
+%{_mandir}/man3/ares_*
+%{_libdir}/pkgconfig/libcares.pc
+
+%changelog