diff --git a/.cvsignore b/.cvsignore index e69de29..d41ab33 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +libasyncns-0.4.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..d21c605 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +libasyncns-0_4-1_fc10:HEAD:libasyncns-0.4-1.fc10.src.rpm:1217267383 diff --git a/libasyncns.spec b/libasyncns.spec new file mode 100644 index 0000000..b66145b --- /dev/null +++ b/libasyncns.spec @@ -0,0 +1,55 @@ +Name: libasyncns +Version: 0.4 +Release: 1%{?dist} +Summary: Asynchronous Name Service Library +Group: System Environment/Libraries +Source0: http://0pointer.de/lennart/projects/libasyncns/libasyncns-%{version}.tar.gz +License: LGPLv2+ +Url: http://0pointer.de/lennart/projects/libasyncns/ +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +%description +A small and lightweight library that implements easy to use asynchronous +wrappers around the libc NSS functions getaddrinfo(), res_query() and related. + +%package devel +Summary: Development Files for libasyncns Client Development +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig + +%description devel +Development Files for libasyncns Client Development + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%prep +%setup -q + +%build +%configure --disable-static --disable-rpath +make + +%install +rm -rf $RPM_BUILD_ROOT +make DESTDIR=$RPM_BUILD_ROOT install +find $RPM_BUILD_ROOT \( -name *.a -o -name *.la \) -exec rm {} \; + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%doc README LICENSE +%{_libdir}/libasyncns.so.* + +%files devel +%defattr(-,root,root) +%{_includedir}/asyncns.h +%{_libdir}/libasyncns.so +%{_libdir}/pkgconfig/libasyncns.pc + +%changelog +* Sun Jul 27 2008 Lennart Poettering 0.4-1 +- Initial packaging diff --git a/sources b/sources index e69de29..e48bdeb 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +bbe2f584320ccd6c32e5113845ce814e libasyncns-0.4.tar.gz