3 %bcond_with dotnet # build with dotnet bindings
4 %bcond_without qt # build with qt bindings
6 Summary: Free mDNS/DNS-SD implementation
7 Summary(pl): Wolna implementacja mDNS/DNS-SD
13 Source0: http://avahi.org/download/%{name}-%{version}.tar.gz
14 # Source0-md5: 2652910f0e52c373d7a15b6851750517
15 Source1: %{name}-daemon
16 Source2: %{name}-dnsconfd
18 Patch0: %{name}-desktop.patch
19 Patch1: %{name}-glade.patch
20 URL: http://avahi.org/
21 BuildRequires: autoconf
22 BuildRequires: automake
23 BuildRequires: dbus-devel >= 0.34
24 BuildRequires: doxygen
25 BuildRequires: expat-devel
26 BuildRequires: gdbm-devel
27 BuildRequires: glib2-devel >= 1:2.4.0
28 BuildRequires: graphviz
29 BuildRequires: gtk+2-devel >= 2:2.4.0
30 BuildRequires: libdaemon-devel >= 0.5
31 BuildRequires: libglade2-devel >= 2.4.0
32 BuildRequires: libtool
35 BuildRequires: monodoc
37 BuildRequires: python-dbus
38 BuildRequires: python-pygtk-devel
40 BuildRequires: qt-devel >= 3.0
42 BuildRequires: rpmbuild(macros) >= 1.228
43 Requires(post,preun): /sbin/chkconfig
44 Requires: dbus >= 0.60-2
45 Requires: %{name}-libs = %{version}-%{release}
46 Provides: group(avahi)
48 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51 Avahi is an implementation the DNS Service Discovery and Multicast DNS
52 specifications for Zeroconf Computing. It uses D-BUS for communication
53 between user applications and a system daemon.
56 Avahi jest implementacj± specyfikacji DNS Service Discovery i
57 Multicast DNS dla Zeroconf Computing. U¿ywa D-BUSa dla komunikacji
58 pomiêdzy programami u¿ytkownika a demonem systemowym.
61 Summary: Avahi client, common and core libraries
62 Summary(pl): Biblioteki Avahi: klienta, wspólna i g³ówna
66 Avahi client, common and core libraries.
68 %description libs -l pl
69 Biblioteki Avahi: klienta, wspólna i g³ówna.
72 Summary: Header files for Avahi library
73 Summary(pl): Pliki nag³ówkowe biblioteki Avahi
74 Group: Development/Libraries
75 Requires: %{name}-libs = %{version}-%{release}
77 Requires: libdaemon-devel >= 0.5
80 This is the package containing the header files for Avahi library.
82 %description devel -l pl
83 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi.
86 Summary: Static Avahi library
87 Summary(pl): Statyczna biblioteka Avahi
88 Group: Development/Libraries
89 Requires: %{name}-devel = %{version}-%{release}
94 %description static -l pl
95 Statyczna biblioteka Avahi.
97 %package compat-libdns_sd
98 Summary: Avahi Bonjour compat library
99 Summary(pl): Biblioteka Avahi zgodna z Bonjour
101 Provides: mdns-bonjour
102 Obsoletes: mDNSResponder-libs
104 %description compat-libdns_sd
105 Avahi Bonjour compat library.
107 %description compat-libdns_sd -l pl
108 Biblioteka Avahi zgodna z Bonjour.
110 %package compat-libdns_sd-devel
111 Summary: Header files for Avahi Bonjour compat library
112 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Bonjour
113 Group: Development/Libraries
114 Requires: %{name}-compat-libdns_sd = %{version}-%{release}
115 Provides: mdns-bonjour-devel
116 Obsoletes: mDNSResponder-devel
118 %description compat-libdns_sd-devel
119 Header files for Avahi Bonjour compat library.
121 %description compat-libdns_sd-devel -l pl
122 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Bonjour.
124 %package compat-libdns_sd-static
125 Summary: Static Avahi Bonjour compat library
126 Summary(pl): Statyczna biblioteka Avahi zgodna z Bonjour
127 Group: Development/Libraries
128 Requires: %{name}-libdns_sd-devel = %{version}-%{release}
129 Provides: mdns-bonjour-static
131 %description compat-libdns_sd-static
132 Static Avahi Bonjour compat library.
134 %description compat-libdns_sd-static -l pl
135 Statyczna biblioteka Avahi zgodna z Bonjour.
138 Summary: Avahi Howl compat library
139 Summary(pl): Biblioteka Avahi zgodna z Howl
141 Provides: mdns-howl-libs
144 %description compat-howl
145 Avahi Howl compat library.
147 %description compat-howl -l pl
148 Biblioteka Avahi zgodna z Howl.
150 %package compat-howl-devel
151 Summary: Header files for Avahi Howl compat library
152 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Howl
153 Group: Development/Libraries
154 Requires: %{name}-compat-howl = %{version}-%{release}
155 Provides: mdns-howl-devel
156 Obsoletes: howl-devel
158 %description compat-howl-devel
159 Header files for Avahi Howl compat library.
161 %description compat-howl-devel -l pl
162 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Howl.
164 %package compat-howl-static
165 Summary: Static Avahi Howl compat library
166 Summary(pl): Statyczna biblioteka Avahi zgodna z Howl
167 Group: Development/Libraries
168 Requires: %{name}-howl-devel = %{version}-%{release}
169 Provides: mdns-howl-static
170 Obsoletes: howl-static
172 %description compat-howl-static
173 Static Avahi Howl compat library.
175 %description compat-howl-static -l pl
176 Statyczna biblioteka Avahi zgodna z Howl.
179 Summary: Avahi GLib library bindings
180 Summary(pl): Wi±zania Avahi dla bibioteki GLib
184 Avahi GLib library bindings.
186 %description glib -l pl
187 Wi±zania Avahi dla bibioteki GLib.
190 Summary: Header files for Avahi GLib library bindings
191 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki GLib
192 Group: Development/Libraries
193 Requires: %{name}-devel = %{version}-%{release}
194 Requires: %{name}-glib = %{version}-%{release}
195 Requires: glib2-devel >= 1:2.4.0
197 %description glib-devel
198 This is the package containing the header files for Avahi-glib
201 %description glib-devel -l pl
202 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi-glib.
205 Summary: Static Avahi GLib library
206 Summary(pl): Statyczna biblioteka Avahi GLib
207 Group: Development/Libraries
208 Requires: %{name}-glib-devel = %{version}-%{release}
210 %description glib-static
211 Static Avahi GLib library.
213 %description glib-static -l pl
214 Statyczna biblioteka Avahi GLib.
217 Summary: Avahi Qt 3 library bindings
218 Summary(pl): Wi±zania Avahi dla biblioteki Qt 3
220 Requires: %{name}-libs = %{version}-%{release}
223 Avahi Qt 3 library bindings.
225 %description qt3 -l pl
226 Wi±zania Avahi dla biblioteki Qt 3.
229 Summary: Header files for Avahi Qt 3 library bindings
230 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3
231 Group: Development/Libraries
232 Requires: %{name}-devel = %{version}-%{release}
233 Requires: %{name}-qt3 = %{version}-%{release}
234 Requires: qt-devel >= 3.0
236 %description qt3-devel
237 Header files for Avahi Qt 3 library bindings.
239 %description qt3-devel -l pl
240 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3.
243 Summary: Static Avahi Qt 3 library
244 Summary(pl): Statyczna biblioteka Avahi Qt 3
245 Group: Development/Libraries
246 Requires: %{name}-qt3-devel = %{version}-%{release}
248 %description qt3-static
249 Static Avahi Qt 3 library.
251 %description qt3-static -l pl
252 Statyczna biblioteka Avahi Qt 3.
254 %package -n dotnet-avahi
255 Summary: Avahi MONO bindings
256 Summary(pl): Wi±zania Avahi dla MONO
259 %description -n dotnet-avahi
262 %description -n dotnet-avahi -l pl
263 Wi±zania Avahi dla MONO.
265 %package -n dotnet-avahi-devel
266 Summary: Development files for MONO Avahi bindings
267 Summary(pl): Pliki rozwojowe wi±zañ Avahi dla MONO
268 Group: Development/Libraries
269 Requires: dotnet-avahi = %{version}-%{release}
272 %description -n dotnet-avahi-devel
273 Development files for MONO Avahi bindings.
275 %description -n dotnet-avahi-devel -l pl
276 Pliki rozwojowe wi±zañ Avahi dla MONO.
279 Summary: Miniature web server
280 Summary(pl): Miniaturowy serwer web
283 %description bookmarks
284 A Python based miniature web server that browses for mDNS/DNS-SD
285 services of type '_http._tcp' (i.e. web sites) and makes them
286 available as HTML links on http://localhost:8080/.
288 %description bookmarks -l pl
289 Napisany w Pythonie miniaturowy serwer WWW, pozwalaj±cy na
290 przegl±danie us³ug typu '_http._tcp' (np. stron WWW) i udostêpniaj±cy
291 je jako odno¶niki HTML na http://localhost:8080/.
294 Summary: Avahi Zeroconf browser
295 Summary(pl): Przegl±darka Zeroconf Avahi
298 %description discover
299 A tool for enumerating all available services on the local LAN
300 (python-pygtk implementation).
302 %description discover -l pl
303 Narzêdzie wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej LAN
304 (implementacja w python-pygtk).
306 %package discover-standalone
307 Summary: Avahi Zeroconf browser
308 Summary(pl): Przegl±darka Zeroconf Avahi
311 %description discover-standalone
312 GTK+ tool for enumerating all available services on the local LAN.
314 %description discover-standalone -l pl
315 Narzêdzie GTK+ wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej
319 Summary: Avahi CLI utilities
320 Summary(pl): Narzêdzia CLI Avahi
324 Command line utilities using avahi-client.
326 %description utils -l pl
327 Narzêdzia linii poleceñ korzystaj±ce z avahi-client.
336 %{__aclocal} -I common
341 --enable-compat-libdns_sd \
342 --enable-compat-howl \
345 %{!?with_qt:--disable-qt3} \
346 %{!?with_dotnet:--disable-mono} \
347 %{!?with_dotnet:--disable-monodoc}
351 rm -rf $RPM_BUILD_ROOT
352 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d}
355 DESTDIR=$RPM_BUILD_ROOT \
356 pythondir=%{py_sitedir}
358 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
359 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
361 ln -sf %{_includedir}/avahi-compat-libdns_sd/dns_sd.h \
362 $RPM_BUILD_ROOT%{_includedir}/dns_sd.h
364 ln -sf %{_pkgconfigdir}/avahi-compat-howl.pc \
365 $RPM_BUILD_ROOT%{_pkgconfigdir}/howl.pc
367 rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/{__init__,SimpleGladeApp}.py
370 rm -rf $RPM_BUILD_ROOT
373 %groupadd -g 165 -r -f avahi
374 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
377 /sbin/chkconfig --add %{name}-daemon
378 %service %{name}-daemon restart
379 /sbin/chkconfig --add %{name}-dnsconfd
380 %service %{name}-dnsconfd restart
383 if [ "$1" = "0" ]; then
384 %service -q %{name}-dnsconfd stop
385 /sbin/chkconfig --del %{name}-dnsconfd
386 %service -q %{name}-daemon stop
387 /sbin/chkconfig --del %{name}-daemon
391 if [ "$1" = "0" ]; then
396 %post libs -p /sbin/ldconfig
397 %postun libs -p /sbin/ldconfig
399 %post compat-libdns_sd -p /sbin/ldconfig
400 %postun compat-libdns_sd -p /sbin/ldconfig
402 %post compat-howl -p /sbin/ldconfig
403 %postun compat-howl -p /sbin/ldconfig
405 %post glib -p /sbin/ldconfig
406 %postun glib -p /sbin/ldconfig
408 %post qt3 -p /sbin/ldconfig
409 %postun qt3 -p /sbin/ldconfig
412 %defattr(644,root,root,755)
413 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
415 %dir %{_sysconfdir}/avahi
416 %dir %{_sysconfdir}/avahi/services
417 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
418 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-dnsconfd.action
419 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/hosts
420 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
421 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
423 %attr(755,root,root) %{_bindir}/avahi-browse
424 %attr(755,root,root) %{_bindir}/avahi-publish
425 %attr(755,root,root) %{_bindir}/avahi-resolve
427 %attr(755,root,root) %{_sbindir}/avahi-daemon
428 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
430 %dir %{_datadir}/%{name}
431 %dir %{_datadir}/%{name}/introspection
432 %{_datadir}/%{name}/introspection/*.introspect
433 %{_datadir}/%{name}/avahi-service.dtd
434 %{_datadir}/%{name}/service-types
435 %{_datadir}/%{name}/service-types.db
439 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
440 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
443 %defattr(644,root,root,755)
444 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
445 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
446 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
449 %defattr(644,root,root,755)
450 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
451 %attr(755,root,root) %{_libdir}/libavahi-client.so
452 %attr(755,root,root) %{_libdir}/libavahi-common.so
453 %attr(755,root,root) %{_libdir}/libavahi-core.so
454 %{_libdir}/libavahi-client.la
455 %{_libdir}/libavahi-common.la
456 %{_libdir}/libavahi-core.la
457 %{_includedir}/avahi-client
458 %{_includedir}/avahi-common
459 %{_includedir}/avahi-core
460 %{_pkgconfigdir}/avahi-client.pc
461 %{_pkgconfigdir}/avahi-core.pc
464 %defattr(644,root,root,755)
465 %{_libdir}/libavahi-client.a
466 %{_libdir}/libavahi-common.a
467 %{_libdir}/libavahi-core.a
469 %files compat-libdns_sd
470 %defattr(644,root,root,755)
471 %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.*
473 %files compat-libdns_sd-devel
474 %defattr(644,root,root,755)
475 %attr(755,root,root) %{_libdir}/libdns_sd.so
476 %{_libdir}/libdns_sd.la
477 %{_includedir}/avahi-compat-libdns_sd
478 %{_includedir}/dns_sd.h
479 %{_pkgconfigdir}/avahi-compat-libdns_sd.pc
481 %files compat-libdns_sd-static
482 %defattr(644,root,root,755)
483 %{_libdir}/libdns_sd.a
486 %defattr(644,root,root,755)
487 %attr(755,root,root) %{_libdir}/libhowl.so.*.*.*
489 %files compat-howl-devel
490 %defattr(644,root,root,755)
491 %attr(755,root,root) %{_libdir}/libhowl.so
492 %{_libdir}/libhowl.la
493 %{_includedir}/avahi-compat-howl
494 %{_pkgconfigdir}/avahi-compat-howl.pc
495 %{_pkgconfigdir}/howl.pc
497 %files compat-howl-static
498 %defattr(644,root,root,755)
502 %files -n dotnet-avahi
503 %defattr(644,root,root,755)
504 %{_prefix}/lib/mono/gac/avahi-sharp
506 %files -n dotnet-avahi-devel
507 %defattr(644,root,root,755)
508 %{_prefix}/lib/monodoc/sources/avahi-*
509 %{_pkgconfigdir}/*.pc
513 %defattr(644,root,root,755)
514 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
517 %defattr(644,root,root,755)
518 %attr(755,root,root) %{_libdir}/libavahi-glib.so
519 %{_libdir}/libavahi-glib.la
520 %{_includedir}/avahi-glib
521 %{_pkgconfigdir}/avahi-glib.pc
524 %defattr(644,root,root,755)
525 %{_libdir}/libavahi-glib.a
529 %defattr(644,root,root,755)
530 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
533 %defattr(644,root,root,755)
534 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
535 %{_libdir}/libavahi-qt3.la
536 %{_includedir}/avahi-qt3
537 %{_pkgconfigdir}/avahi-qt3.pc
540 %defattr(644,root,root,755)
541 %{_libdir}/libavahi-qt3.a
545 %defattr(644,root,root,755)
546 %attr(755,root,root) %{_bindir}/avahi-bookmarks
549 %defattr(644,root,root,755)
550 %attr(755,root,root) %{_bindir}/avahi-discover
551 # XXX: possibly missing %{_datadir}/%{name} dir, shared subdir
552 %dir %{_datadir}/%{name}/interfaces
553 %{_datadir}/%{name}/interfaces/avahi-discover.glade
555 %{_desktopdir}/*.desktop
556 %{_pixmapsdir}/avahi.png
558 %files discover-standalone
559 %defattr(644,root,root,755)
560 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
561 # XXX: possibly missing %{_datadir}/%{name} dir, shared subdir
562 %dir %{_datadir}/%{name}/interfaces
563 %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade
566 %defattr(644,root,root,755)
567 %attr(755,root,root) %{_bindir}/avahi-browse
568 %attr(755,root,root) %{_bindir}/avahi-publish
569 %attr(755,root,root) %{_bindir}/avahi-resolve