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: cfb9e05c138dff4c430a35eee6229e8a
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 Requires: %{name}-devel = %{version}-%{release}
164 Provides: mdns-howl-devel
165 Obsoletes: howl-devel
167 %description compat-howl-devel
168 Header files for Avahi Howl compat library.
170 %description compat-howl-devel -l pl
171 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Howl.
173 %package compat-howl-static
174 Summary: Static Avahi Howl compat library
175 Summary(pl): Statyczna biblioteka Avahi zgodna z Howl
176 Group: Development/Libraries
177 Requires: %{name}-compat-howl-devel = %{version}-%{release}
178 Provides: mdns-howl-static
179 Obsoletes: howl-static
181 %description compat-howl-static
182 Static Avahi Howl compat library.
184 %description compat-howl-static -l pl
185 Statyczna biblioteka Avahi zgodna z Howl.
188 Summary: Avahi GLib library bindings
189 Summary(pl): Wi±zania Avahi dla bibioteki GLib
193 Avahi GLib library bindings.
195 %description glib -l pl
196 Wi±zania Avahi dla bibioteki GLib.
199 Summary: Header files for Avahi GLib library bindings
200 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki GLib
201 Group: Development/Libraries
202 Requires: %{name}-devel = %{version}-%{release}
203 Requires: %{name}-glib = %{version}-%{release}
204 Requires: glib2-devel >= 1:2.4.0
206 %description glib-devel
207 This is the package containing the header files for Avahi-glib
210 %description glib-devel -l pl
211 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi-glib.
214 Summary: Static Avahi GLib library
215 Summary(pl): Statyczna biblioteka Avahi GLib
216 Group: Development/Libraries
217 Requires: %{name}-glib-devel = %{version}-%{release}
219 %description glib-static
220 Static Avahi GLib library.
222 %description glib-static -l pl
223 Statyczna biblioteka Avahi GLib.
226 Summary: Avahi Qt 3 library bindings
227 Summary(pl): Wi±zania Avahi dla biblioteki Qt 3
229 Requires: %{name}-libs = %{version}-%{release}
233 Avahi Qt 3 library bindings.
235 %description qt -l pl
236 Wi±zania Avahi dla biblioteki Qt 3.
239 Summary: Header files for Avahi Qt 3 library bindings
240 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3
241 Group: Development/Libraries
242 Requires: %{name}-devel = %{version}-%{release}
243 Requires: %{name}-qt = %{version}-%{release}
244 Requires: qt-devel >= 3.0
245 Obsoletes: avahi-qt3-devel
247 %description qt-devel
248 Header files for Avahi Qt 3 library bindings.
250 %description qt-devel -l pl
251 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3.
254 Summary: Static Avahi Qt 3 library
255 Summary(pl): Statyczna biblioteka Avahi Qt 3
256 Group: Development/Libraries
257 Requires: %{name}-qt-devel = %{version}-%{release}
258 Obsoletes: avahi-qt3-static
260 %description qt-static
261 Static Avahi Qt 3 library.
263 %description qt-static -l pl
264 Statyczna biblioteka Avahi Qt 3.
267 Summary: Avahi Qt 4 library bindings
268 Summary(pl): Wi±zania Avahi dla biblioteki Qt 4
270 Requires: %{name}-libs = %{version}-%{release}
273 Avahi Qt 4 library bindings.
275 %description Qt -l pl
276 Wi±zania Avahi dla biblioteki Qt 4.
279 Summary: Header files for Avahi Qt 3 library bindings
280 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3
281 Group: Development/Libraries
282 Requires: %{name}-devel = %{version}-%{release}
283 Requires: %{name}-Qt = %{version}-%{release}
285 %description Qt-devel
286 Header files for Avahi Qt 4 library bindings.
288 %description Qt-devel -l pl
289 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 4.
292 Summary: Static Avahi Qt 4 library
293 Summary(pl): Statyczna biblioteka Avahi Qt 4
294 Group: Development/Libraries
295 Requires: %{name}-Qt-devel = %{version}-%{release}
297 %description Qt-static
298 Static Avahi Qt 4 library.
300 %description Qt-static -l pl
301 Statyczna biblioteka Avahi Qt 4.
303 %package -n dotnet-avahi
304 Summary: Avahi MONO bindings
305 Summary(pl): Wi±zania Avahi dla MONO
308 %description -n dotnet-avahi
311 %description -n dotnet-avahi -l pl
312 Wi±zania Avahi dla MONO.
314 %package -n dotnet-avahi-devel
315 Summary: Development files for MONO Avahi bindings
316 Summary(pl): Pliki rozwojowe wi±zañ Avahi dla MONO
317 Group: Development/Libraries
318 Requires: dotnet-avahi = %{version}-%{release}
321 %description -n dotnet-avahi-devel
322 Development files for MONO Avahi bindings.
324 %description -n dotnet-avahi-devel -l pl
325 Pliki rozwojowe wi±zañ Avahi dla MONO.
328 Summary: Miniature web server
329 Summary(pl): Miniaturowy serwer web
332 %description bookmarks
333 A Python based miniature web server that browses for mDNS/DNS-SD
334 services of type '_http._tcp' (i.e. web sites) and makes them
335 available as HTML links on http://localhost:8080/.
337 %description bookmarks -l pl
338 Napisany w Pythonie miniaturowy serwer WWW, pozwalaj±cy na
339 przegl±danie us³ug typu '_http._tcp' (np. stron WWW) i udostêpniaj±cy
340 je jako odno¶niki HTML na http://localhost:8080/.
343 Summary: Avahi Zeroconf browser
344 Summary(pl): Przegl±darka Zeroconf Avahi
346 Requires: %{name} = %{version}-%{release}
347 Requires: python-dbus
348 Requires: python-pygtk-glade
350 %description discover
351 A tool for enumerating all available services on the local LAN
352 (python-pygtk implementation).
354 %description discover -l pl
355 Narzêdzie wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej LAN
356 (implementacja w python-pygtk).
358 %package discover-standalone
359 Summary: Avahi Zeroconf browser
360 Summary(pl): Przegl±darka Zeroconf Avahi
362 Requires: %{name} = %{version}-%{release}
363 Requires: python-dbus
364 Requires: python-pygtk-glade
366 %description discover-standalone
367 GTK+ tool for enumerating all available services on the local LAN.
369 %description discover-standalone -l pl
370 Narzêdzie GTK+ wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej
374 Summary: Avahi CLI utilities
375 Summary(pl): Narzêdzia CLI Avahi
379 Command line utilities using avahi-client.
381 %description utils -l pl
382 Narzêdzia linii poleceñ korzystaj±ce z avahi-client.
392 %{__aclocal} -I common
397 --enable-compat-libdns_sd \
398 --enable-compat-howl \
400 %{!?with_qt:--disable-qt3 --disable-qt4} \
401 %{!?with_dotnet:--disable-mono} \
402 %{!?with_dotnet:--disable-monodoc}
406 rm -rf $RPM_BUILD_ROOT
407 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d}
410 DESTDIR=$RPM_BUILD_ROOT \
411 pythondir=%{py_sitedir}
413 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
414 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
416 ln -sf %{_includedir}/avahi-compat-libdns_sd/dns_sd.h \
417 $RPM_BUILD_ROOT%{_includedir}/dns_sd.h
419 ln -sf %{_pkgconfigdir}/avahi-compat-howl.pc \
420 $RPM_BUILD_ROOT%{_pkgconfigdir}/howl.pc
422 rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/{__init__,SimpleGladeApp}.py
425 rm -rf $RPM_BUILD_ROOT
428 %groupadd -g 165 -r -f avahi
429 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
432 /sbin/chkconfig --add %{name}-daemon
433 %service %{name}-daemon restart
434 /sbin/chkconfig --add %{name}-dnsconfd
435 %service %{name}-dnsconfd restart
438 if [ "$1" = "0" ]; then
439 %service -q %{name}-dnsconfd stop
440 /sbin/chkconfig --del %{name}-dnsconfd
441 %service -q %{name}-daemon stop
442 /sbin/chkconfig --del %{name}-daemon
446 if [ "$1" = "0" ]; then
451 %post libs -p /sbin/ldconfig
452 %postun libs -p /sbin/ldconfig
454 %post compat-libdns_sd -p /sbin/ldconfig
455 %postun compat-libdns_sd -p /sbin/ldconfig
457 %post compat-howl -p /sbin/ldconfig
458 %postun compat-howl -p /sbin/ldconfig
460 %post glib -p /sbin/ldconfig
461 %postun glib -p /sbin/ldconfig
463 %post qt -p /sbin/ldconfig
464 %postun qt -p /sbin/ldconfig
466 %post Qt -p /sbin/ldconfig
467 %postun Qt -p /sbin/ldconfig
470 %defattr(644,root,root,755)
471 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
473 %dir %{_sysconfdir}/avahi
474 %dir %{_sysconfdir}/avahi/services
475 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
476 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-dnsconfd.action
477 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/hosts
478 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
479 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
481 %attr(755,root,root) %{_bindir}/avahi-browse
482 %attr(755,root,root) %{_bindir}/avahi-publish
483 %attr(755,root,root) %{_bindir}/avahi-resolve
485 %attr(755,root,root) %{_sbindir}/avahi-daemon
486 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
488 %dir %{_datadir}/%{name}
489 %dir %{_datadir}/%{name}/introspection
490 %{_datadir}/%{name}/introspection/*.introspect
491 %{_datadir}/%{name}/avahi-service.dtd
492 %{_datadir}/%{name}/service-types
493 %{_datadir}/%{name}/service-types.db
497 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
498 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
501 %defattr(644,root,root,755)
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.*.*.*
507 %defattr(644,root,root,755)
508 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
509 %attr(755,root,root) %{_libdir}/libavahi-client.so
510 %attr(755,root,root) %{_libdir}/libavahi-common.so
511 %attr(755,root,root) %{_libdir}/libavahi-core.so
512 %{_libdir}/libavahi-client.la
513 %{_libdir}/libavahi-common.la
514 %{_libdir}/libavahi-core.la
515 %{_includedir}/avahi-client
516 %{_includedir}/avahi-common
517 %{_includedir}/avahi-core
518 %{_pkgconfigdir}/avahi-client.pc
519 %{_pkgconfigdir}/avahi-core.pc
522 %defattr(644,root,root,755)
523 %{_libdir}/libavahi-client.a
524 %{_libdir}/libavahi-common.a
525 %{_libdir}/libavahi-core.a
527 %files compat-libdns_sd
528 %defattr(644,root,root,755)
529 %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.*
531 %files compat-libdns_sd-devel
532 %defattr(644,root,root,755)
533 %attr(755,root,root) %{_libdir}/libdns_sd.so
534 %{_libdir}/libdns_sd.la
535 %{_includedir}/avahi-compat-libdns_sd
536 %{_includedir}/dns_sd.h
537 %{_pkgconfigdir}/avahi-compat-libdns_sd.pc
539 %files compat-libdns_sd-static
540 %defattr(644,root,root,755)
541 %{_libdir}/libdns_sd.a
544 %defattr(644,root,root,755)
545 %attr(755,root,root) %{_libdir}/libhowl.so.*.*.*
547 %files compat-howl-devel
548 %defattr(644,root,root,755)
549 %attr(755,root,root) %{_libdir}/libhowl.so
550 %{_libdir}/libhowl.la
551 %{_includedir}/avahi-compat-howl
552 %{_pkgconfigdir}/avahi-compat-howl.pc
553 %{_pkgconfigdir}/howl.pc
555 %files compat-howl-static
556 %defattr(644,root,root,755)
560 %files -n dotnet-avahi
561 %defattr(644,root,root,755)
562 %{_prefix}/lib/mono/gac/avahi-sharp
564 %files -n dotnet-avahi-devel
565 %defattr(644,root,root,755)
566 %{_libdir}/monodoc/sources/avahi-*
567 %{_pkgconfigdir}/avahi-sharp.pc
571 %defattr(644,root,root,755)
572 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
575 %defattr(644,root,root,755)
576 %attr(755,root,root) %{_libdir}/libavahi-glib.so
577 %{_libdir}/libavahi-glib.la
578 %{_includedir}/avahi-glib
579 %{_pkgconfigdir}/avahi-glib.pc
582 %defattr(644,root,root,755)
583 %{_libdir}/libavahi-glib.a
587 %defattr(644,root,root,755)
588 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
591 %defattr(644,root,root,755)
592 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
593 %{_libdir}/libavahi-qt3.la
594 %{_includedir}/avahi-qt3
595 %{_pkgconfigdir}/avahi-qt3.pc
598 %defattr(644,root,root,755)
599 %{_libdir}/libavahi-qt3.a
602 %defattr(644,root,root,755)
603 %attr(755,root,root) %{_libdir}/libavahi-qt4.so.*.*.*
606 %defattr(644,root,root,755)
607 %attr(755,root,root) %{_libdir}/libavahi-qt4.so
608 %{_libdir}/libavahi-qt4.la
609 %{_includedir}/avahi-qt4
610 %{_pkgconfigdir}/avahi-qt4.pc
613 %defattr(644,root,root,755)
614 %{_libdir}/libavahi-qt4.a
618 %defattr(644,root,root,755)
619 %attr(755,root,root) %{_bindir}/avahi-bookmarks
622 %defattr(644,root,root,755)
623 %attr(755,root,root) %{_bindir}/avahi-discover
624 # XXX: possibly missing %{_datadir}/%{name} dir, shared subdir
625 %dir %{_datadir}/%{name}/interfaces
626 %{_datadir}/%{name}/interfaces/avahi-discover.glade
628 %{_desktopdir}/*.desktop
629 %{_pixmapsdir}/avahi.png
631 %files discover-standalone
632 %defattr(644,root,root,755)
633 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
634 # XXX: possibly missing %{_datadir}/%{name} dir, shared subdir
635 %dir %{_datadir}/%{name}/interfaces
636 %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade
639 %defattr(644,root,root,755)
640 %attr(755,root,root) %{_bindir}/avahi-browse
641 %attr(755,root,root) %{_bindir}/avahi-publish
642 %attr(755,root,root) %{_bindir}/avahi-resolve