3 %bcond_with dotnet # build with dotnet bindings
5 Summary: Free mDNS/DNS-SD implementation
6 Summary(pl): Wolna implementacja mDNS/DNS-SD
12 Source0: http://avahi.org/download/%{name}-%{version}.tar.gz
13 # Source0-md5: 28ef3c1f15d03f0dc73c9289a434d37c
14 Source1: %{name}-daemon
15 Source2: %{name}-dnsconfd
17 Patch0: %{name}-desktop.patch
18 Patch1: %{name}-glade.patch
19 URL: http://avahi.org/
20 BuildRequires: autoconf
21 BuildRequires: automake
22 BuildRequires: dbus-devel >= 0.34
23 BuildRequires: doxygen
24 BuildRequires: expat-devel
25 BuildRequires: gdbm-devel
26 BuildRequires: glib2-devel >= 1:2.4.0
27 BuildRequires: graphviz
28 BuildRequires: gtk+2-devel >= 2:2.4.0
29 BuildRequires: libdaemon-devel >= 0.5
30 BuildRequires: libglade2-devel >= 2.4.0
31 BuildRequires: libtool
34 BuildRequires: monodoc
36 BuildRequires: python-dbus
37 BuildRequires: python-pygtk-devel
38 BuildRequires: qt-devel >= 3.0
39 BuildRequires: rpmbuild(macros) >= 1.228
40 Requires(post,preun): /sbin/chkconfig
41 Requires: dbus >= 0.60-2
42 Requires: %{name}-libs = %{version}-%{release}
43 Provides: group(avahi)
45 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48 Avahi is an implementation the DNS Service Discovery and Multicast DNS
49 specifications for Zeroconf Computing. It uses D-BUS for communication
50 between user applications and a system daemon.
53 Avahi jest implementacj± specyfikacji DNS Service Discovery i
54 Multicast DNS dla Zeroconf Computing. U¿ywa D-BUSa dla komunikacji
55 pomiêdzy programami u¿ytkownika a demonem systemowym.
58 Summary: Avahi client, common and core libraries
59 Summary(pl): Biblioteki Avahi: klienta, wspólna i g³ówna
63 Avahi client, common and core libraries.
65 %description libs -l pl
66 Biblioteki Avahi: klienta, wspólna i g³ówna.
69 Summary: Header files for Avahi library
70 Summary(pl): Pliki nag³ówkowe biblioteki Avahi
71 Group: Development/Libraries
72 Requires: %{name}-libs = %{version}-%{release}
74 Requires: libdaemon-devel >= 0.5
77 This is the package containing the header files for Avahi library.
79 %description devel -l pl
80 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi.
83 Summary: Static Avahi library
84 Summary(pl): Statyczna biblioteka Avahi
85 Group: Development/Libraries
86 Requires: %{name}-devel = %{version}-%{release}
91 %description static -l pl
92 Statyczna biblioteka Avahi.
94 %package compat-libdns_sd
95 Summary: Avahi Bonjour compat library
96 Summary(pl): Biblioteka Avahi zgodna z Bonjour
98 Provides: mdns-bonjour
99 Obsoletes: mDNSResponder-libs
101 %description compat-libdns_sd
102 Avahi Bonjour compat library.
104 %description compat-libdns_sd -l pl
105 Biblioteka Avahi zgodna z Bonjour.
107 %package compat-libdns_sd-devel
108 Summary: Header files for Avahi Bonjour compat library
109 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Bonjour
110 Group: Development/Libraries
111 Requires: %{name}-compat-libdns_sd = %{version}-%{release}
112 Provides: mdns-bonjour-devel
113 Obsoletes: mDNSResponder-devel
115 %description compat-libdns_sd-devel
116 Header files for Avahi Bonjour compat library.
118 %description compat-libdns_sd-devel -l pl
119 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Bonjour.
121 %package compat-libdns_sd-static
122 Summary: Static Avahi Bonjour compat library
123 Summary(pl): Statyczna biblioteka Avahi zgodna z Bonjour
124 Group: Development/Libraries
125 Requires: %{name}-libdns_sd-devel = %{version}-%{release}
126 Provides: mdns-bonjour-static
128 %description compat-libdns_sd-static
129 Static Avahi Bonjour compat library.
131 %description compat-libdns_sd-static -l pl
132 Statyczna biblioteka Avahi zgodna z Bonjour.
135 Summary: Avahi Howl compat library
136 Summary(pl): Biblioteka Avahi zgodna z Howl
138 Provides: mdns-howl-libs
141 %description compat-howl
142 Avahi Howl compat library.
144 %description compat-howl -l pl
145 Biblioteka Avahi zgodna z Howl.
147 %package compat-howl-devel
148 Summary: Header files for Avahi Howl compat library
149 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Howl
150 Group: Development/Libraries
151 Requires: %{name}-compat-howl = %{version}-%{release}
152 Provides: mdns-howl-devel
153 Obsoletes: howl-devel
155 %description compat-howl-devel
156 Header files for Avahi Howl compat library.
158 %description compat-howl-devel -l pl
159 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Howl.
161 %package compat-howl-static
162 Summary: Static Avahi Howl compat library
163 Summary(pl): Statyczna biblioteka Avahi zgodna z Howl
164 Group: Development/Libraries
165 Requires: %{name}-howl-devel = %{version}-%{release}
166 Provides: mdns-howl-static
167 Obsoletes: howl-static
169 %description compat-howl-static
170 Static Avahi Howl compat library.
172 %description compat-howl-static -l pl
173 Statyczna biblioteka Avahi zgodna z Howl.
176 Summary: Avahi GLib library bindings
177 Summary(pl): Wi±zania Avahi dla bibioteki GLib
181 Avahi GLib library bindings.
183 %description glib -l pl
184 Wi±zania Avahi dla bibioteki GLib.
187 Summary: Header files for Avahi GLib library bindings
188 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki GLib
189 Group: Development/Libraries
190 Requires: %{name}-devel = %{version}-%{release}
191 Requires: %{name}-glib = %{version}-%{release}
192 Requires: glib2-devel >= 1:2.4.0
194 %description glib-devel
195 This is the package containing the header files for Avahi-glib
198 %description glib-devel -l pl
199 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi-glib.
202 Summary: Static Avahi GLib library
203 Summary(pl): Statyczna biblioteka Avahi GLib
204 Group: Development/Libraries
205 Requires: %{name}-glib-devel = %{version}-%{release}
207 %description glib-static
208 Static Avahi GLib library.
210 %description glib-static -l pl
211 Statyczna biblioteka Avahi GLib.
214 Summary: Avahi Qt 3 library bindings
215 Summary(pl): Wi±zania Avahi dla biblioteki Qt 3
217 Requires: %{name}-libs = %{version}-%{release}
220 Avahi Qt 3 library bindings.
222 %description qt3 -l pl
223 Wi±zania Avahi dla biblioteki Qt 3.
226 Summary: Header files for Avahi Qt 3 library bindings
227 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3
228 Group: Development/Libraries
229 Requires: %{name}-devel = %{version}-%{release}
230 Requires: %{name}-qt3 = %{version}-%{release}
231 Requires: qt-devel >= 3.0
233 %description qt3-devel
234 Header files for Avahi Qt 3 library bindings.
236 %description qt3-devel -l pl
237 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3.
240 Summary: Static Avahi Qt 3 library
241 Summary(pl): Statyczna biblioteka Avahi Qt 3
242 Group: Development/Libraries
243 Requires: %{name}-qt3-devel = %{version}-%{release}
245 %description qt3-static
246 Static Avahi Qt 3 library.
248 %description qt3-static -l pl
249 Statyczna biblioteka Avahi Qt 3.
251 %package -n dotnet-avahi
252 Summary: Avahi MONO bindings
253 Summary(pl): Wi±zania Avahi dla MONO
256 %description -n dotnet-avahi
259 %description -n dotnet-avahi -l pl
260 Wi±zania Avahi dla MONO.
262 %package -n dotnet-avahi-devel
263 Summary: Development files for MONO Avahi bindings
264 Summary(pl): Pliki rozwojowe wi±zañ Avahi dla MONO
265 Group: Development/Libraries
266 Requires: dotnet-avahi = %{version}-%{release}
269 %description -n dotnet-avahi-devel
270 Development files for MONO Avahi bindings.
272 %description -n dotnet-avahi-devel -l pl
273 Pliki rozwojowe wi±zañ Avahi dla MONO.
276 Summary: Miniature web server
277 Summary(pl): Miniaturowy serwer web
280 %description bookmarks
281 A Python based miniature web server that browses for mDNS/DNS-SD
282 services of type '_http._tcp' (i.e. web sites) and makes them
283 available as HTML links on http://localhost:8080/.
285 %description bookmarks -l pl
286 Napisany w Pythonie miniaturowy serwer WWW, pozwalaj±cy na
287 przegl±danie us³ug typu '_http._tcp' (np. stron WWW) i udostêpniaj±cy
288 je jako odno¶niki HTML na http://localhost:8080/.
291 Summary: Avahi Zeroconf browser
292 Summary(pl): Przegl±darka Zeroconf Avahi
295 %description discover
296 A tool for enumerating all available services on the local LAN
297 (python-pygtk implementation).
299 %description discover -l pl
300 Narzêdzie wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej LAN
301 (implementacja w python-pygtk).
303 %package discover-standalone
304 Summary: Avahi Zeroconf browser
305 Summary(pl): Przegl±darka Zeroconf Avahi
308 %description discover-standalone
309 GTK+ tool for enumerating all available services on the local LAN.
311 %description discover-standalone -l pl
312 Narzêdzie GTK+ wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej
316 Summary: Avahi CLI utilities
317 Summary(pl): Narzêdzia CLI Avahi
321 Command line utilities using avahi-client.
323 %description utils -l pl
324 Narzêdzia linii poleceñ korzystaj±ce z avahi-client.
333 %{__aclocal} -I common
338 --enable-compat-libdns_sd \
339 --enable-compat-howl \
342 %{!?with_dotnet:--disable-mono} \
343 %{!?with_dotnet:--disable-monodoc}
347 rm -rf $RPM_BUILD_ROOT
348 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d}
351 DESTDIR=$RPM_BUILD_ROOT \
352 pythondir=%{py_sitedir}
354 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
355 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
357 ln -sf %{_includedir}/avahi-compat-libdns_sd/dns_sd.h \
358 $RPM_BUILD_ROOT%{_includedir}/dns_sd.h
360 ln -sf %{_pkgconfigdir}/avahi-compat-howl.pc \
361 $RPM_BUILD_ROOT%{_pkgconfigdir}/howl.pc
363 rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/{__init__,SimpleGladeApp}.py
366 rm -rf $RPM_BUILD_ROOT
369 %groupadd -g 165 -r -f avahi
370 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
373 /sbin/chkconfig --add %{name}-daemon
374 %service %{name}-daemon restart
375 /sbin/chkconfig --add %{name}-dnsconfd
376 %service %{name}-dnsconfd restart
379 if [ "$1" = "0" ]; then
380 %service -q %{name}-dnsconfd stop
381 /sbin/chkconfig --del %{name}-dnsconfd
382 %service -q %{name}-daemon stop
383 /sbin/chkconfig --del %{name}-daemon
387 if [ "$1" = "0" ]; then
392 %post libs -p /sbin/ldconfig
393 %postun libs -p /sbin/ldconfig
395 %post compat-libdns_sd -p /sbin/ldconfig
396 %postun compat-libdns_sd -p /sbin/ldconfig
398 %post compat-howl -p /sbin/ldconfig
399 %postun compat-howl -p /sbin/ldconfig
401 %post glib -p /sbin/ldconfig
402 %postun glib -p /sbin/ldconfig
404 %post qt3 -p /sbin/ldconfig
405 %postun qt3 -p /sbin/ldconfig
408 %defattr(644,root,root,755)
409 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
411 %dir %{_sysconfdir}/avahi
412 %dir %{_sysconfdir}/avahi/services
413 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
414 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-dnsconfd.action
415 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/hosts
416 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
417 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
419 %attr(755,root,root) %{_bindir}/avahi-browse
420 %attr(755,root,root) %{_bindir}/avahi-publish
421 %attr(755,root,root) %{_bindir}/avahi-resolve
423 %attr(755,root,root) %{_sbindir}/avahi-daemon
424 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
426 %dir %{_datadir}/%{name}
427 %dir %{_datadir}/%{name}/introspection
428 %{_datadir}/%{name}/introspection/*.introspect
429 %{_datadir}/%{name}/avahi-service.dtd
430 %{_datadir}/%{name}/service-types
431 %{_datadir}/%{name}/service-types.db
435 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
436 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
439 %defattr(644,root,root,755)
440 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
441 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
442 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
445 %defattr(644,root,root,755)
446 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
447 %attr(755,root,root) %{_libdir}/libavahi-client.so
448 %attr(755,root,root) %{_libdir}/libavahi-common.so
449 %attr(755,root,root) %{_libdir}/libavahi-core.so
450 %{_libdir}/libavahi-client.la
451 %{_libdir}/libavahi-common.la
452 %{_libdir}/libavahi-core.la
453 %{_includedir}/avahi-client
454 %{_includedir}/avahi-common
455 %{_includedir}/avahi-core
456 %{_pkgconfigdir}/avahi-client.pc
457 %{_pkgconfigdir}/avahi-core.pc
460 %defattr(644,root,root,755)
461 %{_libdir}/libavahi-client.a
462 %{_libdir}/libavahi-common.a
463 %{_libdir}/libavahi-core.a
465 %files compat-libdns_sd
466 %defattr(644,root,root,755)
467 %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.*
469 %files compat-libdns_sd-devel
470 %defattr(644,root,root,755)
471 %attr(755,root,root) %{_libdir}/libdns_sd.so
472 %{_libdir}/libdns_sd.la
473 %{_includedir}/avahi-compat-libdns_sd
474 %{_includedir}/dns_sd.h
475 %{_pkgconfigdir}/avahi-compat-libdns_sd.pc
477 %files compat-libdns_sd-static
478 %defattr(644,root,root,755)
479 %{_libdir}/libdns_sd.a
482 %defattr(644,root,root,755)
483 %attr(755,root,root) %{_libdir}/libhowl.so.*.*.*
485 %files compat-howl-devel
486 %defattr(644,root,root,755)
487 %attr(755,root,root) %{_libdir}/libhowl.so
488 %{_libdir}/libhowl.la
489 %{_includedir}/avahi-compat-howl
490 %{_pkgconfigdir}/avahi-compat-howl.pc
491 %{_pkgconfigdir}/howl.pc
493 %files compat-howl-static
494 %defattr(644,root,root,755)
498 %files -n dotnet-avahi
499 %defattr(644,root,root,755)
500 %{_prefix}/lib/mono/gac/avahi-sharp
502 %files -n dotnet-avahi-devel
503 %defattr(644,root,root,755)
504 %{_prefix}/lib/monodoc/sources/avahi-*
505 %{_pkgconfigdir}/*.pc
509 %defattr(644,root,root,755)
510 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
513 %defattr(644,root,root,755)
514 %attr(755,root,root) %{_libdir}/libavahi-glib.so
515 %{_libdir}/libavahi-glib.la
516 %{_includedir}/avahi-glib
517 %{_pkgconfigdir}/avahi-glib.pc
520 %defattr(644,root,root,755)
521 %{_libdir}/libavahi-glib.a
524 %defattr(644,root,root,755)
525 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
528 %defattr(644,root,root,755)
529 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
530 %{_libdir}/libavahi-qt3.la
531 %{_includedir}/avahi-qt3
532 %{_pkgconfigdir}/avahi-qt3.pc
535 %defattr(644,root,root,755)
536 %{_libdir}/libavahi-qt3.a
539 %defattr(644,root,root,755)
540 %attr(755,root,root) %{_bindir}/avahi-bookmarks
543 %defattr(644,root,root,755)
544 %attr(755,root,root) %{_bindir}/avahi-discover
545 # XXX: possibly missing %{_datadir}/%{name} dir, shared subdir
546 %dir %{_datadir}/%{name}/interfaces
547 %{_datadir}/%{name}/interfaces/avahi-discover.glade
549 %{_desktopdir}/*.desktop
550 %{_pixmapsdir}/avahi.png
552 %files discover-standalone
553 %defattr(644,root,root,755)
554 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
555 # XXX: possibly missing %{_datadir}/%{name} dir, shared subdir
556 %dir %{_datadir}/%{name}/interfaces
557 %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade
560 %defattr(644,root,root,755)
561 %attr(755,root,root) %{_bindir}/avahi-browse
562 %attr(755,root,root) %{_bindir}/avahi-publish
563 %attr(755,root,root) %{_bindir}/avahi-resolve