Package: libasyncns
Version: 0.8
Revision: 1
Description: Async DNS resolver library
DescDetail: <<
	libasyncns is a C library for Linux/Unix for executing name service
	queries asynchronously. It is an asynchronous wrapper around
	getaddrinfo(3), getnameinfo(3), res_query(3) and res_search(3) from
	libc and libresolv.

	In contrast to GNU's asynchronous name resolving API getaddrinfo_a(),
	libasyncns does not make use of UNIX signals for reporting completion
	of name queries. Instead, the API exports a standard UNIX file
	descriptor which may be integerated cleanly into custom main loops.

	In contrast to asynchronous DNS resolving libraries like libdenise,
	skadns, adns, libasyncns is just an asynchronous wrapper around the
	libc's synchronous getaddrinfo() API, which has the advantage of
	allowing name resolution using techniques like Multicast DNS, LDAP or
	NIS using standard libc NSS (Name Service Switch) modules. libasyncns
	is compatible with IPv6 if the underlying libc is.

	libasyncns is very tiny, consisting of just one header and one source
	file. It has no dependencies besides libc.
<<
Homepage: http://0pointer.de/lennart/projects/libasyncns/
License: LGPL2+
Maintainer: Daniel Johnson <daniel@daniel-johnson.org>

Source: http://0pointer.de/lennart/projects/libasyncns/%n-%v.tar.gz
Source-Checksum: SHA256(4f1a66e746cbe54ff3c2fbada5843df4fbbbe7481d80be003e8d11161935ab74)

Depends: %N-shlibs (= %v-%r)
BuildDependsOnly: true

NoSetCPPFLAGS: true
NoSetLDFLAGS: true
SetLDFLAGS: -lresolv
SetCFLAGS: -DBIND_8_COMPAT

ConfigureParams: --disable-dependency-tracking --disable-static --disable-lynx F77=no

CompileScript: <<
	%{default_script} LDFLAGS_NOUNDEFINED=-no-undefined
<<

InstallScript: <<
	make install DESTDIR=%d
	#No need for dependency_libs in .la files if not building static libs
	perl -pi -e "s/dependency_libs=.*$/dependency_libs=''/" %i/lib/*.la
<<

DocFiles: LICENSE

SplitOff: <<
	Package: %N-shlibs
	
	Files: lib/libasyncns.*.dylib
	
	Shlibs: %p/lib/libasyncns.0.dylib 4.0.0 %n (>= 0.7-1)
	
	DocFiles: LICENSE
<<