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 >= 3.0
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 Howl compat library
131 Summary(pl): Biblioteka Avahi zgodna z Howl
133 Provides: mdns-howl-libs
136 %description compat-howl
137 Avahi Howl compat library.
139 %description compat-howl -l pl
140 Biblioteka Avahi zgodna z Howl.
142 %package compat-howl-devel
143 Summary: Header files for Avahi Howl compat library
144 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Howl
145 Group: Development/Libraries
146 Requires: %{name}-compat-howl = %{version}-%{release}
147 Provides: mdns-howl-devel
148 Obsoletes: howl-devel
150 %description compat-howl-devel
151 Header files for Avahi Howl compat library.
153 %description compat-howl-devel -l pl
154 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Howl.
156 %package compat-howl-static
157 Summary: Static Avahi Howl compat library
158 Summary(pl): Statyczna biblioteka Avahi zgodna z Howl
159 Group: Development/Libraries
160 Requires: %{name}-howl-devel = %{version}-%{release}
161 Provides: mdns-howl-static
162 Obsoletes: howl-static
164 %description compat-howl-static
165 Static Avahi Howl compat library.
167 %description compat-howl-static -l pl
168 Statyczna biblioteka Avahi zgodna z Howl.
171 Summary: Avahi GLib library bindings
172 Summary(pl): Wi±zania Avahi dla bibioteki GLib
176 Avahi GLib library bindings.
178 %description glib -l pl
179 Wi±zania Avahi dla bibioteki GLib.
182 Summary: Header files for Avahi GLib library bindings
183 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki GLib
184 Group: Development/Libraries
185 Requires: %{name}-devel = %{version}-%{release}
186 Requires: %{name}-glib = %{version}-%{release}
187 Requires: glib2-devel >= 1:2.4.0
189 %description glib-devel
190 This is the package containing the header files for Avahi-glib
193 %description glib-devel -l pl
194 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi-glib.
197 Summary: Static Avahi GLib library
198 Summary(pl): Statyczna biblioteka Avahi GLib
199 Group: Development/Libraries
200 Requires: %{name}-glib-devel = %{version}-%{release}
202 %description glib-static
203 Static Avahi GLib library.
205 %description glib-static -l pl
206 Statyczna biblioteka Avahi GLib.
209 Summary: Avahi Qt 3 library bindings
210 Summary(pl): Wi±zania Avahi dla biblioteki Qt 3
212 Requires: %{name}-libs = %{version}-%{release}
215 Avahi Qt 3 library bindings.
217 %description qt3 -l pl
218 Wi±zania Avahi dla biblioteki Qt 3.
221 Summary: Header files for Avahi Qt 3 library bindings
222 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3
223 Group: Development/Libraries
224 Requires: %{name}-devel = %{version}-%{release}
225 Requires: %{name}-qt3 = %{version}-%{release}
226 Requires: qt-devel >= 3.0
228 %description qt3-devel
229 Header files for Avahi Qt 3 library bindings.
231 %description qt3-devel -l pl
232 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3.
235 Summary: Static Avahi Qt 3 library
236 Summary(pl): Statyczna biblioteka Avahi Qt 3
237 Group: Development/Libraries
238 Requires: %{name}-qt3-devel = %{version}-%{release}
240 %description qt3-static
241 Static Avahi Qt 3 library.
243 %description qt3-static -l pl
244 Statyczna biblioteka Avahi Qt 3.
246 %package -n dotnet-avahi
247 Summary: Avahi MONO bindings
248 Summary(pl): Wi±zania Avahi dla MONO
251 %description -n dotnet-avahi
254 %description -n dotnet-avahi -l pl
255 Wi±zania Avahi dla MONO.
257 %package -n dotnet-avahi-devel
258 Summary: Development files for MONO Avahi bindings
259 Summary(pl): Pliki rozwojowe wi±zañ Avahi dla MONO
260 Group: Development/Libraries
261 Requires: dotnet-avahi = %{version}-%{release}
264 %description -n dotnet-avahi-devel
265 Development files for MONO Avahi bindings.
267 %description -n dotnet-avahi-devel -l pl
268 Pliki rozwojowe wi±zañ Avahi dla MONO.
271 Summary: Miniature web server
272 Summary(pl): Miniaturowy serwer web
275 %description bookmarks
276 A Python based miniature web server that browses for mDNS/DNS-SD
277 services of type '_http._tcp' (i.e. web sites) and makes them
278 available as HTML links on http://localhost:8080/.
280 %description bookmarks -l pl
281 Napisany w Pythonie miniaturowy serwer WWW, pozwalaj±cy na
282 przegl±danie us³ug typu '_http._tcp' (np. stron WWW) i udostêpniaj±cy
283 je jako odno¶niki HTML na http://localhost:8080/.
286 Summary: Avahi Zeroconf browser
287 Summary(pl): Przegl±darka Zeroconf Avahi
290 %description discover
291 A tool for enumerating all available services on the local LAN
292 (python-pygtk implementation).
294 %description discover -l pl
295 Narzêdzie wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej LAN
296 (implementacja w python-pygtk).
298 %package discover-standalone
299 Summary: Avahi Zeroconf browser
300 Summary(pl): Przegl±darka Zeroconf Avahi
303 %description discover-standalone
304 GTK+ tool for enumerating all available services on the local LAN.
306 %description discover-standalone -l pl
307 Narzêdzie GTK+ wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej
311 Summary: Avahi CLI utilities
312 Summary(pl): Narzêdzia CLI Avahi
316 Command line utilities using avahi-client.
318 %description utils -l pl
319 Narzêdzia linii poleceñ korzystaj±ce z avahi-client.
328 %{__aclocal} -I common
333 --enable-compat-libdns_sd \
334 --enable-compat-howl \
337 %{!?with_dotnet:--disable-mono} \
338 %{!?with_dotnet:--disable-monodoc}
342 rm -rf $RPM_BUILD_ROOT
343 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d}
346 DESTDIR=$RPM_BUILD_ROOT \
347 pythondir=%{py_sitedir}
349 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
350 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
352 ln -sf %{_includedir}/avahi-compat-libdns_sd/dns_sd.h \
353 $RPM_BUILD_ROOT%{_includedir}/dns_sd.h
355 ln -sf %{_pkgconfigdir}/avahi-compat-howl.pc \
356 $RPM_BUILD_ROOT%{_pkgconfigdir}/howl.pc
358 rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/{__init__,SimpleGladeApp}.py
361 rm -rf $RPM_BUILD_ROOT
364 %groupadd -g 165 -r -f avahi
365 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
368 /sbin/chkconfig --add %{name}-daemon
369 %service %{name}-daemon restart
370 /sbin/chkconfig --add %{name}-dnsconfd
371 %service %{name}-dnsconfd restart
374 if [ "$1" = "0" ]; then
375 %service -q %{name}-dnsconfd stop
376 /sbin/chkconfig --del %{name}-dnsconfd
377 %service -q %{name}-daemon stop
378 /sbin/chkconfig --del %{name}-daemon
382 if [ "$1" = "0" ]; then
387 %post libs -p /sbin/ldconfig
388 %postun libs -p /sbin/ldconfig
390 %post compat-libdns_sd -p /sbin/ldconfig
391 %postun compat-libdns_sd -p /sbin/ldconfig
393 %post compat-howl -p /sbin/ldconfig
394 %postun compat-howl -p /sbin/ldconfig
396 %post glib -p /sbin/ldconfig
397 %postun glib -p /sbin/ldconfig
399 %post qt3 -p /sbin/ldconfig
400 %postun qt3 -p /sbin/ldconfig
403 %defattr(644,root,root,755)
404 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
406 %dir %{_sysconfdir}/avahi
407 %dir %{_sysconfdir}/avahi/services
408 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
409 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-dnsconfd.action
410 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/hosts
411 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
412 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
414 %attr(755,root,root) %{_bindir}/avahi-browse
415 %attr(755,root,root) %{_bindir}/avahi-publish
416 %attr(755,root,root) %{_bindir}/avahi-resolve
418 %attr(755,root,root) %{_sbindir}/avahi-daemon
419 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
421 %dir %{_datadir}/%{name}
422 %dir %{_datadir}/%{name}/introspection
423 %{_datadir}/%{name}/introspection/*.introspect
424 %{_datadir}/%{name}/avahi-service.dtd
425 %{_datadir}/%{name}/service-types
426 %{_datadir}/%{name}/service-types.db
430 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
431 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
434 %defattr(644,root,root,755)
435 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
436 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
437 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
440 %defattr(644,root,root,755)
441 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
442 %attr(755,root,root) %{_libdir}/libavahi-client.so
443 %attr(755,root,root) %{_libdir}/libavahi-common.so
444 %attr(755,root,root) %{_libdir}/libavahi-core.so
445 %{_libdir}/libavahi-client.la
446 %{_libdir}/libavahi-common.la
447 %{_libdir}/libavahi-core.la
448 %{_includedir}/avahi-client
449 %{_includedir}/avahi-common
450 %{_includedir}/avahi-core
451 %{_pkgconfigdir}/avahi-client.pc
452 %{_pkgconfigdir}/avahi-core.pc
455 %defattr(644,root,root,755)
456 %{_libdir}/libavahi-client.a
457 %{_libdir}/libavahi-common.a
458 %{_libdir}/libavahi-core.a
460 %files compat-libdns_sd
461 %defattr(644,root,root,755)
462 %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.*
464 %files compat-libdns_sd-devel
465 %defattr(644,root,root,755)
466 %attr(755,root,root) %{_libdir}/libdns_sd.so
467 %{_libdir}/libdns_sd.la
468 %{_includedir}/avahi-compat-libdns_sd
469 %{_includedir}/dns_sd.h
470 %{_pkgconfigdir}/avahi-compat-libdns_sd.pc
472 %files compat-libdns_sd-static
473 %defattr(644,root,root,755)
474 %{_libdir}/libdns_sd.a
477 %defattr(644,root,root,755)
478 %attr(755,root,root) %{_libdir}/libhowl.so.*.*.*
480 %files compat-howl-devel
481 %defattr(644,root,root,755)
482 %attr(755,root,root) %{_libdir}/libhowl.so
483 %{_libdir}/libhowl.la
484 %{_includedir}/avahi-compat-howl
485 %{_pkgconfigdir}/avahi-compat-howl.pc
486 %{_pkgconfigdir}/howl.pc
488 %files compat-howl-static
489 %defattr(644,root,root,755)
493 %files -n dotnet-avahi
494 %defattr(644,root,root,755)
495 %{_prefix}/lib/mono/gac/avahi-sharp
497 %files -n dotnet-avahi-devel
498 %defattr(644,root,root,755)
499 %{_prefix}/lib/monodoc/sources/avahi-*
500 %{_pkgconfigdir}/*.pc
504 %defattr(644,root,root,755)
505 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
508 %defattr(644,root,root,755)
509 %attr(755,root,root) %{_libdir}/libavahi-glib.so
510 %{_libdir}/libavahi-glib.la
511 %{_includedir}/avahi-glib
512 %{_pkgconfigdir}/avahi-glib.pc
515 %defattr(644,root,root,755)
516 %{_libdir}/libavahi-glib.a
519 %defattr(644,root,root,755)
520 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
523 %defattr(644,root,root,755)
524 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
525 %{_libdir}/libavahi-qt3.la
526 %{_includedir}/avahi-qt3
527 %{_pkgconfigdir}/avahi-qt3.pc
530 %defattr(644,root,root,755)
531 %{_libdir}/libavahi-qt3.a
534 %defattr(644,root,root,755)
535 %attr(755,root,root) %{_bindir}/avahi-bookmarks
538 %defattr(644,root,root,755)
539 %attr(755,root,root) %{_bindir}/avahi-discover
540 # XXX: possibly missing %{_datadir}/%{name} dir, shared subdir
541 %dir %{_datadir}/%{name}/interfaces
542 %{_datadir}/%{name}/interfaces/avahi-discover.glade
544 %{_desktopdir}/*.desktop
545 %{_pixmapsdir}/avahi.png
547 %files discover-standalone
548 %defattr(644,root,root,755)
549 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
550 # XXX: possibly missing %{_datadir}/%{name} dir, shared subdir
551 %dir %{_datadir}/%{name}/interfaces
552 %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade
555 %defattr(644,root,root,755)
556 %attr(755,root,root) %{_bindir}/avahi-browse
557 %attr(755,root,root) %{_bindir}/avahi-publish
558 %attr(755,root,root) %{_bindir}/avahi-resolve