]> git.pld-linux.org Git - packages/adns.git/blob - adns.spec
perl -pi -e "s/pld-list\@pld.org.pl/feedback\@pld.org.pl/"
[packages/adns.git] / adns.spec
1 Summary:        Advanced, easy to use, asynchronous-capable DNS client library
2 Summary(pl):    Zaawansowana, prosta w u¿yciu, asynchroniczna biblioteka kliencka DNS
3 Name:           adns
4 Version:        1.0
5 Release:        2
6 License:        GPL
7 Group:          Libraries
8 Group(de):      Libraries
9 Group(es):      Bibliotecas
10 Group(fr):      Librairies
11 Group(pl):      Biblioteki
12 Group(pt_BR):   Bibliotecas
13 Group(ru):      âÉÂÌÉÏÔÅËÉ
14 Group(uk):      â¦Â̦ÏÔÅËÉ
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)
22
23 %description
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
26 following features:
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.
51
52 %description -l pl
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
65    wykorzystania
66  - Nie ma globalnego stanu w bibliotece; stan resolvera jest struktur±
67    danych tworzon± przez klienta. Program mo¿e trzymaæ wiele intancji
68    resolvera.
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.
78
79 %package devel
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}
91
92 %description devel
93 Asynchronous-capable DNS client library - development files.
94
95 %description devel -l pl
96 Asynchroniczna biblioteka kliencka DNS - pliki dla programistów.
97
98 %package static
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}
110
111 %description static
112 Asynchronous-capable DNS client library - static library.
113
114 %description static -l pl
115 Asynchroniczna biblioteka kliencka DNS - biblioteka statyczna.
116
117 %package progs
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}
129
130 %description progs
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.
143
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.
153
154 %prep
155 %setup -q
156 %patch0 -p1
157 %patch1 -p1
158
159 %build
160 aclocal
161 autoconf
162 %configure \
163         --enable-dynamic
164 %{__make}
165
166 %install
167 rm -rf $RPM_BUILD_ROOT
168
169 %{__make} install \
170         DESTDIR=$RPM_BUILD_ROOT
171
172 ln -sf libadns.so.1.0 $RPM_BUILD_ROOT%{_libdir}/libadns.so
173
174 gzip -9nf README TODO changelog
175  
176 %clean
177 rm -fr $RPM_BUILD_ROOT
178
179 %post   -p /sbin/ldconfig
180 %postun -p /sbin/ldconfig
181
182 %files
183 %defattr(644,root,root,755)
184 %doc *.gz
185 %attr(755,root,root) %{_libdir}/lib*.so.*.*
186
187 %files devel
188 %defattr(644,root,root,755)
189 %{_includedir}/*
190 %attr(755,root,root) %{_libdir}/lib*.so
191
192 %files static
193 %defattr(644,root,root,755)
194 %{_libdir}/*.a
195
196 %files progs
197 %defattr(644,root,root,755)
198 %attr(755,root,root) %{_bindir}/*
This page took 0.579358 seconds and 3 git commands to generate.