diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-10-30 13:58:58 -0700 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-11-07 09:58:01 -0800 |
commit | ecc507e47cad8a77c6baa3bb6204c179348185ae (patch) | |
tree | df606c442bebec98f34e95ea96e40a0220e276fb | |
parent | 8c8d79c34ba24c1be6871dfdca267746f626e56f (diff) | |
download | c-ares-ecc507e47cad8a77c6baa3bb6204c179348185ae.tar.gz c-ares-ecc507e47cad8a77c6baa3bb6204c179348185ae.tar.bz2 c-ares-ecc507e47cad8a77c6baa3bb6204c179348185ae.zip |
add packaging
-rw-r--r-- | packaging/baselibs.conf | 1 | ||||
-rw-r--r-- | packaging/c-ares.spec | 68 |
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 |