3 %bcond_without dotnet # build with dotnet bindings
4 %bcond_without qt # build with qt bindings
6 %include /usr/lib/rpm/macros.mono
8 Summary: Free mDNS/DNS-SD implementation
9 Summary(pl): Wolna implementacja mDNS/DNS-SD
15 Source0: http://avahi.org/download/%{name}-%{version}.tar.gz
16 # Source0-md5: 2652910f0e52c373d7a15b6851750517
17 Source1: %{name}-daemon
18 Source2: %{name}-dnsconfd
20 Patch0: %{name}-desktop.patch
21 Patch1: %{name}-glade.patch
22 Patch2: %{name}-destdir.patch
23 URL: http://avahi.org/
24 BuildRequires: autoconf
25 BuildRequires: automake
26 BuildRequires: dbus-devel >= 0.34
27 BuildRequires: doxygen
28 BuildRequires: expat-devel
29 BuildRequires: gdbm-devel
30 BuildRequires: glib2-devel >= 1:2.4.0
31 BuildRequires: graphviz
32 BuildRequires: gtk+2-devel >= 2:2.4.0
33 BuildRequires: libdaemon-devel >= 0.5
34 BuildRequires: libglade2-devel >= 1:2.5.1-5
35 BuildRequires: libtool
37 BuildRequires: mono-csharp
38 BuildRequires: monodoc
40 BuildRequires: pkgconfig
41 BuildRequires: python-dbus
42 BuildRequires: python-pygtk-devel
44 BuildRequires: QtCore-devel
45 BuildRequires: qt-devel >= 3.0
46 BuildRequires: qt4-build
48 BuildRequires: rpmbuild(macros) >= 1.228
49 Requires(post,preun): /sbin/chkconfig
50 Requires: dbus >= 0.60-2
51 Requires: %{name}-libs = %{version}-%{release}
52 Provides: group(avahi)
54 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57 Avahi is an implementation the DNS Service Discovery and Multicast DNS
58 specifications for Zeroconf Computing. It uses D-BUS for communication
59 between user applications and a system daemon.
62 Avahi jest implementacj± specyfikacji DNS Service Discovery i
63 Multicast DNS dla Zeroconf Computing. U¿ywa D-BUSa dla komunikacji
64 pomiêdzy programami u¿ytkownika a demonem systemowym.
67 Summary: Avahi client, common and core libraries
68 Summary(pl): Biblioteki Avahi: klienta, wspólna i g³ówna
72 Avahi client, common and core libraries.
74 %description libs -l pl
75 Biblioteki Avahi: klienta, wspólna i g³ówna.
78 Summary: Header files for Avahi library
79 Summary(pl): Pliki nag³ówkowe biblioteki Avahi
80 Group: Development/Libraries
81 Requires: %{name}-libs = %{version}-%{release}
84 Requires: libdaemon-devel >= 0.5
87 This is the package containing the header files for Avahi library.
89 %description devel -l pl
90 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi.
93 Summary: Static Avahi library
94 Summary(pl): Statyczna biblioteka Avahi
95 Group: Development/Libraries
96 Requires: %{name}-devel = %{version}-%{release}
101 %description static -l pl
102 Statyczna biblioteka Avahi.
104 %package compat-libdns_sd
105 Summary: Avahi Bonjour compat library
106 Summary(pl): Biblioteka Avahi zgodna z Bonjour
108 Provides: mdns-bonjour
109 Obsoletes: mDNSResponder-libs
111 %description compat-libdns_sd
112 Avahi Bonjour compat library.
114 %description compat-libdns_sd -l pl
115 Biblioteka Avahi zgodna z Bonjour.
117 %package compat-libdns_sd-devel
118 Summary: Header files for Avahi Bonjour compat library
119 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Bonjour
120 Group: Development/Libraries
121 Requires: %{name}-compat-libdns_sd = %{version}-%{release}
122 Requires: %{name}-devel = %{version}-%{release}
123 Provides: mdns-bonjour-devel
124 Obsoletes: mDNSResponder-devel
126 %description compat-libdns_sd-devel
127 Header files for Avahi Bonjour compat library.
129 %description compat-libdns_sd-devel -l pl
130 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Bonjour.
132 %package compat-libdns_sd-static
133 Summary: Static Avahi Bonjour compat library
134 Summary(pl): Statyczna biblioteka Avahi zgodna z Bonjour
135 Group: Development/Libraries
136 Requires: %{name}-compat-libdns_sd-devel = %{version}-%{release}
137 Provides: mdns-bonjour-static
139 %description compat-libdns_sd-static
140 Static Avahi Bonjour compat library.
142 %description compat-libdns_sd-static -l pl
143 Statyczna biblioteka Avahi zgodna z Bonjour.
146 Summary: Avahi Howl compat library
147 Summary(pl): Biblioteka Avahi zgodna z Howl
149 Provides: mdns-howl-libs
152 %description compat-howl
153 Avahi Howl compat library.
155 %description compat-howl -l pl
156 Biblioteka Avahi zgodna z Howl.
158 %package compat-howl-devel
159 Summary: Header files for Avahi Howl compat library
160 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Howl
161 Group: Development/Libraries
162 Requires: %{name}-compat-howl = %{version}-%{release}
163 Provides: mdns-howl-devel
164 Obsoletes: howl-devel
166 %description compat-howl-devel
167 Header files for Avahi Howl compat library.
169 %description compat-howl-devel -l pl
170 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Howl.
172 %package compat-howl-static
173 Summary: Static Avahi Howl compat library
174 Summary(pl): Statyczna biblioteka Avahi zgodna z Howl
175 Group: Development/Libraries
176 Requires: %{name}-compat-howl-devel = %{version}-%{release}
177 Provides: mdns-howl-static
178 Obsoletes: howl-static
180 %description compat-howl-static
181 Static Avahi Howl compat library.
183 %description compat-howl-static -l pl
184 Statyczna biblioteka Avahi zgodna z Howl.
187 Summary: Avahi GLib library bindings
188 Summary(pl): Wi±zania Avahi dla bibioteki GLib
192 Avahi GLib library bindings.
194 %description glib -l pl
195 Wi±zania Avahi dla bibioteki GLib.
198 Summary: Header files for Avahi GLib library bindings
199 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki GLib
200 Group: Development/Libraries
201 Requires: %{name}-devel = %{version}-%{release}
202 Requires: %{name}-glib = %{version}-%{release}
203 Requires: glib2-devel >= 1:2.4.0
205 %description glib-devel
206 This is the package containing the header files for Avahi-glib
209 %description glib-devel -l pl
210 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi-glib.
213 Summary: Static Avahi GLib library
214 Summary(pl): Statyczna biblioteka Avahi GLib
215 Group: Development/Libraries
216 Requires: %{name}-glib-devel = %{version}-%{release}
218 %description glib-static
219 Static Avahi GLib library.
221 %description glib-static -l pl
222 Statyczna biblioteka Avahi GLib.
225 Summary: Avahi Qt 3 library bindings
226 Summary(pl): Wi±zania Avahi dla biblioteki Qt 3
228 Requires: %{name}-libs = %{version}-%{release}
232 Avahi Qt 3 library bindings.
234 %description qt -l pl
235 Wi±zania Avahi dla biblioteki Qt 3.
238 Summary: Header files for Avahi Qt 3 library bindings
239 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3
240 Group: Development/Libraries
241 Requires: %{name}-devel = %{version}-%{release}
242 Requires: %{name}-qt = %{version}-%{release}
243 Requires: qt-devel >= 3.0
244 Obsoletes: avahi-qt3-devel
246 %description qt-devel
247 Header files for Avahi Qt 3 library bindings.
249 %description qt-devel -l pl
250 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3.
253 Summary: Static Avahi Qt 3 library
254 Summary(pl): Statyczna biblioteka Avahi Qt 3
255 Group: Development/Libraries
256 Requires: %{name}-qt-devel = %{version}-%{release}
257 Obsoletes: avahi-qt3-static
259 %description qt-static
260 Static Avahi Qt 3 library.
262 %description qt-static -l pl
263 Statyczna biblioteka Avahi Qt 3.
266 Summary: Avahi Qt 4 library bindings
267 Summary(pl): Wi±zania Avahi dla biblioteki Qt 4
269 Requires: %{name}-libs = %{version}-%{release}
272 Avahi Qt 4 library bindings.
274 %description Qt -l pl
275 Wi±zania Avahi dla biblioteki Qt 4.
278 Summary: Header files for Avahi Qt 3 library bindings
279 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3
280 Group: Development/Libraries
281 Requires: %{name}-devel = %{version}-%{release}
282 Requires: %{name}-Qt = %{version}-%{release}
284 %description Qt-devel
285 Header files for Avahi Qt 4 library bindings.
287 %description Qt-devel -l pl
288 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 4.
291 Summary: Static Avahi Qt 4 library
292 Summary(pl): Statyczna biblioteka Avahi Qt 4
293 Group: Development/Libraries
294 Requires: %{name}-Qt-devel = %{version}-%{release}
296 %description Qt-static
297 Static Avahi Qt 4 library.
299 %description Qt-static -l pl
300 Statyczna biblioteka Avahi Qt 4.
302 %package -n dotnet-avahi
303 Summary: Avahi MONO bindings
304 Summary(pl): Wi±zania Avahi dla MONO
307 %description -n dotnet-avahi
310 %description -n dotnet-avahi -l pl
311 Wi±zania Avahi dla MONO.
313 %package -n dotnet-avahi-devel
314 Summary: Development files for MONO Avahi bindings
315 Summary(pl): Pliki rozwojowe wi±zañ Avahi dla MONO
316 Group: Development/Libraries
317 Requires: dotnet-avahi = %{version}-%{release}
320 %description -n dotnet-avahi-devel
321 Development files for MONO Avahi bindings.
323 %description -n dotnet-avahi-devel -l pl
324 Pliki rozwojowe wi±zañ Avahi dla MONO.
327 Summary: Miniature web server
328 Summary(pl): Miniaturowy serwer web
331 %description bookmarks
332 A Python based miniature web server that browses for mDNS/DNS-SD
333 services of type '_http._tcp' (i.e. web sites) and makes them
334 available as HTML links on http://localhost:8080/.
336 %description bookmarks -l pl
337 Napisany w Pythonie miniaturowy serwer WWW, pozwalaj±cy na
338 przegl±danie us³ug typu '_http._tcp' (np. stron WWW) i udostêpniaj±cy
339 je jako odno¶niki HTML na http://localhost:8080/.
342 Summary: Avahi Zeroconf browser
343 Summary(pl): Przegl±darka Zeroconf Avahi
346 %description discover
347 A tool for enumerating all available services on the local LAN
348 (python-pygtk implementation).
350 %description discover -l pl
351 Narzêdzie wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej LAN
352 (implementacja w python-pygtk).
354 %package discover-standalone
355 Summary: Avahi Zeroconf browser
356 Summary(pl): Przegl±darka Zeroconf Avahi
359 %description discover-standalone
360 GTK+ tool for enumerating all available services on the local LAN.
362 %description discover-standalone -l pl
363 Narzêdzie GTK+ wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej
367 Summary: Avahi CLI utilities
368 Summary(pl): Narzêdzia CLI Avahi
372 Command line utilities using avahi-client.
374 %description utils -l pl
375 Narzêdzia linii poleceñ korzystaj±ce z avahi-client.
385 %{__aclocal} -I common
390 --enable-compat-libdns_sd \
391 --enable-compat-howl \
393 %{!?with_qt:--disable-qt3 --disable-qt4} \
394 %{!?with_dotnet:--disable-mono} \
395 %{!?with_dotnet:--disable-monodoc}
399 rm -rf $RPM_BUILD_ROOT
400 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d}
403 DESTDIR=$RPM_BUILD_ROOT \
404 pythondir=%{py_sitedir}
406 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
407 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
409 ln -sf %{_includedir}/avahi-compat-libdns_sd/dns_sd.h \
410 $RPM_BUILD_ROOT%{_includedir}/dns_sd.h
412 ln -sf %{_pkgconfigdir}/avahi-compat-howl.pc \
413 $RPM_BUILD_ROOT%{_pkgconfigdir}/howl.pc
415 rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/{__init__,SimpleGladeApp}.py
418 rm -rf $RPM_BUILD_ROOT
421 %groupadd -g 165 -r -f avahi
422 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
425 /sbin/chkconfig --add %{name}-daemon
426 %service %{name}-daemon restart
427 /sbin/chkconfig --add %{name}-dnsconfd
428 %service %{name}-dnsconfd restart
431 if [ "$1" = "0" ]; then
432 %service -q %{name}-dnsconfd stop
433 /sbin/chkconfig --del %{name}-dnsconfd
434 %service -q %{name}-daemon stop
435 /sbin/chkconfig --del %{name}-daemon
439 if [ "$1" = "0" ]; then
444 %post libs -p /sbin/ldconfig
445 %postun libs -p /sbin/ldconfig
447 %post compat-libdns_sd -p /sbin/ldconfig
448 %postun compat-libdns_sd -p /sbin/ldconfig
450 %post compat-howl -p /sbin/ldconfig
451 %postun compat-howl -p /sbin/ldconfig
453 %post glib -p /sbin/ldconfig
454 %postun glib -p /sbin/ldconfig
456 %post qt -p /sbin/ldconfig
457 %postun qt -p /sbin/ldconfig
459 %post Qt -p /sbin/ldconfig
460 %postun Qt -p /sbin/ldconfig
463 %defattr(644,root,root,755)
464 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
466 %dir %{_sysconfdir}/avahi
467 %dir %{_sysconfdir}/avahi/services
468 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
469 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-dnsconfd.action
470 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/hosts
471 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
472 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
474 %attr(755,root,root) %{_bindir}/avahi-browse
475 %attr(755,root,root) %{_bindir}/avahi-publish
476 %attr(755,root,root) %{_bindir}/avahi-resolve
478 %attr(755,root,root) %{_sbindir}/avahi-daemon
479 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
481 %dir %{_datadir}/%{name}
482 %dir %{_datadir}/%{name}/introspection
483 %{_datadir}/%{name}/introspection/*.introspect
484 %{_datadir}/%{name}/avahi-service.dtd
485 %{_datadir}/%{name}/service-types
486 %{_datadir}/%{name}/service-types.db
490 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
491 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
494 %defattr(644,root,root,755)
495 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
496 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
497 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
500 %defattr(644,root,root,755)
501 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
502 %attr(755,root,root) %{_libdir}/libavahi-client.so
503 %attr(755,root,root) %{_libdir}/libavahi-common.so
504 %attr(755,root,root) %{_libdir}/libavahi-core.so
505 %{_libdir}/libavahi-client.la
506 %{_libdir}/libavahi-common.la
507 %{_libdir}/libavahi-core.la
508 %{_includedir}/avahi-client
509 %{_includedir}/avahi-common
510 %{_includedir}/avahi-core
511 %{_pkgconfigdir}/avahi-client.pc
512 %{_pkgconfigdir}/avahi-core.pc
515 %defattr(644,root,root,755)
516 %{_libdir}/libavahi-client.a
517 %{_libdir}/libavahi-common.a
518 %{_libdir}/libavahi-core.a
520 %files compat-libdns_sd
521 %defattr(644,root,root,755)
522 %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.*
524 %files compat-libdns_sd-devel
525 %defattr(644,root,root,755)
526 %attr(755,root,root) %{_libdir}/libdns_sd.so
527 %{_libdir}/libdns_sd.la
528 %{_includedir}/avahi-compat-libdns_sd
529 %{_includedir}/dns_sd.h
530 %{_pkgconfigdir}/avahi-compat-libdns_sd.pc
532 %files compat-libdns_sd-static
533 %defattr(644,root,root,755)
534 %{_libdir}/libdns_sd.a
537 %defattr(644,root,root,755)
538 %attr(755,root,root) %{_libdir}/libhowl.so.*.*.*
540 %files compat-howl-devel
541 %defattr(644,root,root,755)
542 %attr(755,root,root) %{_libdir}/libhowl.so
543 %{_libdir}/libhowl.la
544 %{_includedir}/avahi-compat-howl
545 %{_pkgconfigdir}/avahi-compat-howl.pc
546 %{_pkgconfigdir}/howl.pc
548 %files compat-howl-static
549 %defattr(644,root,root,755)
553 %files -n dotnet-avahi
554 %defattr(644,root,root,755)
555 %{_prefix}/lib/mono/gac/avahi-sharp
557 %files -n dotnet-avahi-devel
558 %defattr(644,root,root,755)
559 %{_libdir}/monodoc/sources/avahi-*
560 %{_pkgconfigdir}/avahi-sharp.pc
564 %defattr(644,root,root,755)
565 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
568 %defattr(644,root,root,755)
569 %attr(755,root,root) %{_libdir}/libavahi-glib.so
570 %{_libdir}/libavahi-glib.la
571 %{_includedir}/avahi-glib
572 %{_pkgconfigdir}/avahi-glib.pc
575 %defattr(644,root,root,755)
576 %{_libdir}/libavahi-glib.a
580 %defattr(644,root,root,755)
581 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
584 %defattr(644,root,root,755)
585 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
586 %{_libdir}/libavahi-qt3.la
587 %{_includedir}/avahi-qt3
588 %{_pkgconfigdir}/avahi-qt3.pc
591 %defattr(644,root,root,755)
592 %{_libdir}/libavahi-qt3.a
595 %defattr(644,root,root,755)
596 %attr(755,root,root) %{_libdir}/libavahi-qt4.so.*.*.*
599 %defattr(644,root,root,755)
600 %attr(755,root,root) %{_libdir}/libavahi-qt4.so
601 %{_libdir}/libavahi-qt4.la
602 %{_includedir}/avahi-qt4
603 %{_pkgconfigdir}/avahi-qt4.pc
606 %defattr(644,root,root,755)
607 %{_libdir}/libavahi-qt4.a
611 %defattr(644,root,root,755)
612 %attr(755,root,root) %{_bindir}/avahi-bookmarks
615 %defattr(644,root,root,755)
616 %attr(755,root,root) %{_bindir}/avahi-discover
617 # XXX: possibly missing %{_datadir}/%{name} dir, shared subdir
618 %dir %{_datadir}/%{name}/interfaces
619 %{_datadir}/%{name}/interfaces/avahi-discover.glade
621 %{_desktopdir}/*.desktop
622 %{_pixmapsdir}/avahi.png
624 %files discover-standalone
625 %defattr(644,root,root,755)
626 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
627 # XXX: possibly missing %{_datadir}/%{name} dir, shared subdir
628 %dir %{_datadir}/%{name}/interfaces
629 %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade
632 %defattr(644,root,root,755)
633 %attr(755,root,root) %{_bindir}/avahi-browse
634 %attr(755,root,root) %{_bindir}/avahi-publish
635 %attr(755,root,root) %{_bindir}/avahi-resolve