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: 4cfb24b5c9063180f9eee2ef30beac53
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
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
99 %description compat-libdns_sd
100 Avahi Bonjour compat library.
102 %description compat-libdns_sd -l pl
103 Biblioteka Avahi zgodna z Bonjour.
105 %package compat-libdns_sd-devel
106 Summary: Header files for Avahi Bonjour compat library
107 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Bonjour
108 Group: Development/Libraries
109 Requires: %{name}-compat-libdns_sd = %{version}-%{release}
111 %description compat-libdns_sd-devel
112 Header files for Avahi Bonjour compat library.
114 %description compat-libdns_sd-devel -l pl
115 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Bonjour.
117 %package compat-libdns_sd-static
118 Summary: Static Avahi Bonjour compat library
119 Summary(pl): Statyczna biblioteka Avahi zgodna z Bonjour
120 Group: Development/Libraries
121 Requires: %{name}-libdns_sd-devel = %{version}-%{release}
123 %description compat-libdns_sd-static
124 Static Avahi Bonjour compat library.
126 %description compat-libdns_sd-static -l pl
127 Statyczna biblioteka Avahi zgodna z Bonjour.
130 Summary: Avahi Howl compat library
131 Summary(pl): Biblioteka Avahi zgodna z Howl
135 %description compat-howl
136 Avahi Howl compat library.
138 %description compat-howl -l pl
139 Biblioteka Avahi zgodna z Howl.
141 %package compat-howl-devel
142 Summary: Header files for Avahi Howl compat library
143 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Howl
144 Group: Development/Libraries
145 Requires: %{name}-compat-howl = %{version}-%{release}
146 Obsoletes: howl-devel
148 %description compat-howl-devel
149 Header files for Avahi Howl compat library.
151 %description compat-howl-devel -l pl
152 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Howl.
154 %package compat-howl-static
155 Summary: Static Avahi Howl compat library
156 Summary(pl): Statyczna biblioteka Avahi zgodna z Howl
157 Group: Development/Libraries
158 Requires: %{name}-howl-devel = %{version}-%{release}
159 Obsoletes: howl-static
161 %description compat-howl-static
162 Static Avahi Howl compat library.
164 %description compat-howl-static -l pl
165 Statyczna biblioteka Avahi zgodna z Howl.
168 Summary: Avahi GLib library bindings
169 Summary(pl): Wi±zania Avahi dla bibioteki GLib
173 Avahi GLib library bindings.
175 %description glib -l pl
176 Wi±zania Avahi dla bibioteki GLib.
179 Summary: Header files for Avahi GLib library bindings
180 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki GLib
181 Group: Development/Libraries
182 Requires: %{name}-devel = %{version}-%{release}
183 Requires: %{name}-glib = %{version}-%{release}
184 Requires: glib2-devel >= 1:2.4.0
186 %description glib-devel
187 This is the package containing the header files for Avahi-glib
190 %description glib-devel -l pl
191 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi-glib.
194 Summary: Static Avahi GLib library
195 Summary(pl): Statyczna biblioteka Avahi GLib
196 Group: Development/Libraries
197 Requires: %{name}-glib-devel = %{version}-%{release}
199 %description glib-static
200 Static Avahi GLib library.
202 %description glib-static -l pl
203 Statyczna biblioteka Avahi GLib.
206 Summary: Avahi Qt 3 library bindings
207 Summary(pl): Wi±zania Avahi dla biblioteki Qt 3
209 Requires: %{name}-libs = %{version}-%{release}
212 Avahi Qt 3 library bindings.
214 %description qt3 -l pl
215 Wi±zania Avahi dla biblioteki Qt 3.
218 Summary: Header files for Avahi Qt 3 library bindings
219 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3
220 Group: Development/Libraries
221 Requires: %{name}-devel = %{version}-%{release}
222 Requires: %{name}-qt3 = %{version}-%{release}
225 %description qt3-devel
226 Header files for Avahi Qt 3 library bindings.
228 %description qt3-devel -l pl
229 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3.
232 Summary: Static Avahi Qt 3 library
233 Summary(pl): Statyczna biblioteka Avahi Qt 3
234 Group: Development/Libraries
235 Requires: %{name}-qt3-devel = %{version}-%{release}
237 %description qt3-static
238 Static Avahi Qt 3 library.
240 %description qt3-static -l pl
241 Statyczna biblioteka Avahi Qt 3.
243 %package -n dotnet-avahi
244 Summary: Avahi MONO bindings
245 Summary(pl): Wi±zania Avahi dla MONO
248 %description -n dotnet-avahi
251 %description -n dotnet-avahi -l pl
252 Wi±zania Avahi dla MONO.
254 %package -n dotnet-avahi-devel
255 Summary: Development files for MONO Avahi bindings
256 Summary(pl): Pliki rozwojowe wi±zañ Avahi dla MONO
257 Group: Development/Libraries
258 Requires: dotnet-avahi = %{version}-%{release}
261 %description -n dotnet-avahi-devel
262 Development files for MONO Avahi bindings.
264 %description -n dotnet-avahi-devel -l pl
265 Pliki rozwojowe wi±zañ Avahi dla MONO.
268 Summary: Miniature web server
269 Summary(pl): Miniaturowy serwer web
272 %description bookmarks
273 A Python based miniature web server that browses for mDNS/DNS-SD
274 services of type '_http._tcp' (i.e. web sites) and makes them
275 available as HTML links on http://localhost:8080.
277 %description bookmarks -l pl
278 Napisany w Pythonie miniaturowy serwer web, pozwalaj±cy na
279 przegl±danie us³ug typu '_http._tcp' (np. stron web) i udostêpniaj±cy
280 je jako linki HTML na http://localhost:8080.
283 Summary: Avahi Zeroconf browser
284 Summary(pl): Przegl±darka Zeroconf Avahi
287 %description discover
288 A tool for enumerating all available services on the local LAN
289 (python-pygtk implementation).
291 %description discover -l pl
292 Narzêdzie wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej LAN
293 (implementacja w python-pygtk).
295 %package discover-standalone
296 Summary: Avahi Zeroconf browser
297 Summary(pl): Przegl±darka Zeroconf Avahi
300 %description discover-standalone
301 GTK+ tool for enumerating all available services on the local LAN.
303 %description discover-standalone -l pl
304 Narzêdzie GTK+ wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej
308 Summary: Avahi CLI utilities
309 Summary(pl): Narzêdzia CLI Avahi
313 Command line utilities using avahi-client.
315 %description utils -l pl
316 Narzêdzia linii poleceñ korzystaj±ce z avahi-client.
325 %{__aclocal} -I common
330 --enable-compat-libdns_sd \
331 --enable-compat-howl \
334 %{!?with_dotnet:--disable-mono} \
335 %{!?with_dotnet:--disable-monodoc}
339 rm -rf $RPM_BUILD_ROOT
340 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d}
343 DESTDIR=$RPM_BUILD_ROOT \
344 pythondir=%{py_sitedir}
346 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
347 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
349 ln -sf %{_includedir}/avahi-compat-libdns_sd/dns_sd.h \
350 $RPM_BUILD_ROOT%{_includedir}/dns_sd.h
352 ln -sf %{_pkgconfigdir}/avahi-compat-howl.pc \
353 $RPM_BUILD_ROOT%{_pkgconfigdir}/howl.pc
355 rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/{__init__,SimpleGladeApp}.py
358 rm -rf $RPM_BUILD_ROOT
361 %groupadd -g 165 -r -f avahi
362 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
365 /sbin/chkconfig --add %{name}-daemon
366 %service %{name}-daemon restart
367 /sbin/chkconfig --add %{name}-dnsconfd
368 %service %{name}-dnsconfd restart
371 if [ "$1" = "0" ]; then
372 %service -q %{name}-dnsconfd stop
373 /sbin/chkconfig --del %{name}-dnsconfd
374 %service -q %{name}-daemon stop
375 /sbin/chkconfig --del %{name}-daemon
379 if [ "$1" = "0" ]; then
384 %post libs -p /sbin/ldconfig
385 %postun libs -p /sbin/ldconfig
387 %post compat-libdns_sd -p /sbin/ldconfig
388 %postun compat-libdns_sd -p /sbin/ldconfig
390 %post compat-howl -p /sbin/ldconfig
391 %postun compat-howl -p /sbin/ldconfig
393 %post glib -p /sbin/ldconfig
394 %postun glib -p /sbin/ldconfig
396 %post qt3 -p /sbin/ldconfig
397 %postun qt3 -p /sbin/ldconfig
400 %defattr(644,root,root,755)
401 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
403 %dir %{_sysconfdir}/avahi
404 %dir %{_sysconfdir}/avahi/services
405 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
406 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-dnsconfd.action
407 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/hosts
408 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
409 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
411 %attr(755,root,root) %{_bindir}/avahi-browse
412 %attr(755,root,root) %{_bindir}/avahi-publish
413 %attr(755,root,root) %{_bindir}/avahi-resolve
415 %attr(755,root,root) %{_sbindir}/avahi-daemon
416 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
418 %dir %{_datadir}/%{name}
419 %dir %{_datadir}/%{name}/introspection
420 %{_datadir}/%{name}/introspection/*.introspect
421 %{_datadir}/%{name}/avahi-service.dtd
422 %{_datadir}/%{name}/service-types
423 %{_datadir}/%{name}/service-types.db
427 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
428 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
431 %defattr(644,root,root,755)
432 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
433 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
434 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
437 %defattr(644,root,root,755)
438 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
439 %attr(755,root,root) %{_libdir}/libavahi-client.so
440 %attr(755,root,root) %{_libdir}/libavahi-common.so
441 %attr(755,root,root) %{_libdir}/libavahi-core.so
442 %{_libdir}/libavahi-client.la
443 %{_libdir}/libavahi-common.la
444 %{_libdir}/libavahi-core.la
445 %{_includedir}/avahi-client
446 %{_includedir}/avahi-common
447 %{_includedir}/avahi-core
448 %{_pkgconfigdir}/avahi-client.pc
449 %{_pkgconfigdir}/avahi-core.pc
452 %defattr(644,root,root,755)
453 %{_libdir}/libavahi-client.a
454 %{_libdir}/libavahi-common.a
455 %{_libdir}/libavahi-core.a
457 %files compat-libdns_sd
458 %defattr(644,root,root,755)
459 %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.*
461 %files compat-libdns_sd-devel
462 %defattr(644,root,root,755)
463 %attr(755,root,root) %{_libdir}/libdns_sd.so
464 %{_libdir}/libdns_sd.la
465 %{_includedir}/avahi-compat-libdns_sd
466 %{_includedir}/dns_sd.h
467 %{_pkgconfigdir}/avahi-compat-libdns_sd.pc
469 %files compat-libdns_sd-static
470 %defattr(644,root,root,755)
471 %{_libdir}/libdns_sd.a
474 %defattr(644,root,root,755)
475 %attr(755,root,root) %{_libdir}/libhowl.so.*.*.*
477 %files compat-howl-devel
478 %defattr(644,root,root,755)
479 %attr(755,root,root) %{_libdir}/libhowl.so
480 %{_libdir}/libhowl.la
481 %{_includedir}/avahi-compat-howl
482 %{_pkgconfigdir}/avahi-compat-howl.pc
483 %{_pkgconfigdir}/howl.pc
485 %files compat-howl-static
486 %defattr(644,root,root,755)
490 %files -n dotnet-avahi
491 %defattr(644,root,root,755)
492 %{_prefix}/lib/mono/gac/avahi-sharp
494 %files -n dotnet-avahi-devel
495 %defattr(644,root,root,755)
496 %{_prefix}/lib/monodoc/sources/avahi-*
497 %{_pkgconfigdir}/*.pc
501 %defattr(644,root,root,755)
502 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
505 %defattr(644,root,root,755)
506 %attr(755,root,root) %{_libdir}/libavahi-glib.so
507 %{_libdir}/libavahi-glib.la
508 %{_includedir}/avahi-glib
509 %{_pkgconfigdir}/avahi-glib.pc
512 %defattr(644,root,root,755)
513 %{_libdir}/libavahi-glib.a
516 %defattr(644,root,root,755)
517 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
520 %defattr(644,root,root,755)
521 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
522 %{_libdir}/libavahi-qt3.la
523 %{_includedir}/avahi-qt3
524 %{_pkgconfigdir}/avahi-qt3.pc
527 %defattr(644,root,root,755)
528 %{_libdir}/libavahi-qt3.a
531 %defattr(644,root,root,755)
532 %attr(755,root,root) %{_bindir}/avahi-bookmarks
535 %defattr(644,root,root,755)
536 %attr(755,root,root) %{_bindir}/avahi-discover
537 %{_datadir}/%{name}/interfaces/avahi-discover.glade
539 %{_desktopdir}/*.desktop
540 %{_pixmapsdir}/avahi.png
542 %files discover-standalone
543 %defattr(644,root,root,755)
544 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
545 %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade
548 %defattr(644,root,root,755)
549 %attr(755,root,root) %{_bindir}/avahi-browse
550 %attr(755,root,root) %{_bindir}/avahi-publish
551 %attr(755,root,root) %{_bindir}/avahi-resolve