3 %bcond_without dotnet # build without dotnet bindings
4 %bcond_without qt # build without (any) qt bindings
5 %bcond_without qt3 # build without qt3 bindings
6 %bcond_without qt4 # build without qt4 bindings
12 %include /usr/lib/rpm/macros.mono
14 Summary: Free mDNS/DNS-SD implementation
15 Summary(pl): Wolna implementacja mDNS/DNS-SD
21 Source0: http://avahi.org/download/%{name}-%{version}.tar.gz
22 # Source0-md5: d1000689979105cc95b9ca102284aae4
23 Source1: %{name}-daemon
24 Source2: %{name}-dnsconfd
26 Patch0: %{name}-desktop.patch
27 Patch1: %{name}-glade.patch
28 Patch2: %{name}-destdir.patch
29 URL: http://avahi.org/
30 BuildRequires: autoconf
31 BuildRequires: automake
32 BuildRequires: dbus-devel >= 0.92
33 BuildRequires: doxygen
34 BuildRequires: expat-devel
35 BuildRequires: gdbm-devel
36 BuildRequires: glib2-devel >= 1:2.12.2
37 BuildRequires: graphviz
38 BuildRequires: gtk+2-devel >= 2:2.10.2
39 BuildRequires: libdaemon-devel >= 0.5
40 BuildRequires: libglade2-devel >= 1:2.6.0
41 BuildRequires: libtool
43 BuildRequires: mono-csharp
44 BuildRequires: monodoc
46 BuildRequires: pkgconfig
47 BuildRequires: python-dbus >= 0.71
48 BuildRequires: python-pygtk-devel >= 2:2.9.6
50 BuildRequires: qt-devel >= 3.0
53 BuildRequires: QtCore-devel
54 BuildRequires: qt4-build
56 BuildRequires: rpmbuild(macros) >= 1.228
57 Requires(post,preun): /sbin/chkconfig
58 Requires: dbus >= 0.92
59 Requires: %{name}-libs = %{version}-%{release}
60 Provides: group(avahi)
62 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
65 Avahi is an implementation the DNS Service Discovery and Multicast DNS
66 specifications for Zeroconf Computing. It uses D-BUS for communication
67 between user applications and a system daemon.
70 Avahi jest implementacj± specyfikacji DNS Service Discovery i
71 Multicast DNS dla Zeroconf Computing. U¿ywa D-BUSa dla komunikacji
72 pomiêdzy programami u¿ytkownika a demonem systemowym.
75 Summary: Avahi client, common and core libraries
76 Summary(pl): Biblioteki Avahi: klienta, wspólna i g³ówna
80 Avahi client, common and core libraries.
82 %description libs -l pl
83 Biblioteki Avahi: klienta, wspólna i g³ówna.
86 Summary: Header files for Avahi library
87 Summary(pl): Pliki nag³ówkowe biblioteki Avahi
88 Group: Development/Libraries
89 Requires: %{name}-libs = %{version}-%{release}
90 Requires: dbus-devel >= 0.92
92 Requires: libdaemon-devel >= 0.5
95 This is the package containing the header files for Avahi library.
97 %description devel -l pl
98 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi.
101 Summary: Static Avahi library
102 Summary(pl): Statyczna biblioteka Avahi
103 Group: Development/Libraries
104 Requires: %{name}-devel = %{version}-%{release}
107 Static Avahi library.
109 %description static -l pl
110 Statyczna biblioteka Avahi.
112 %package compat-libdns_sd
113 Summary: Avahi Bonjour compat library
114 Summary(pl): Biblioteka Avahi zgodna z Bonjour
116 Provides: mdns-bonjour
117 Obsoletes: mDNSResponder-libs
119 %description compat-libdns_sd
120 Avahi Bonjour compat library.
122 %description compat-libdns_sd -l pl
123 Biblioteka Avahi zgodna z Bonjour.
125 %package compat-libdns_sd-devel
126 Summary: Header files for Avahi Bonjour compat library
127 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Bonjour
128 Group: Development/Libraries
129 Requires: %{name}-compat-libdns_sd = %{version}-%{release}
130 Requires: %{name}-devel = %{version}-%{release}
131 Provides: mdns-bonjour-devel
132 Obsoletes: mDNSResponder-devel
134 %description compat-libdns_sd-devel
135 Header files for Avahi Bonjour compat library.
137 %description compat-libdns_sd-devel -l pl
138 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Bonjour.
140 %package compat-libdns_sd-static
141 Summary: Static Avahi Bonjour compat library
142 Summary(pl): Statyczna biblioteka Avahi zgodna z Bonjour
143 Group: Development/Libraries
144 Requires: %{name}-compat-libdns_sd-devel = %{version}-%{release}
145 Provides: mdns-bonjour-static
147 %description compat-libdns_sd-static
148 Static Avahi Bonjour compat library.
150 %description compat-libdns_sd-static -l pl
151 Statyczna biblioteka Avahi zgodna z Bonjour.
154 Summary: Avahi Howl compat library
155 Summary(pl): Biblioteka Avahi zgodna z Howl
157 Provides: mdns-howl-libs
160 %description compat-howl
161 Avahi Howl compat library.
163 %description compat-howl -l pl
164 Biblioteka Avahi zgodna z Howl.
166 %package compat-howl-devel
167 Summary: Header files for Avahi Howl compat library
168 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Howl
169 Group: Development/Libraries
170 Requires: %{name}-compat-howl = %{version}-%{release}
171 Requires: %{name}-devel = %{version}-%{release}
172 Provides: mdns-howl-devel
173 Obsoletes: howl-devel
175 %description compat-howl-devel
176 Header files for Avahi Howl compat library.
178 %description compat-howl-devel -l pl
179 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Howl.
181 %package compat-howl-static
182 Summary: Static Avahi Howl compat library
183 Summary(pl): Statyczna biblioteka Avahi zgodna z Howl
184 Group: Development/Libraries
185 Requires: %{name}-compat-howl-devel = %{version}-%{release}
186 Provides: mdns-howl-static
187 Obsoletes: howl-static
189 %description compat-howl-static
190 Static Avahi Howl compat library.
192 %description compat-howl-static -l pl
193 Statyczna biblioteka Avahi zgodna z Howl.
196 Summary: Avahi GLib library bindings
197 Summary(pl): Wi±zania Avahi dla bibioteki GLib
201 Avahi GLib library bindings.
203 %description glib -l pl
204 Wi±zania Avahi dla bibioteki GLib.
207 Summary: Header files for Avahi GLib library bindings
208 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki GLib
209 Group: Development/Libraries
210 Requires: %{name}-devel = %{version}-%{release}
211 Requires: %{name}-glib = %{version}-%{release}
212 Requires: glib2-devel >= 1:2.12.2
214 %description glib-devel
215 This is the package containing the header files for Avahi-glib
218 %description glib-devel -l pl
219 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi-glib.
222 Summary: Static Avahi GLib library
223 Summary(pl): Statyczna biblioteka Avahi GLib
224 Group: Development/Libraries
225 Requires: %{name}-glib-devel = %{version}-%{release}
227 %description glib-static
228 Static Avahi GLib library.
230 %description glib-static -l pl
231 Statyczna biblioteka Avahi GLib.
234 Summary: Avahi Qt 3 library bindings
235 Summary(pl): Wi±zania Avahi dla biblioteki Qt 3
237 Requires: %{name}-libs = %{version}-%{release}
241 Avahi Qt 3 library bindings.
243 %description qt -l pl
244 Wi±zania Avahi dla biblioteki Qt 3.
247 Summary: Header files for Avahi Qt 3 library bindings
248 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3
249 Group: Development/Libraries
250 Requires: %{name}-devel = %{version}-%{release}
251 Requires: %{name}-qt = %{version}-%{release}
252 Requires: qt-devel >= 3.0
253 Obsoletes: avahi-qt3-devel
255 %description qt-devel
256 Header files for Avahi Qt 3 library bindings.
258 %description qt-devel -l pl
259 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3.
262 Summary: Static Avahi Qt 3 library
263 Summary(pl): Statyczna biblioteka Avahi Qt 3
264 Group: Development/Libraries
265 Requires: %{name}-qt-devel = %{version}-%{release}
266 Obsoletes: avahi-qt3-static
268 %description qt-static
269 Static Avahi Qt 3 library.
271 %description qt-static -l pl
272 Statyczna biblioteka Avahi Qt 3.
275 Summary: Avahi Qt 4 library bindings
276 Summary(pl): Wi±zania Avahi dla biblioteki Qt 4
278 Requires: %{name}-libs = %{version}-%{release}
281 Avahi Qt 4 library bindings.
283 %description Qt -l pl
284 Wi±zania Avahi dla biblioteki Qt 4.
287 Summary: Header files for Avahi Qt 3 library bindings
288 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3
289 Group: Development/Libraries
290 Requires: %{name}-devel = %{version}-%{release}
291 Requires: %{name}-Qt = %{version}-%{release}
293 %description Qt-devel
294 Header files for Avahi Qt 4 library bindings.
296 %description Qt-devel -l pl
297 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 4.
300 Summary: Static Avahi Qt 4 library
301 Summary(pl): Statyczna biblioteka Avahi Qt 4
302 Group: Development/Libraries
303 Requires: %{name}-Qt-devel = %{version}-%{release}
305 %description Qt-static
306 Static Avahi Qt 4 library.
308 %description Qt-static -l pl
309 Statyczna biblioteka Avahi Qt 4.
311 %package -n dotnet-avahi
312 Summary: Avahi MONO bindings
313 Summary(pl): Wi±zania Avahi dla MONO
316 %description -n dotnet-avahi
319 %description -n dotnet-avahi -l pl
320 Wi±zania Avahi dla MONO.
322 %package -n dotnet-avahi-devel
323 Summary: Development files for MONO Avahi bindings
324 Summary(pl): Pliki rozwojowe wi±zañ Avahi dla MONO
325 Group: Development/Libraries
326 Requires: dotnet-avahi = %{version}-%{release}
329 %description -n dotnet-avahi-devel
330 Development files for MONO Avahi bindings.
332 %description -n dotnet-avahi-devel -l pl
333 Pliki rozwojowe wi±zañ Avahi dla MONO.
336 Summary: Miniature web server
337 Summary(pl): Miniaturowy serwer web
340 %description bookmarks
341 A Python based miniature web server that browses for mDNS/DNS-SD
342 services of type '_http._tcp' (i.e. web sites) and makes them
343 available as HTML links on http://localhost:8080/.
345 %description bookmarks -l pl
346 Napisany w Pythonie miniaturowy serwer WWW, pozwalaj±cy na
347 przegl±danie us³ug typu '_http._tcp' (np. stron WWW) i udostêpniaj±cy
348 je jako odno¶niki HTML na http://localhost:8080/.
351 Summary: Avahi Zeroconf browser
352 Summary(pl): Przegl±darka Zeroconf Avahi
354 Requires: %{name} = %{version}-%{release}
355 Requires: python-dbus >= 0.71
356 Requires: python-pygtk-glade >= 2:2.9.6
358 %description discover
359 A tool for enumerating all available services on the local LAN
360 (python-pygtk implementation).
362 %description discover -l pl
363 Narzêdzie wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej LAN
364 (implementacja w python-pygtk).
366 %package discover-standalone
367 Summary: Avahi Zeroconf browser
368 Summary(pl): Przegl±darka Zeroconf Avahi
370 Requires: %{name} = %{version}-%{release}
371 Requires: python-dbus >= 0.71
372 Requires: python-pygtk-glade >= 2:2.9.6
374 %description discover-standalone
375 GTK+ tool for enumerating all available services on the local LAN.
377 %description discover-standalone -l pl
378 Narzêdzie GTK+ wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej
382 Summary: Avahi CLI utilities
383 Summary(pl): Narzêdzia CLI Avahi
387 Command line utilities using avahi-client.
389 %description utils -l pl
390 Narzêdzia linii poleceñ korzystaj±ce z avahi-client.
400 %{__aclocal} -I common
405 --enable-compat-libdns_sd \
406 --enable-compat-howl \
408 %{!?with_qt3:--disable-qt3} \
409 %{!?with_qt4:--disable-qt4} \
410 %{!?with_dotnet:--disable-mono} \
411 %{!?with_dotnet:--disable-monodoc}
415 rm -rf $RPM_BUILD_ROOT
416 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d}
419 DESTDIR=$RPM_BUILD_ROOT \
420 pythondir=%{py_sitedir}
422 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
423 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
425 ln -sf %{_includedir}/avahi-compat-libdns_sd/dns_sd.h \
426 $RPM_BUILD_ROOT%{_includedir}/dns_sd.h
428 ln -sf %{_pkgconfigdir}/avahi-compat-howl.pc \
429 $RPM_BUILD_ROOT%{_pkgconfigdir}/howl.pc
431 rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/{__init__,SimpleGladeApp}.py
434 rm -rf $RPM_BUILD_ROOT
437 %groupadd -g 165 -r -f avahi
438 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
441 /sbin/chkconfig --add %{name}-daemon
442 %service %{name}-daemon restart
443 /sbin/chkconfig --add %{name}-dnsconfd
444 %service %{name}-dnsconfd restart
447 if [ "$1" = "0" ]; then
448 %service -q %{name}-dnsconfd stop
449 /sbin/chkconfig --del %{name}-dnsconfd
450 %service -q %{name}-daemon stop
451 /sbin/chkconfig --del %{name}-daemon
455 if [ "$1" = "0" ]; then
460 %post libs -p /sbin/ldconfig
461 %postun libs -p /sbin/ldconfig
463 %post compat-libdns_sd -p /sbin/ldconfig
464 %postun compat-libdns_sd -p /sbin/ldconfig
466 %post compat-howl -p /sbin/ldconfig
467 %postun compat-howl -p /sbin/ldconfig
469 %post glib -p /sbin/ldconfig
470 %postun glib -p /sbin/ldconfig
472 %post qt -p /sbin/ldconfig
473 %postun qt -p /sbin/ldconfig
475 %post Qt -p /sbin/ldconfig
476 %postun Qt -p /sbin/ldconfig
479 %defattr(644,root,root,755)
480 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
482 %dir %{_sysconfdir}/avahi
483 %dir %{_sysconfdir}/avahi/services
484 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
485 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-dnsconfd.action
486 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/hosts
487 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
488 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
490 %attr(755,root,root) %{_bindir}/avahi-browse
491 %attr(755,root,root) %{_bindir}/avahi-publish
492 %attr(755,root,root) %{_bindir}/avahi-resolve
493 %attr(755,root,root) %{_bindir}/avahi-set-host-name
495 %attr(755,root,root) %{_sbindir}/avahi-daemon
496 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
498 %dir %{_datadir}/%{name}
499 %dir %{_datadir}/%{name}/introspection
500 %{_datadir}/%{name}/introspection/*.introspect
501 %{_datadir}/%{name}/avahi-service.dtd
502 %{_datadir}/%{name}/service-types
503 %{_datadir}/%{name}/service-types.db
507 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
508 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
511 %defattr(644,root,root,755)
512 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
513 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
514 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
517 %defattr(644,root,root,755)
518 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
519 %attr(755,root,root) %{_libdir}/libavahi-client.so
520 %attr(755,root,root) %{_libdir}/libavahi-common.so
521 %attr(755,root,root) %{_libdir}/libavahi-core.so
522 %{_libdir}/libavahi-client.la
523 %{_libdir}/libavahi-common.la
524 %{_libdir}/libavahi-core.la
525 %{_includedir}/avahi-client
526 %{_includedir}/avahi-common
527 %{_includedir}/avahi-core
528 %{_pkgconfigdir}/avahi-client.pc
529 %{_pkgconfigdir}/avahi-core.pc
532 %defattr(644,root,root,755)
533 %{_libdir}/libavahi-client.a
534 %{_libdir}/libavahi-common.a
535 %{_libdir}/libavahi-core.a
537 %files compat-libdns_sd
538 %defattr(644,root,root,755)
539 %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.*
541 %files compat-libdns_sd-devel
542 %defattr(644,root,root,755)
543 %attr(755,root,root) %{_libdir}/libdns_sd.so
544 %{_libdir}/libdns_sd.la
545 %{_includedir}/avahi-compat-libdns_sd
546 %{_includedir}/dns_sd.h
547 %{_pkgconfigdir}/avahi-compat-libdns_sd.pc
549 %files compat-libdns_sd-static
550 %defattr(644,root,root,755)
551 %{_libdir}/libdns_sd.a
554 %defattr(644,root,root,755)
555 %attr(755,root,root) %{_libdir}/libhowl.so.*.*.*
557 %files compat-howl-devel
558 %defattr(644,root,root,755)
559 %attr(755,root,root) %{_libdir}/libhowl.so
560 %{_libdir}/libhowl.la
561 %{_includedir}/avahi-compat-howl
562 %{_pkgconfigdir}/avahi-compat-howl.pc
563 %{_pkgconfigdir}/howl.pc
565 %files compat-howl-static
566 %defattr(644,root,root,755)
570 %files -n dotnet-avahi
571 %defattr(644,root,root,755)
572 %{_prefix}/lib/mono/gac/avahi-sharp
574 %files -n dotnet-avahi-devel
575 %defattr(644,root,root,755)
576 %{_libdir}/monodoc/sources/avahi-*
577 %{_prefix}/lib/mono/avahi-sharp
578 %{_pkgconfigdir}/avahi-sharp.pc
582 %defattr(644,root,root,755)
583 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
586 %defattr(644,root,root,755)
587 %attr(755,root,root) %{_libdir}/libavahi-glib.so
588 %{_libdir}/libavahi-glib.la
589 %{_includedir}/avahi-glib
590 %{_pkgconfigdir}/avahi-glib.pc
593 %defattr(644,root,root,755)
594 %{_libdir}/libavahi-glib.a
598 %defattr(644,root,root,755)
599 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
602 %defattr(644,root,root,755)
603 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
604 %{_libdir}/libavahi-qt3.la
605 %{_includedir}/avahi-qt3
606 %{_pkgconfigdir}/avahi-qt3.pc
609 %defattr(644,root,root,755)
610 %{_libdir}/libavahi-qt3.a
615 %defattr(644,root,root,755)
616 %attr(755,root,root) %{_libdir}/libavahi-qt4.so.*.*.*
619 %defattr(644,root,root,755)
620 %attr(755,root,root) %{_libdir}/libavahi-qt4.so
621 %{_libdir}/libavahi-qt4.la
622 %{_includedir}/avahi-qt4
623 %{_pkgconfigdir}/avahi-qt4.pc
626 %defattr(644,root,root,755)
627 %{_libdir}/libavahi-qt4.a
631 %defattr(644,root,root,755)
632 %attr(755,root,root) %{_bindir}/avahi-bookmarks
635 %defattr(644,root,root,755)
636 %attr(755,root,root) %{_bindir}/avahi-discover
637 # XXX: possibly missing %{_datadir}/%{name} dir, shared subdir
638 %dir %{_datadir}/%{name}/interfaces
639 %{_datadir}/%{name}/interfaces/avahi-discover.glade
641 %{_desktopdir}/*.desktop
642 %{_pixmapsdir}/avahi.png
644 %files discover-standalone
645 %defattr(644,root,root,755)
646 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
647 # XXX: possibly missing %{_datadir}/%{name} dir, shared subdir
648 %dir %{_datadir}/%{name}/interfaces
649 %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade
652 %defattr(644,root,root,755)
653 %attr(755,root,root) %{_bindir}/avahi-browse
654 %attr(755,root,root) %{_bindir}/avahi-publish
655 %attr(755,root,root) %{_bindir}/avahi-resolve