packaging: Intitial packaging for Tizen
authorAnas Nashif <anas.nashif@intel.com>
Tue, 30 Oct 2012 20:58:58 +0000 (13:58 -0700)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Mon, 8 Dec 2014 12:27:09 +0000 (13:27 +0100)
Change-Id: Iaba7c263da4ef05284cbd4f159a14911f78a146b
Author:    Anas Nashif <anas.nashif@intel.com>

packaging/baselibs.conf [new file with mode: 0644]
packaging/c-ares.spec [new file with mode: 0644]

diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf
new file mode 100644 (file)
index 0000000..2ae68fa
--- /dev/null
@@ -0,0 +1 @@
+libcares
diff --git a/packaging/c-ares.spec b/packaging/c-ares.spec
new file mode 100644 (file)
index 0000000..29ae92e
--- /dev/null
@@ -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