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 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
347 %description discover
348 A tool for enumerating all available services on the local LAN
349 (python-pygtk implementation).
351 %description discover -l pl
352 Narzêdzie wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej LAN
353 (implementacja w python-pygtk).
355 %package discover-standalone
356 Summary: Avahi Zeroconf browser
357 Summary(pl): Przegl±darka Zeroconf Avahi
360 %description discover-standalone
361 GTK+ tool for enumerating all available services on the local LAN.
363 %description discover-standalone -l pl
364 Narzêdzie GTK+ wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej
368 Summary: Avahi CLI utilities
369 Summary(pl): Narzêdzia CLI Avahi
373 Command line utilities using avahi-client.
375 %description utils -l pl
376 Narzêdzia linii poleceñ korzystaj±ce z avahi-client.
386 %{__aclocal} -I common
391 --enable-compat-libdns_sd \
392 --enable-compat-howl \
394 %{!?with_qt:--disable-qt3 --disable-qt4} \
395 %{!?with_dotnet:--disable-mono} \
396 %{!?with_dotnet:--disable-monodoc}
400 rm -rf $RPM_BUILD_ROOT
401 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d}
404 DESTDIR=$RPM_BUILD_ROOT \
405 pythondir=%{py_sitedir}
407 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
408 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
410 ln -sf %{_includedir}/avahi-compat-libdns_sd/dns_sd.h \
411 $RPM_BUILD_ROOT%{_includedir}/dns_sd.h
413 ln -sf %{_pkgconfigdir}/avahi-compat-howl.pc \
414 $RPM_BUILD_ROOT%{_pkgconfigdir}/howl.pc
416 rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/{__init__,SimpleGladeApp}.py
419 rm -rf $RPM_BUILD_ROOT
422 %groupadd -g 165 -r -f avahi
423 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
426 /sbin/chkconfig --add %{name}-daemon
427 %service %{name}-daemon restart
428 /sbin/chkconfig --add %{name}-dnsconfd
429 %service %{name}-dnsconfd restart
432 if [ "$1" = "0" ]; then
433 %service -q %{name}-dnsconfd stop
434 /sbin/chkconfig --del %{name}-dnsconfd
435 %service -q %{name}-daemon stop
436 /sbin/chkconfig --del %{name}-daemon
440 if [ "$1" = "0" ]; then
445 %post libs -p /sbin/ldconfig
446 %postun libs -p /sbin/ldconfig
448 %post compat-libdns_sd -p /sbin/ldconfig
449 %postun compat-libdns_sd -p /sbin/ldconfig
451 %post compat-howl -p /sbin/ldconfig
452 %postun compat-howl -p /sbin/ldconfig
454 %post glib -p /sbin/ldconfig
455 %postun glib -p /sbin/ldconfig
457 %post qt -p /sbin/ldconfig
458 %postun qt -p /sbin/ldconfig
460 %post Qt -p /sbin/ldconfig
461 %postun Qt -p /sbin/ldconfig
464 %defattr(644,root,root,755)
465 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
467 %dir %{_sysconfdir}/avahi
468 %dir %{_sysconfdir}/avahi/services
469 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
470 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-dnsconfd.action
471 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/hosts
472 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
473 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
475 %attr(755,root,root) %{_bindir}/avahi-browse
476 %attr(755,root,root) %{_bindir}/avahi-publish
477 %attr(755,root,root) %{_bindir}/avahi-resolve
479 %attr(755,root,root) %{_sbindir}/avahi-daemon
480 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
482 %dir %{_datadir}/%{name}
483 %dir %{_datadir}/%{name}/introspection
484 %{_datadir}/%{name}/introspection/*.introspect
485 %{_datadir}/%{name}/avahi-service.dtd
486 %{_datadir}/%{name}/service-types
487 %{_datadir}/%{name}/service-types.db
491 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
492 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
495 %defattr(644,root,root,755)
496 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
497 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
498 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
501 %defattr(644,root,root,755)
502 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
503 %attr(755,root,root) %{_libdir}/libavahi-client.so
504 %attr(755,root,root) %{_libdir}/libavahi-common.so
505 %attr(755,root,root) %{_libdir}/libavahi-core.so
506 %{_libdir}/libavahi-client.la
507 %{_libdir}/libavahi-common.la
508 %{_libdir}/libavahi-core.la
509 %{_includedir}/avahi-client
510 %{_includedir}/avahi-common
511 %{_includedir}/avahi-core
512 %{_pkgconfigdir}/avahi-client.pc
513 %{_pkgconfigdir}/avahi-core.pc
516 %defattr(644,root,root,755)
517 %{_libdir}/libavahi-client.a
518 %{_libdir}/libavahi-common.a
519 %{_libdir}/libavahi-core.a
521 %files compat-libdns_sd
522 %defattr(644,root,root,755)
523 %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.*
525 %files compat-libdns_sd-devel
526 %defattr(644,root,root,755)
527 %attr(755,root,root) %{_libdir}/libdns_sd.so
528 %{_libdir}/libdns_sd.la
529 %{_includedir}/avahi-compat-libdns_sd
530 %{_includedir}/dns_sd.h
531 %{_pkgconfigdir}/avahi-compat-libdns_sd.pc
533 %files compat-libdns_sd-static
534 %defattr(644,root,root,755)
535 %{_libdir}/libdns_sd.a
538 %defattr(644,root,root,755)
539 %attr(755,root,root) %{_libdir}/libhowl.so.*.*.*
541 %files compat-howl-devel
542 %defattr(644,root,root,755)
543 %attr(755,root,root) %{_libdir}/libhowl.so
544 %{_libdir}/libhowl.la
545 %{_includedir}/avahi-compat-howl
546 %{_pkgconfigdir}/avahi-compat-howl.pc
547 %{_pkgconfigdir}/howl.pc
549 %files compat-howl-static
550 %defattr(644,root,root,755)
554 %files -n dotnet-avahi
555 %defattr(644,root,root,755)
556 %{_prefix}/lib/mono/gac/avahi-sharp
558 %files -n dotnet-avahi-devel
559 %defattr(644,root,root,755)
560 %{_libdir}/monodoc/sources/avahi-*
561 %{_pkgconfigdir}/avahi-sharp.pc
565 %defattr(644,root,root,755)
566 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
569 %defattr(644,root,root,755)
570 %attr(755,root,root) %{_libdir}/libavahi-glib.so
571 %{_libdir}/libavahi-glib.la
572 %{_includedir}/avahi-glib
573 %{_pkgconfigdir}/avahi-glib.pc
576 %defattr(644,root,root,755)
577 %{_libdir}/libavahi-glib.a
581 %defattr(644,root,root,755)
582 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
585 %defattr(644,root,root,755)
586 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
587 %{_libdir}/libavahi-qt3.la
588 %{_includedir}/avahi-qt3
589 %{_pkgconfigdir}/avahi-qt3.pc
592 %defattr(644,root,root,755)
593 %{_libdir}/libavahi-qt3.a
596 %defattr(644,root,root,755)
597 %attr(755,root,root) %{_libdir}/libavahi-qt4.so.*.*.*
600 %defattr(644,root,root,755)
601 %attr(755,root,root) %{_libdir}/libavahi-qt4.so
602 %{_libdir}/libavahi-qt4.la
603 %{_includedir}/avahi-qt4
604 %{_pkgconfigdir}/avahi-qt4.pc
607 %defattr(644,root,root,755)
608 %{_libdir}/libavahi-qt4.a
612 %defattr(644,root,root,755)
613 %attr(755,root,root) %{_bindir}/avahi-bookmarks
616 %defattr(644,root,root,755)
617 %attr(755,root,root) %{_bindir}/avahi-discover
618 # XXX: possibly missing %{_datadir}/%{name} dir, shared subdir
619 %dir %{_datadir}/%{name}/interfaces
620 %{_datadir}/%{name}/interfaces/avahi-discover.glade
622 %{_desktopdir}/*.desktop
623 %{_pixmapsdir}/avahi.png
625 %files discover-standalone
626 %defattr(644,root,root,755)
627 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
628 # XXX: possibly missing %{_datadir}/%{name} dir, shared subdir
629 %dir %{_datadir}/%{name}/interfaces
630 %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade
633 %defattr(644,root,root,755)
634 %attr(755,root,root) %{_bindir}/avahi-browse
635 %attr(755,root,root) %{_bindir}/avahi-publish
636 %attr(755,root,root) %{_bindir}/avahi-resolve