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-libxml2
43 BuildRequires: python-pygtk-devel
45 BuildRequires: QtCore-devel
46 BuildRequires: qt-devel >= 3.0
47 BuildRequires: qt4-build
49 BuildRequires: rpmbuild(macros) >= 1.228
50 Requires(post,preun): /sbin/chkconfig
51 Requires: dbus >= 0.60-2
52 Requires: %{name}-libs = %{version}-%{release}
53 Provides: group(avahi)
55 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
58 Avahi is an implementation the DNS Service Discovery and Multicast DNS
59 specifications for Zeroconf Computing. It uses D-BUS for communication
60 between user applications and a system daemon.
63 Avahi jest implementacj± specyfikacji DNS Service Discovery i
64 Multicast DNS dla Zeroconf Computing. U¿ywa D-BUSa dla komunikacji
65 pomiêdzy programami u¿ytkownika a demonem systemowym.
68 Summary: Avahi client, common and core libraries
69 Summary(pl): Biblioteki Avahi: klienta, wspólna i g³ówna
73 Avahi client, common and core libraries.
75 %description libs -l pl
76 Biblioteki Avahi: klienta, wspólna i g³ówna.
79 Summary: Header files for Avahi library
80 Summary(pl): Pliki nag³ówkowe biblioteki Avahi
81 Group: Development/Libraries
82 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 Provides: mdns-bonjour-devel
123 Obsoletes: mDNSResponder-devel
125 %description compat-libdns_sd-devel
126 Header files for Avahi Bonjour compat library.
128 %description compat-libdns_sd-devel -l pl
129 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Bonjour.
131 %package compat-libdns_sd-static
132 Summary: Static Avahi Bonjour compat library
133 Summary(pl): Statyczna biblioteka Avahi zgodna z Bonjour
134 Group: Development/Libraries
135 Requires: %{name}-compat-libdns_sd-devel = %{version}-%{release}
136 Provides: mdns-bonjour-static
138 %description compat-libdns_sd-static
139 Static Avahi Bonjour compat library.
141 %description compat-libdns_sd-static -l pl
142 Statyczna biblioteka Avahi zgodna z Bonjour.
145 Summary: Avahi Howl compat library
146 Summary(pl): Biblioteka Avahi zgodna z Howl
148 Provides: mdns-howl-libs
151 %description compat-howl
152 Avahi Howl compat library.
154 %description compat-howl -l pl
155 Biblioteka Avahi zgodna z Howl.
157 %package compat-howl-devel
158 Summary: Header files for Avahi Howl compat library
159 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Howl
160 Group: Development/Libraries
161 Requires: %{name}-compat-howl = %{version}-%{release}
162 Provides: mdns-howl-devel
163 Obsoletes: howl-devel
165 %description compat-howl-devel
166 Header files for Avahi Howl compat library.
168 %description compat-howl-devel -l pl
169 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Howl.
171 %package compat-howl-static
172 Summary: Static Avahi Howl compat library
173 Summary(pl): Statyczna biblioteka Avahi zgodna z Howl
174 Group: Development/Libraries
175 Requires: %{name}-compat-howl-devel = %{version}-%{release}
176 Provides: mdns-howl-static
177 Obsoletes: howl-static
179 %description compat-howl-static
180 Static Avahi Howl compat library.
182 %description compat-howl-static -l pl
183 Statyczna biblioteka Avahi zgodna z Howl.
186 Summary: Avahi GLib library bindings
187 Summary(pl): Wi±zania Avahi dla bibioteki GLib
191 Avahi GLib library bindings.
193 %description glib -l pl
194 Wi±zania Avahi dla bibioteki GLib.
197 Summary: Header files for Avahi GLib library bindings
198 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki GLib
199 Group: Development/Libraries
200 Requires: %{name}-devel = %{version}-%{release}
201 Requires: %{name}-glib = %{version}-%{release}
202 Requires: glib2-devel >= 1:2.4.0
204 %description glib-devel
205 This is the package containing the header files for Avahi-glib
208 %description glib-devel -l pl
209 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi-glib.
212 Summary: Static Avahi GLib library
213 Summary(pl): Statyczna biblioteka Avahi GLib
214 Group: Development/Libraries
215 Requires: %{name}-glib-devel = %{version}-%{release}
217 %description glib-static
218 Static Avahi GLib library.
220 %description glib-static -l pl
221 Statyczna biblioteka Avahi GLib.
224 Summary: Avahi Qt 3 library bindings
225 Summary(pl): Wi±zania Avahi dla biblioteki Qt 3
227 Requires: %{name}-libs = %{version}-%{release}
231 Avahi Qt 3 library bindings.
233 %description qt -l pl
234 Wi±zania Avahi dla biblioteki Qt 3.
237 Summary: Header files for Avahi Qt 3 library bindings
238 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3
239 Group: Development/Libraries
240 Requires: %{name}-devel = %{version}-%{release}
241 Requires: %{name}-qt = %{version}-%{release}
242 Requires: qt-devel >= 3.0
243 Obsoletes: avahi-qt3-devel
245 %description qt-devel
246 Header files for Avahi Qt 3 library bindings.
248 %description qt-devel -l pl
249 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3.
252 Summary: Static Avahi Qt 3 library
253 Summary(pl): Statyczna biblioteka Avahi Qt 3
254 Group: Development/Libraries
255 Requires: %{name}-qt3-devel = %{version}-%{release}
256 Obsoletes: avahi-qt3-static
258 %description qt-static
259 Static Avahi Qt 3 library.
261 %description qt-static -l pl
262 Statyczna biblioteka Avahi Qt 3.
265 Summary: Avahi Qt 4 library bindings
266 Summary(pl): Wi±zania Avahi dla biblioteki Qt 4
268 Requires: %{name}-libs = %{version}-%{release}
271 Avahi Qt 4 library bindings.
273 %description Qt -l pl
274 Wi±zania Avahi dla biblioteki Qt 4.
277 Summary: Header files for Avahi Qt 3 library bindings
278 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3
279 Group: Development/Libraries
280 Requires: %{name}-devel = %{version}-%{release}
281 Requires: %{name}-Qt = %{version}-%{release}
283 %description Qt-devel
284 Header files for Avahi Qt 4 library bindings.
286 %description Qt-devel -l pl
287 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 4.
290 Summary: Static Avahi Qt 4 library
291 Summary(pl): Statyczna biblioteka Avahi Qt 4
292 Group: Development/Libraries
293 Requires: %{name}-Qt-devel = %{version}-%{release}
295 %description Qt-static
296 Static Avahi Qt 4 library.
298 %description Qt-static -l pl
299 Statyczna biblioteka Avahi Qt 4.
301 %package -n dotnet-avahi
302 Summary: Avahi MONO bindings
303 Summary(pl): Wi±zania Avahi dla MONO
306 %description -n dotnet-avahi
309 %description -n dotnet-avahi -l pl
310 Wi±zania Avahi dla MONO.
312 %package -n dotnet-avahi-devel
313 Summary: Development files for MONO Avahi bindings
314 Summary(pl): Pliki rozwojowe wi±zañ Avahi dla MONO
315 Group: Development/Libraries
316 Requires: dotnet-avahi = %{version}-%{release}
319 %description -n dotnet-avahi-devel
320 Development files for MONO Avahi bindings.
322 %description -n dotnet-avahi-devel -l pl
323 Pliki rozwojowe wi±zañ Avahi dla MONO.
326 Summary: Miniature web server
327 Summary(pl): Miniaturowy serwer web
330 %description bookmarks
331 A Python based miniature web server that browses for mDNS/DNS-SD
332 services of type '_http._tcp' (i.e. web sites) and makes them
333 available as HTML links on http://localhost:8080/.
335 %description bookmarks -l pl
336 Napisany w Pythonie miniaturowy serwer WWW, pozwalaj±cy na
337 przegl±danie us³ug typu '_http._tcp' (np. stron WWW) i udostêpniaj±cy
338 je jako odno¶niki HTML na http://localhost:8080/.
341 Summary: Avahi Zeroconf browser
342 Summary(pl): Przegl±darka Zeroconf Avahi
345 %description discover
346 A tool for enumerating all available services on the local LAN
347 (python-pygtk implementation).
349 %description discover -l pl
350 Narzêdzie wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej LAN
351 (implementacja w python-pygtk).
353 %package discover-standalone
354 Summary: Avahi Zeroconf browser
355 Summary(pl): Przegl±darka Zeroconf Avahi
358 %description discover-standalone
359 GTK+ tool for enumerating all available services on the local LAN.
361 %description discover-standalone -l pl
362 Narzêdzie GTK+ wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej
366 Summary: Avahi CLI utilities
367 Summary(pl): Narzêdzia CLI Avahi
371 Command line utilities using avahi-client.
373 %description utils -l pl
374 Narzêdzia linii poleceñ korzystaj±ce z avahi-client.
384 %{__aclocal} -I common
389 --enable-compat-libdns_sd \
390 --enable-compat-howl \
392 %{!?with_qt:--disable-qt3 --disable-qt4} \
393 %{!?with_dotnet:--disable-mono} \
394 %{!?with_dotnet:--disable-monodoc}
398 rm -rf $RPM_BUILD_ROOT
399 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d}
402 DESTDIR=$RPM_BUILD_ROOT \
403 pythondir=%{py_sitedir}
405 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
406 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
408 ln -sf %{_includedir}/avahi-compat-libdns_sd/dns_sd.h \
409 $RPM_BUILD_ROOT%{_includedir}/dns_sd.h
411 ln -sf %{_pkgconfigdir}/avahi-compat-howl.pc \
412 $RPM_BUILD_ROOT%{_pkgconfigdir}/howl.pc
414 rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/{__init__,SimpleGladeApp}.py
417 rm -rf $RPM_BUILD_ROOT
420 %groupadd -g 165 -r -f avahi
421 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
424 /sbin/chkconfig --add %{name}-daemon
425 %service %{name}-daemon restart
426 /sbin/chkconfig --add %{name}-dnsconfd
427 %service %{name}-dnsconfd restart
430 if [ "$1" = "0" ]; then
431 %service -q %{name}-dnsconfd stop
432 /sbin/chkconfig --del %{name}-dnsconfd
433 %service -q %{name}-daemon stop
434 /sbin/chkconfig --del %{name}-daemon
438 if [ "$1" = "0" ]; then
443 %post libs -p /sbin/ldconfig
444 %postun libs -p /sbin/ldconfig
446 %post compat-libdns_sd -p /sbin/ldconfig
447 %postun compat-libdns_sd -p /sbin/ldconfig
449 %post compat-howl -p /sbin/ldconfig
450 %postun compat-howl -p /sbin/ldconfig
452 %post glib -p /sbin/ldconfig
453 %postun glib -p /sbin/ldconfig
455 %post qt -p /sbin/ldconfig
456 %postun qt -p /sbin/ldconfig
458 %post Qt -p /sbin/ldconfig
459 %postun Qt -p /sbin/ldconfig
462 %defattr(644,root,root,755)
463 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
465 %dir %{_sysconfdir}/avahi
466 %dir %{_sysconfdir}/avahi/services
467 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
468 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-dnsconfd.action
469 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/hosts
470 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
471 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
473 %attr(755,root,root) %{_bindir}/avahi-browse
474 %attr(755,root,root) %{_bindir}/avahi-publish
475 %attr(755,root,root) %{_bindir}/avahi-resolve
477 %attr(755,root,root) %{_sbindir}/avahi-daemon
478 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
480 %dir %{_datadir}/%{name}
481 %dir %{_datadir}/%{name}/introspection
482 %{_datadir}/%{name}/introspection/*.introspect
483 %{_datadir}/%{name}/avahi-service.dtd
484 %{_datadir}/%{name}/service-types
485 %{_datadir}/%{name}/service-types.db
489 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
490 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
493 %defattr(644,root,root,755)
494 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
495 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
496 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
499 %defattr(644,root,root,755)
500 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
501 %attr(755,root,root) %{_libdir}/libavahi-client.so
502 %attr(755,root,root) %{_libdir}/libavahi-common.so
503 %attr(755,root,root) %{_libdir}/libavahi-core.so
504 %{_libdir}/libavahi-client.la
505 %{_libdir}/libavahi-common.la
506 %{_libdir}/libavahi-core.la
507 %{_includedir}/avahi-client
508 %{_includedir}/avahi-common
509 %{_includedir}/avahi-core
510 %{_pkgconfigdir}/avahi-client.pc
511 %{_pkgconfigdir}/avahi-core.pc
514 %defattr(644,root,root,755)
515 %{_libdir}/libavahi-client.a
516 %{_libdir}/libavahi-common.a
517 %{_libdir}/libavahi-core.a
519 %files compat-libdns_sd
520 %defattr(644,root,root,755)
521 %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.*
523 %files compat-libdns_sd-devel
524 %defattr(644,root,root,755)
525 %attr(755,root,root) %{_libdir}/libdns_sd.so
526 %{_libdir}/libdns_sd.la
527 %{_includedir}/avahi-compat-libdns_sd
528 %{_includedir}/dns_sd.h
529 %{_pkgconfigdir}/avahi-compat-libdns_sd.pc
531 %files compat-libdns_sd-static
532 %defattr(644,root,root,755)
533 %{_libdir}/libdns_sd.a
536 %defattr(644,root,root,755)
537 %attr(755,root,root) %{_libdir}/libhowl.so.*.*.*
539 %files compat-howl-devel
540 %defattr(644,root,root,755)
541 %attr(755,root,root) %{_libdir}/libhowl.so
542 %{_libdir}/libhowl.la
543 %{_includedir}/avahi-compat-howl
544 %{_pkgconfigdir}/avahi-compat-howl.pc
545 %{_pkgconfigdir}/howl.pc
547 %files compat-howl-static
548 %defattr(644,root,root,755)
552 %files -n dotnet-avahi
553 %defattr(644,root,root,755)
554 %{_prefix}/lib/mono/gac/avahi-sharp
556 %files -n dotnet-avahi-devel
557 %defattr(644,root,root,755)
558 %{_libdir}/monodoc/sources/avahi-*
559 %{_pkgconfigdir}/avahi-sharp.pc
563 %defattr(644,root,root,755)
564 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
567 %defattr(644,root,root,755)
568 %attr(755,root,root) %{_libdir}/libavahi-glib.so
569 %{_libdir}/libavahi-glib.la
570 %{_includedir}/avahi-glib
571 %{_pkgconfigdir}/avahi-glib.pc
574 %defattr(644,root,root,755)
575 %{_libdir}/libavahi-glib.a
579 %defattr(644,root,root,755)
580 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
583 %defattr(644,root,root,755)
584 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
585 %{_libdir}/libavahi-qt3.la
586 %{_includedir}/avahi-qt3
587 %{_pkgconfigdir}/avahi-qt3.pc
590 %defattr(644,root,root,755)
591 %{_libdir}/libavahi-qt3.a
594 %defattr(644,root,root,755)
595 %attr(755,root,root) %{_libdir}/libavahi-qt4.so.*.*.*
598 %defattr(644,root,root,755)
599 %attr(755,root,root) %{_libdir}/libavahi-qt4.so
600 %{_libdir}/libavahi-qt4.la
601 %{_includedir}/avahi-qt4
602 %{_pkgconfigdir}/avahi-qt4.pc
605 %defattr(644,root,root,755)
606 %{_libdir}/libavahi-qt4.a
610 %defattr(644,root,root,755)
611 %attr(755,root,root) %{_bindir}/avahi-bookmarks
614 %defattr(644,root,root,755)
615 %attr(755,root,root) %{_bindir}/avahi-discover
616 # XXX: possibly missing %{_datadir}/%{name} dir, shared subdir
617 %dir %{_datadir}/%{name}/interfaces
618 %{_datadir}/%{name}/interfaces/avahi-discover.glade
620 %{_desktopdir}/*.desktop
621 %{_pixmapsdir}/avahi.png
623 %files discover-standalone
624 %defattr(644,root,root,755)
625 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
626 # XXX: possibly missing %{_datadir}/%{name} dir, shared subdir
627 %dir %{_datadir}/%{name}/interfaces
628 %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade
631 %defattr(644,root,root,755)
632 %attr(755,root,root) %{_bindir}/avahi-browse
633 %attr(755,root,root) %{_bindir}/avahi-publish
634 %attr(755,root,root) %{_bindir}/avahi-resolve