From 1551754819c981b44a3ace343202e7319befd2f5 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Tue, 30 Oct 2012 13:58:58 -0700 Subject: packaging: Intitial packaging for Tizen Change-Id: Iaba7c263da4ef05284cbd4f159a14911f78a146b Author: Anas Nashif --- packaging/baselibs.conf | 1 + packaging/c-ares.spec | 68 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 packaging/baselibs.conf create mode 100644 packaging/c-ares.spec 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 -- cgit v1.2.3