1 Summary: Advanced, easy to use, asynchronous-capable DNS client library
2 Summary(pl): Zaawansowana, prosta w u¿yciu, asynchroniczna biblioteka kliencka DNS
12 Group(pt_BR): Bibliotecas
15 Source0: ftp://ftp.chiark.greenend.org.uk/users/ian/adns/%{name}-%{version}.tar.gz
16 Patch0: %{name}-DESTDIR.patch
17 Patch1: %{name}-ac_fix.patch
18 URL: http://www.chiark.greenend.org.uk/~ian/adns/
19 BuildRequires: autoconf
20 BuildRequires: automake
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 adns is a resolver library for C (and C++) programs. In contrast with
25 the existing interfaces, gethostbyname et al and libresolv, it has the
27 - It is reasonably easy to use for simple programs which just want to
28 translate names to addresses, look up MX records, etc.
29 - It can be used in an asynchronous, non-blocking, manner. Many
30 queries can be handled simultaneously.
31 - Responses are decoded automatically into a natural representation
32 for a C program - there is no need to deal with DNS packet formats.
33 - Sanity checking (eg, name syntax checking, reverse/forward
34 correspondence, CNAME pointing to CNAME) is performed automatically.
35 - Time-to-live, CNAME and other similar information is returned in an
36 easy-to-use form, without getting in the way.
37 - There is no global state in the library; resolver state is an opaque
38 data structure which the client creates explicitly. A program can have
39 several instances of the resolver.
40 - Errors are reported to the application in a way that distinguishes
41 the various causes of failure properly.
42 - Understands conventional resolv.conf, but this can overridden by
43 environment variables.
44 - Flexibility. For example, the application can tell adns to: ignore
45 environment variables (for setuid programs), disable sanity checks eg
46 to return arbitrary data, override or ignore resolv.conf in favour of
47 supplied configuration, etc.
48 - Believed to be correct ! For example, will correctly back off to TCP
49 in case of long replies or queries, or to other nameservers if several
50 are available. It has sensible handling of bad responses etc.
53 adns jest bibliotek± rozwi±zywania nazw dla programów w C (i C++). W
54 przeciwieñstwie do pozosta³ych interfejsów - gethostbyname itd. oraz
55 libresolv, ma nastêpuj±ce mo¿liwo¶ci:
56 - Jest ³atwa w u¿yciu dla prostych programów, które maj± tylko
57 t³umaczyæ nazwy na adresy, szukaæ rekordów MX itp.
58 - Mo¿e byæ u¿ywana w sposób asynchroniczny, nieblokuj±cy; wiele
59 zapytañ mo¿e byæ obs³ugiwanych jednocze¶nie.
60 - Odpowiedzi s± dekodowane automatycznie do reprezentacji naturalnej
61 dla programów w C - nie trzeba obs³ugiwaæ formatów pakietów DNS
62 - Sprawdzanie poprawno¶ci (sk³adni, zgodno¶ci rekordów odwrotnych i
63 prostych, CNAME wskazuj±cych na CNAME) jest automatyczne.
64 - TTL, CNAME i podobne informacje s± zwracane w postaci ³atwej do
66 - Nie ma globalnego stanu w bibliotece; stan resolvera jest struktur±
67 danych tworzon± przez klienta. Program mo¿e trzymaæ wiele intancji
69 - B³êdy s± zg³aszane aplikacji w sposób rozró¿niaj±cy przyczyny.
70 - Rozumie konwencjonalny plik resolv.conf, ale to mo¿e byæ zmienione
71 przez zmienne ¶rodowiskowe.
72 - Konfigurowalno¶æ. Na przyk³ad aplikacja mo¿e kazaæ adns: ignorowaæ
73 zmienne ¶rodowiskowe (dla programów setuid), wy³±czyæ sprawdzanie
74 poprawno¶ci, zignorowaæ resolv.conf na rzecz w³asnej konfiguracji.
75 - Podobno jest poprawna! Na przyk³ad, prawid³owo prze³±cza siê na TCP
76 w przypadku d³ugich zapytañ lub odpowiedzi, albo na inne serwery je¶li
77 jest kilka dostêpnych. Ma rozs±dn± obs³ugê z³ych odpowiedzi.
80 Summary: Asynchronous-capable DNS client library - development files
81 Summary(pl): Asynchroniczna biblioteka kliencka DNS - pliki dla programistów
82 Group: Development/Libraries
83 Group(de): Entwicklung/Libraries
84 Group(es): Desarrollo/Bibliotecas
85 Group(fr): Development/Librairies
86 Group(pl): Programowanie/Biblioteki
87 Group(pt_BR): Desenvolvimento/Bibliotecas
88 Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
89 Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
90 Requires: %{name} = %{version}
93 Asynchronous-capable DNS client library - development files.
95 %description devel -l pl
96 Asynchroniczna biblioteka kliencka DNS - pliki dla programistów.
99 Summary: Asynchronous-capable DNS client library - static library
100 Summary(pl): Asynchroniczna biblioteka kliencka DNS - wersja statyczna
101 Group: Development/Libraries
102 Group(de): Entwicklung/Libraries
103 Group(es): Desarrollo/Bibliotecas
104 Group(fr): Development/Librairies
105 Group(pl): Programowanie/Biblioteki
106 Group(pt_BR): Desenvolvimento/Bibliotecas
107 Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
108 Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
109 Requires: %{name} = %{version}
112 Asynchronous-capable DNS client library - static library.
114 %description static -l pl
115 Asynchroniczna biblioteka kliencka DNS - biblioteka statyczna.
118 Summary: Asynchronous-capable DNS client library - utility programs
119 Summary(pl): Asynchroniczna biblioteka kliencka DNS - narzêdzia
120 Group: Development/Libraries
121 Group(de): Entwicklung/Libraries
122 Group(es): Desarrollo/Bibliotecas
123 Group(fr): Development/Librairies
124 Group(pl): Programowanie/Biblioteki
125 Group(pt_BR): Desenvolvimento/Bibliotecas
126 Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
127 Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
128 Requires: %{name} = %{version}
131 DNS utility programs: adns also comes with a number of utility
132 programs for use from the command line and in scripts:
133 - adnslogres is a much faster version of Apache's logresolv program,
134 - adnsresfilter is a filter which copies its input to its output,
135 replacing IP addresses by the corresponding names, without unduly
136 delaying the output. For example, you can usefully pipe the output of
137 netstat -n, tcpdump -ln, and the like, into it.
138 - adnshost is a general-purpose DNS lookup utility which can be used
139 easily in from the command line and from shell scripts to do simple
140 lookups. In a more advanced mode it can be used as a general-purpose
141 DNS helper program for scripting languages which can invoke and
142 communicate with subprocesses.
144 %description progs -l pl
145 Narzêdzia DNS: adns przychodzi z paroma programami narzêdziowymi do
146 u¿ytku z linii poleceñ lub w skryptach:
147 - adnslogres to o wiele szybsza wersja programu logresolv z Apache
148 - adnsresfilter to filtr kopiuj±cy wej¶cie na wyj¶cie zamieniaj±c
149 adresy IP na nazwy, bez niepotrzebnych opó¼nieñ. Na przyk³ad mo¿esz na
150 werj¶cie wpu¶ciæ wyj¶cie z netstat -n, tcpdump -ln itp.
151 - adnshost to ogólnego przeznaczenia narzêdzie do odpytywania DNS,
152 proste w u¿yciu z linii poleceñ i skryptów pow³oki.
167 rm -rf $RPM_BUILD_ROOT
170 DESTDIR=$RPM_BUILD_ROOT
172 ln -sf libadns.so.1.0 $RPM_BUILD_ROOT%{_libdir}/libadns.so
174 gzip -9nf README TODO changelog
177 rm -fr $RPM_BUILD_ROOT
179 %post -p /sbin/ldconfig
180 %postun -p /sbin/ldconfig
183 %defattr(644,root,root,755)
185 %attr(755,root,root) %{_libdir}/lib*.so.*.*
188 %defattr(644,root,root,755)
190 %attr(755,root,root) %{_libdir}/lib*.so
193 %defattr(644,root,root,755)
197 %defattr(644,root,root,755)
198 %attr(755,root,root) %{_bindir}/*