3 %bcond_with dotnet # build with dotnet bindings
5 Summary: Free mDNS/DNS-SD implementation
6 Summary(pl): Wolna implementacja mDNS/DNS-SD
12 Source0: http://avahi.org/download/%{name}-%{version}.tar.gz
13 # Source0-md5: 4cfb24b5c9063180f9eee2ef30beac53
14 Source1: %{name}-daemon
15 Source2: %{name}-dnsconfd
17 Patch0: %{name}-desktop.patch
18 Patch1: %{name}-glade.patch
19 URL: http://avahi.org/
20 BuildRequires: autoconf
21 BuildRequires: automake
22 BuildRequires: dbus-devel >= 0.34
23 BuildRequires: doxygen
24 BuildRequires: expat-devel
25 BuildRequires: gdbm-devel
26 BuildRequires: glib2-devel >= 1:2.4.0
27 BuildRequires: graphviz
28 BuildRequires: gtk+2-devel >= 2:2.4.0
29 BuildRequires: libdaemon-devel >= 0.5
30 BuildRequires: libglade2-devel >= 2.4.0
31 BuildRequires: libtool
34 BuildRequires: monodoc
36 BuildRequires: python-dbus
37 BuildRequires: python-pygtk-devel
38 BuildRequires: qt-devel
39 BuildRequires: rpmbuild(macros) >= 1.228
40 Requires(post,preun): /sbin/chkconfig
41 Requires: dbus >= 0.60-2
42 Requires: %{name}-libs = %{version}-%{release}
43 Provides: group(avahi)
45 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48 Avahi is an implementation the DNS Service Discovery and Multicast DNS
49 specifications for Zeroconf Computing. It uses D-BUS for communication
50 between user applications and a system daemon.
53 Avahi jest implementacj± specyfikacji DNS Service Discovery i
54 Multicast DNS dla Zeroconf Computing. U¿ywa D-BUSa dla komunikacji
55 pomiêdzy programami u¿ytkownika a demonem systemowym.
58 Summary: Avahi client, common and core libraries
59 Summary(pl): Biblioteki Avahi: klienta, wspólna i g³ówna
63 Avahi client, common and core libraries.
65 %description libs -l pl
66 Biblioteki Avahi: klienta, wspólna i g³ówna.
69 Summary: Header files for Avahi library
70 Summary(pl): Pliki nag³ówkowe biblioteki Avahi
71 Group: Development/Libraries
72 Requires: %{name}-libs = %{version}-%{release}
74 Requires: libdaemon-devel >= 0.5
77 This is the package containing the header files for Avahi library.
79 %description devel -l pl
80 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi.
83 Summary: Static Avahi library
84 Summary(pl): Statyczna biblioteka Avahi
85 Group: Development/Libraries
86 Requires: %{name}-devel = %{version}-%{release}
91 %description static -l pl
92 Statyczna biblioteka Avahi.
94 %package compat-libdns_sd
95 Summary: Avahi Bonjour compat library
96 Summary(pl): Biblioteka Avahi zgodna z Bonjour
99 %description compat-libdns_sd
100 Avahi Bonjour compat library.
102 %description compat-libdns_sd -l pl
103 Biblioteka Avahi zgodna z Bonjour.
105 %package compat-libdns_sd-devel
106 Summary: Header files for Avahi Bonjour compat library
107 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Bonjour
108 Group: Development/Libraries
109 Requires: %{name}-compat-libdns_sd = %{version}-%{release}
111 %description compat-libdns_sd-devel
112 Header files for Avahi Bonjour compat library.
114 %description compat-libdns_sd-devel -l pl
115 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Bonjour.
117 %package compat-libdns_sd-static
118 Summary: Static Avahi Bonjour compat library
119 Summary(pl): Statyczna biblioteka Avahi zgodna z Bonjour
120 Group: Development/Libraries
121 Requires: %{name}-libdns_sd-devel = %{version}-%{release}
123 %description compat-libdns_sd-static
124 Static Avahi Bonjour compat library.
126 %description compat-libdns_sd-static -l pl
127 Statyczna biblioteka Avahi zgodna z Bonjour.
130 Summary: Avahi GLib library bindings
131 Summary(pl): Wi±zania Avahi dla bibioteki GLib
135 Avahi GLib library bindings.
137 %description glib -l pl
138 Wi±zania Avahi dla bibioteki GLib.
141 Summary: Header files for Avahi GLib library bindings
142 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki GLib
143 Group: Development/Libraries
144 Requires: %{name}-devel = %{version}-%{release}
145 Requires: %{name}-glib = %{version}-%{release}
146 Requires: glib2-devel >= 1:2.4.0
148 %description glib-devel
149 This is the package containing the header files for Avahi-glib
152 %description glib-devel -l pl
153 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi-glib.
156 Summary: Static Avahi GLib library
157 Summary(pl): Statyczna biblioteka Avahi GLib
158 Group: Development/Libraries
159 Requires: %{name}-glib-devel = %{version}-%{release}
161 %description glib-static
162 Static Avahi GLib library.
164 %description glib-static -l pl
165 Statyczna biblioteka Avahi GLib.
168 Summary: Avahi Qt 3 library bindings
169 Summary(pl): Wi±zania Avahi dla biblioteki Qt 3
171 Requires: %{name}-libs = %{version}-%{release}
174 Avahi Qt 3 library bindings.
176 %description qt3 -l pl
177 Wi±zania Avahi dla biblioteki Qt 3.
180 Summary: Header files for Avahi Qt 3 library bindings
181 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3
182 Group: Development/Libraries
183 Requires: %{name}-devel = %{version}-%{release}
184 Requires: %{name}-qt3 = %{version}-%{release}
187 %description qt3-devel
188 Header files for Avahi Qt 3 library bindings.
190 %description qt3-devel -l pl
191 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3.
194 Summary: Static Avahi Qt 3 library
195 Summary(pl): Statyczna biblioteka Avahi Qt 3
196 Group: Development/Libraries
197 Requires: %{name}-qt3-devel = %{version}-%{release}
199 %description qt3-static
200 Static Avahi Qt 3 library.
202 %description qt3-static -l pl
203 Statyczna biblioteka Avahi Qt 3.
205 %package -n dotnet-avahi
206 Summary: Avahi MONO bindings
207 Summary(pl): Wi±zania Avahi dla MONO
210 %description -n dotnet-avahi
213 %description -n dotnet-avahi -l pl
214 Wi±zania Avahi dla MONO.
216 %package -n dotnet-avahi-devel
217 Summary: Development files for MONO Avahi bindings
218 Summary(pl): Pliki rozwojowe wi±zañ Avahi dla MONO
219 Group: Development/Libraries
220 Requires: dotnet-avahi = %{version}-%{release}
223 %description -n dotnet-avahi-devel
224 Development files for MONO Avahi bindings.
226 %description -n dotnet-avahi-devel -l pl
227 Pliki rozwojowe wi±zañ Avahi dla MONO.
230 Summary: Miniature web server
231 Summary(pl): Miniaturowy serwer web
234 %description bookmarks
235 A Python based miniature web server that browses for mDNS/DNS-SD
236 services of type '_http._tcp' (i.e. web sites) and makes them
237 available as HTML links on http://localhost:8080.
239 %description bookmarks -l pl
240 Napisany w Pythonie miniaturowy serwer web, pozwalaj±cy na
241 przegl±danie us³ug typu '_http._tcp' (np. stron web) i udostêpniaj±cy
242 je jako linki HTML na http://localhost:8080.
245 Summary: Avahi Zeroconf browser
246 Summary(pl): Przegl±darka Zeroconf Avahi
249 %description discover
250 A tool for enumerating all available services on the local LAN
251 (python-pygtk implementation).
253 %description discover -l pl
254 Narzêdzie wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej LAN
255 (implementacja w python-pygtk).
257 %package discover-standalone
258 Summary: Avahi Zeroconf browser
259 Summary(pl): Przegl±darka Zeroconf Avahi
262 %description discover-standalone
263 GTK+ tool for enumerating all available services on the local LAN.
265 %description discover-standalone -l pl
266 Narzêdzie GTK+ wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej
270 Summary: Avahi CLI utilities
271 Summary(pl): Narzêdzia CLI Avahi
275 Command line utilities using avahi-client.
277 %description utils -l pl
278 Narzêdzia linii poleceñ korzystaj±ce z avahi-client.
287 %{__aclocal} -I common
292 --enable-compat-libdns_sd \
295 %{!?with_dotnet:--disable-mono} \
296 %{!?with_dotnet:--disable-monodoc}
300 rm -rf $RPM_BUILD_ROOT
301 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d}
304 DESTDIR=$RPM_BUILD_ROOT \
305 pythondir=%{py_sitedir}
307 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
308 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
310 ln -sf %{_includedir}/avahi-compat-libdns_sd/dns_sd.h \
311 $RPM_BUILD_ROOT%{_includedir}/dns_sd.h
313 rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/{__init__,SimpleGladeApp}.py
316 rm -rf $RPM_BUILD_ROOT
319 %groupadd -g 165 -r -f avahi
320 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
323 /sbin/chkconfig --add %{name}-daemon
324 %service %{name}-daemon restart
325 /sbin/chkconfig --add %{name}-dnsconfd
326 %service %{name}-dnsconfd restart
329 if [ "$1" = "0" ]; then
330 %service -q %{name}-dnsconfd stop
331 /sbin/chkconfig --del %{name}-dnsconfd
332 %service -q %{name}-daemon stop
333 /sbin/chkconfig --del %{name}-daemon
337 if [ "$1" = "0" ]; then
342 %post libs -p /sbin/ldconfig
343 %postun libs -p /sbin/ldconfig
345 %post compat-libdns_sd -p /sbin/ldconfig
346 %postun compat-libdns_sd -p /sbin/ldconfig
348 %post glib -p /sbin/ldconfig
349 %postun glib -p /sbin/ldconfig
351 %post qt3 -p /sbin/ldconfig
352 %postun qt3 -p /sbin/ldconfig
355 %defattr(644,root,root,755)
356 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
358 %dir %{_sysconfdir}/avahi
359 %dir %{_sysconfdir}/avahi/services
360 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
361 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-dnsconfd.action
362 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/hosts
363 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
364 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
366 %attr(755,root,root) %{_bindir}/avahi-browse
367 %attr(755,root,root) %{_bindir}/avahi-publish
368 %attr(755,root,root) %{_bindir}/avahi-resolve
370 %attr(755,root,root) %{_sbindir}/avahi-daemon
371 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
373 %dir %{_datadir}/%{name}
374 %dir %{_datadir}/%{name}/introspection
375 %{_datadir}/%{name}/introspection/*.introspect
376 %{_datadir}/%{name}/avahi-service.dtd
377 %{_datadir}/%{name}/service-types
378 %{_datadir}/%{name}/service-types.db
382 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
383 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
386 %defattr(644,root,root,755)
387 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
388 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
389 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
392 %defattr(644,root,root,755)
393 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
394 %attr(755,root,root) %{_libdir}/libavahi-client.so
395 %attr(755,root,root) %{_libdir}/libavahi-common.so
396 %attr(755,root,root) %{_libdir}/libavahi-core.so
397 %{_libdir}/libavahi-client.la
398 %{_libdir}/libavahi-common.la
399 %{_libdir}/libavahi-core.la
400 %{_includedir}/avahi-client
401 %{_includedir}/avahi-common
402 %{_includedir}/avahi-core
403 %{_pkgconfigdir}/avahi-client.pc
404 %{_pkgconfigdir}/avahi-core.pc
407 %defattr(644,root,root,755)
408 %{_libdir}/libavahi-client.a
409 %{_libdir}/libavahi-common.a
410 %{_libdir}/libavahi-core.a
412 %files compat-libdns_sd
413 %defattr(644,root,root,755)
414 %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.*
416 %files compat-libdns_sd-devel
417 %defattr(644,root,root,755)
418 %attr(755,root,root) %{_libdir}/libdns_sd.so
419 %{_libdir}/libdns_sd.la
420 %{_includedir}/avahi-compat-libdns_sd
421 %{_includedir}/dns_sd.h
422 %{_pkgconfigdir}/avahi-compat-libdns_sd.pc
424 %files compat-libdns_sd-static
425 %defattr(644,root,root,755)
426 %{_libdir}/libdns_sd.a
429 %files -n dotnet-avahi
430 %defattr(644,root,root,755)
431 %{_prefix}/lib/mono/gac/avahi-sharp
433 %files -n dotnet-avahi-devel
434 %defattr(644,root,root,755)
435 %{_prefix}/lib/monodoc/sources/avahi-*
436 %{_pkgconfigdir}/*.pc
440 %defattr(644,root,root,755)
441 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
444 %defattr(644,root,root,755)
445 %attr(755,root,root) %{_libdir}/libavahi-glib.so
446 %{_libdir}/libavahi-glib.la
447 %{_includedir}/avahi-glib
448 %{_pkgconfigdir}/avahi-glib.pc
451 %defattr(644,root,root,755)
452 %{_libdir}/libavahi-glib.a
455 %defattr(644,root,root,755)
456 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
459 %defattr(644,root,root,755)
460 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
461 %{_libdir}/libavahi-qt3.la
462 %{_includedir}/avahi-qt3
463 %{_pkgconfigdir}/avahi-qt3.pc
466 %defattr(644,root,root,755)
467 %{_libdir}/libavahi-qt3.a
470 %defattr(644,root,root,755)
471 %attr(755,root,root) %{_bindir}/avahi-bookmarks
474 %defattr(644,root,root,755)
475 %attr(755,root,root) %{_bindir}/avahi-discover
476 %{_datadir}/%{name}/interfaces/avahi-discover.glade
478 %{_desktopdir}/*.desktop
479 %{_pixmapsdir}/avahi.png
481 %files discover-standalone
482 %defattr(644,root,root,755)
483 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
484 %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade
487 %defattr(644,root,root,755)
488 %attr(755,root,root) %{_bindir}/avahi-browse
489 %attr(755,root,root) %{_bindir}/avahi-publish
490 %attr(755,root,root) %{_bindir}/avahi-resolve