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 URL: http://avahi.org/
23 BuildRequires: autoconf
24 BuildRequires: automake
25 BuildRequires: dbus-devel >= 0.34
26 BuildRequires: doxygen
27 BuildRequires: expat-devel
28 BuildRequires: gdbm-devel
29 BuildRequires: glib2-devel >= 1:2.4.0
30 BuildRequires: graphviz
31 BuildRequires: gtk+2-devel >= 2:2.4.0
32 BuildRequires: libdaemon-devel >= 0.5
33 BuildRequires: libglade2-devel >= 2.4.0
34 BuildRequires: libtool
37 BuildRequires: monodoc
39 BuildRequires: python-dbus
40 BuildRequires: python-pygtk-devel
42 BuildRequires: qt-devel >= 3.0
44 BuildRequires: rpmbuild(macros) >= 1.228
45 Requires(post,preun): /sbin/chkconfig
46 Requires: dbus >= 0.60-2
47 Requires: %{name}-libs = %{version}-%{release}
48 Provides: group(avahi)
50 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53 Avahi is an implementation the DNS Service Discovery and Multicast DNS
54 specifications for Zeroconf Computing. It uses D-BUS for communication
55 between user applications and a system daemon.
58 Avahi jest implementacj± specyfikacji DNS Service Discovery i
59 Multicast DNS dla Zeroconf Computing. U¿ywa D-BUSa dla komunikacji
60 pomiêdzy programami u¿ytkownika a demonem systemowym.
63 Summary: Avahi client, common and core libraries
64 Summary(pl): Biblioteki Avahi: klienta, wspólna i g³ówna
68 Avahi client, common and core libraries.
70 %description libs -l pl
71 Biblioteki Avahi: klienta, wspólna i g³ówna.
74 Summary: Header files for Avahi library
75 Summary(pl): Pliki nag³ówkowe biblioteki Avahi
76 Group: Development/Libraries
77 Requires: %{name}-libs = %{version}-%{release}
79 Requires: libdaemon-devel >= 0.5
82 This is the package containing the header files for Avahi library.
84 %description devel -l pl
85 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi.
88 Summary: Static Avahi library
89 Summary(pl): Statyczna biblioteka Avahi
90 Group: Development/Libraries
91 Requires: %{name}-devel = %{version}-%{release}
96 %description static -l pl
97 Statyczna biblioteka Avahi.
99 %package compat-libdns_sd
100 Summary: Avahi Bonjour compat library
101 Summary(pl): Biblioteka Avahi zgodna z Bonjour
103 Provides: mdns-bonjour
104 Obsoletes: mDNSResponder-libs
106 %description compat-libdns_sd
107 Avahi Bonjour compat library.
109 %description compat-libdns_sd -l pl
110 Biblioteka Avahi zgodna z Bonjour.
112 %package compat-libdns_sd-devel
113 Summary: Header files for Avahi Bonjour compat library
114 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Bonjour
115 Group: Development/Libraries
116 Requires: %{name}-compat-libdns_sd = %{version}-%{release}
117 Provides: mdns-bonjour-devel
118 Obsoletes: mDNSResponder-devel
120 %description compat-libdns_sd-devel
121 Header files for Avahi Bonjour compat library.
123 %description compat-libdns_sd-devel -l pl
124 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Bonjour.
126 %package compat-libdns_sd-static
127 Summary: Static Avahi Bonjour compat library
128 Summary(pl): Statyczna biblioteka Avahi zgodna z Bonjour
129 Group: Development/Libraries
130 Requires: %{name}-libdns_sd-devel = %{version}-%{release}
131 Provides: mdns-bonjour-static
133 %description compat-libdns_sd-static
134 Static Avahi Bonjour compat library.
136 %description compat-libdns_sd-static -l pl
137 Statyczna biblioteka Avahi zgodna z Bonjour.
140 Summary: Avahi Howl compat library
141 Summary(pl): Biblioteka Avahi zgodna z Howl
143 Provides: mdns-howl-libs
146 %description compat-howl
147 Avahi Howl compat library.
149 %description compat-howl -l pl
150 Biblioteka Avahi zgodna z Howl.
152 %package compat-howl-devel
153 Summary: Header files for Avahi Howl compat library
154 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Howl
155 Group: Development/Libraries
156 Requires: %{name}-compat-howl = %{version}-%{release}
157 Provides: mdns-howl-devel
158 Obsoletes: howl-devel
160 %description compat-howl-devel
161 Header files for Avahi Howl compat library.
163 %description compat-howl-devel -l pl
164 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Howl.
166 %package compat-howl-static
167 Summary: Static Avahi Howl compat library
168 Summary(pl): Statyczna biblioteka Avahi zgodna z Howl
169 Group: Development/Libraries
170 Requires: %{name}-howl-devel = %{version}-%{release}
171 Provides: mdns-howl-static
172 Obsoletes: howl-static
174 %description compat-howl-static
175 Static Avahi Howl compat library.
177 %description compat-howl-static -l pl
178 Statyczna biblioteka Avahi zgodna z Howl.
181 Summary: Avahi GLib library bindings
182 Summary(pl): Wi±zania Avahi dla bibioteki GLib
186 Avahi GLib library bindings.
188 %description glib -l pl
189 Wi±zania Avahi dla bibioteki GLib.
192 Summary: Header files for Avahi GLib library bindings
193 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki GLib
194 Group: Development/Libraries
195 Requires: %{name}-devel = %{version}-%{release}
196 Requires: %{name}-glib = %{version}-%{release}
197 Requires: glib2-devel >= 1:2.4.0
199 %description glib-devel
200 This is the package containing the header files for Avahi-glib
203 %description glib-devel -l pl
204 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi-glib.
207 Summary: Static Avahi GLib library
208 Summary(pl): Statyczna biblioteka Avahi GLib
209 Group: Development/Libraries
210 Requires: %{name}-glib-devel = %{version}-%{release}
212 %description glib-static
213 Static Avahi GLib library.
215 %description glib-static -l pl
216 Statyczna biblioteka Avahi GLib.
219 Summary: Avahi Qt 3 library bindings
220 Summary(pl): Wi±zania Avahi dla biblioteki Qt 3
222 Requires: %{name}-libs = %{version}-%{release}
225 Avahi Qt 3 library bindings.
227 %description qt3 -l pl
228 Wi±zania Avahi dla biblioteki Qt 3.
231 Summary: Header files for Avahi Qt 3 library bindings
232 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3
233 Group: Development/Libraries
234 Requires: %{name}-devel = %{version}-%{release}
235 Requires: %{name}-qt3 = %{version}-%{release}
236 Requires: qt-devel >= 3.0
238 %description qt3-devel
239 Header files for Avahi Qt 3 library bindings.
241 %description qt3-devel -l pl
242 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3.
245 Summary: Static Avahi Qt 3 library
246 Summary(pl): Statyczna biblioteka Avahi Qt 3
247 Group: Development/Libraries
248 Requires: %{name}-qt3-devel = %{version}-%{release}
250 %description qt3-static
251 Static Avahi Qt 3 library.
253 %description qt3-static -l pl
254 Statyczna biblioteka Avahi Qt 3.
256 %package -n dotnet-avahi
257 Summary: Avahi MONO bindings
258 Summary(pl): Wi±zania Avahi dla MONO
261 %description -n dotnet-avahi
264 %description -n dotnet-avahi -l pl
265 Wi±zania Avahi dla MONO.
267 %package -n dotnet-avahi-devel
268 Summary: Development files for MONO Avahi bindings
269 Summary(pl): Pliki rozwojowe wi±zañ Avahi dla MONO
270 Group: Development/Libraries
271 Requires: dotnet-avahi = %{version}-%{release}
274 %description -n dotnet-avahi-devel
275 Development files for MONO Avahi bindings.
277 %description -n dotnet-avahi-devel -l pl
278 Pliki rozwojowe wi±zañ Avahi dla MONO.
281 Summary: Miniature web server
282 Summary(pl): Miniaturowy serwer web
285 %description bookmarks
286 A Python based miniature web server that browses for mDNS/DNS-SD
287 services of type '_http._tcp' (i.e. web sites) and makes them
288 available as HTML links on http://localhost:8080/.
290 %description bookmarks -l pl
291 Napisany w Pythonie miniaturowy serwer WWW, pozwalaj±cy na
292 przegl±danie us³ug typu '_http._tcp' (np. stron WWW) i udostêpniaj±cy
293 je jako odno¶niki HTML na http://localhost:8080/.
296 Summary: Avahi Zeroconf browser
297 Summary(pl): Przegl±darka Zeroconf Avahi
300 %description discover
301 A tool for enumerating all available services on the local LAN
302 (python-pygtk implementation).
304 %description discover -l pl
305 Narzêdzie wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej LAN
306 (implementacja w python-pygtk).
308 %package discover-standalone
309 Summary: Avahi Zeroconf browser
310 Summary(pl): Przegl±darka Zeroconf Avahi
313 %description discover-standalone
314 GTK+ tool for enumerating all available services on the local LAN.
316 %description discover-standalone -l pl
317 Narzêdzie GTK+ wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej
321 Summary: Avahi CLI utilities
322 Summary(pl): Narzêdzia CLI Avahi
326 Command line utilities using avahi-client.
328 %description utils -l pl
329 Narzêdzia linii poleceñ korzystaj±ce z avahi-client.
338 %{__aclocal} -I common
343 --enable-compat-libdns_sd \
344 --enable-compat-howl \
347 %{!?with_qt:--disable-qt3} \
348 %{!?with_dotnet:--disable-mono} \
349 %{!?with_dotnet:--disable-monodoc}
353 rm -rf $RPM_BUILD_ROOT
354 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d}
357 DESTDIR=$RPM_BUILD_ROOT \
358 pythondir=%{py_sitedir}
360 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
361 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
363 ln -sf %{_includedir}/avahi-compat-libdns_sd/dns_sd.h \
364 $RPM_BUILD_ROOT%{_includedir}/dns_sd.h
366 ln -sf %{_pkgconfigdir}/avahi-compat-howl.pc \
367 $RPM_BUILD_ROOT%{_pkgconfigdir}/howl.pc
369 rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/{__init__,SimpleGladeApp}.py
372 rm -rf $RPM_BUILD_ROOT
375 %groupadd -g 165 -r -f avahi
376 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
379 /sbin/chkconfig --add %{name}-daemon
380 %service %{name}-daemon restart
381 /sbin/chkconfig --add %{name}-dnsconfd
382 %service %{name}-dnsconfd restart
385 if [ "$1" = "0" ]; then
386 %service -q %{name}-dnsconfd stop
387 /sbin/chkconfig --del %{name}-dnsconfd
388 %service -q %{name}-daemon stop
389 /sbin/chkconfig --del %{name}-daemon
393 if [ "$1" = "0" ]; then
398 %post libs -p /sbin/ldconfig
399 %postun libs -p /sbin/ldconfig
401 %post compat-libdns_sd -p /sbin/ldconfig
402 %postun compat-libdns_sd -p /sbin/ldconfig
404 %post compat-howl -p /sbin/ldconfig
405 %postun compat-howl -p /sbin/ldconfig
407 %post glib -p /sbin/ldconfig
408 %postun glib -p /sbin/ldconfig
410 %post qt3 -p /sbin/ldconfig
411 %postun qt3 -p /sbin/ldconfig
414 %defattr(644,root,root,755)
415 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
417 %dir %{_sysconfdir}/avahi
418 %dir %{_sysconfdir}/avahi/services
419 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
420 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-dnsconfd.action
421 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/hosts
422 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
423 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
425 %attr(755,root,root) %{_bindir}/avahi-browse
426 %attr(755,root,root) %{_bindir}/avahi-publish
427 %attr(755,root,root) %{_bindir}/avahi-resolve
429 %attr(755,root,root) %{_sbindir}/avahi-daemon
430 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
432 %dir %{_datadir}/%{name}
433 %dir %{_datadir}/%{name}/introspection
434 %{_datadir}/%{name}/introspection/*.introspect
435 %{_datadir}/%{name}/avahi-service.dtd
436 %{_datadir}/%{name}/service-types
437 %{_datadir}/%{name}/service-types.db
441 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
442 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
445 %defattr(644,root,root,755)
446 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
447 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
448 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
451 %defattr(644,root,root,755)
452 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
453 %attr(755,root,root) %{_libdir}/libavahi-client.so
454 %attr(755,root,root) %{_libdir}/libavahi-common.so
455 %attr(755,root,root) %{_libdir}/libavahi-core.so
456 %{_libdir}/libavahi-client.la
457 %{_libdir}/libavahi-common.la
458 %{_libdir}/libavahi-core.la
459 %{_includedir}/avahi-client
460 %{_includedir}/avahi-common
461 %{_includedir}/avahi-core
462 %{_pkgconfigdir}/avahi-client.pc
463 %{_pkgconfigdir}/avahi-core.pc
466 %defattr(644,root,root,755)
467 %{_libdir}/libavahi-client.a
468 %{_libdir}/libavahi-common.a
469 %{_libdir}/libavahi-core.a
471 %files compat-libdns_sd
472 %defattr(644,root,root,755)
473 %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.*
475 %files compat-libdns_sd-devel
476 %defattr(644,root,root,755)
477 %attr(755,root,root) %{_libdir}/libdns_sd.so
478 %{_libdir}/libdns_sd.la
479 %{_includedir}/avahi-compat-libdns_sd
480 %{_includedir}/dns_sd.h
481 %{_pkgconfigdir}/avahi-compat-libdns_sd.pc
483 %files compat-libdns_sd-static
484 %defattr(644,root,root,755)
485 %{_libdir}/libdns_sd.a
488 %defattr(644,root,root,755)
489 %attr(755,root,root) %{_libdir}/libhowl.so.*.*.*
491 %files compat-howl-devel
492 %defattr(644,root,root,755)
493 %attr(755,root,root) %{_libdir}/libhowl.so
494 %{_libdir}/libhowl.la
495 %{_includedir}/avahi-compat-howl
496 %{_pkgconfigdir}/avahi-compat-howl.pc
497 %{_pkgconfigdir}/howl.pc
499 %files compat-howl-static
500 %defattr(644,root,root,755)
504 %files -n dotnet-avahi
505 %defattr(644,root,root,755)
506 %{_prefix}/lib/mono/gac/avahi-sharp
508 %files -n dotnet-avahi-devel
509 %defattr(644,root,root,755)
510 %{_prefix}/lib/monodoc/sources/avahi-*
511 %{_pkgconfigdir}/*.pc
515 %defattr(644,root,root,755)
516 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
519 %defattr(644,root,root,755)
520 %attr(755,root,root) %{_libdir}/libavahi-glib.so
521 %{_libdir}/libavahi-glib.la
522 %{_includedir}/avahi-glib
523 %{_pkgconfigdir}/avahi-glib.pc
526 %defattr(644,root,root,755)
527 %{_libdir}/libavahi-glib.a
531 %defattr(644,root,root,755)
532 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
535 %defattr(644,root,root,755)
536 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
537 %{_libdir}/libavahi-qt3.la
538 %{_includedir}/avahi-qt3
539 %{_pkgconfigdir}/avahi-qt3.pc
542 %defattr(644,root,root,755)
543 %{_libdir}/libavahi-qt3.a
547 %defattr(644,root,root,755)
548 %attr(755,root,root) %{_bindir}/avahi-bookmarks
551 %defattr(644,root,root,755)
552 %attr(755,root,root) %{_bindir}/avahi-discover
553 # XXX: possibly missing %{_datadir}/%{name} dir, shared subdir
554 %dir %{_datadir}/%{name}/interfaces
555 %{_datadir}/%{name}/interfaces/avahi-discover.glade
557 %{_desktopdir}/*.desktop
558 %{_pixmapsdir}/avahi.png
560 %files discover-standalone
561 %defattr(644,root,root,755)
562 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
563 # XXX: possibly missing %{_datadir}/%{name} dir, shared subdir
564 %dir %{_datadir}/%{name}/interfaces
565 %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade
568 %defattr(644,root,root,755)
569 %attr(755,root,root) %{_bindir}/avahi-browse
570 %attr(755,root,root) %{_bindir}/avahi-publish
571 %attr(755,root,root) %{_bindir}/avahi-resolve