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: glitz-devel
32 BuildRequires: graphviz
33 BuildRequires: gtk+2-devel >= 2:2.4.0
34 BuildRequires: libdaemon-devel >= 0.5
35 BuildRequires: libglade2-devel >= 2.4.0
36 BuildRequires: libtool
39 BuildRequires: monodoc
41 BuildRequires: pkgconfig
42 BuildRequires: python-dbus
43 BuildRequires: python-libxml2
44 BuildRequires: python-pygtk-devel
46 BuildRequires: qt-devel >= 3.0
48 BuildRequires: rpmbuild(macros) >= 1.228
49 Requires(post,preun): /sbin/chkconfig
50 Requires: dbus >= 0.60-2
51 Requires: %{name}-libs = %{version}-%{release}
52 Provides: group(avahi)
54 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
57 Avahi is an implementation the DNS Service Discovery and Multicast DNS
58 specifications for Zeroconf Computing. It uses D-BUS for communication
59 between user applications and a system daemon.
62 Avahi jest implementacj± specyfikacji DNS Service Discovery i
63 Multicast DNS dla Zeroconf Computing. U¿ywa D-BUSa dla komunikacji
64 pomiêdzy programami u¿ytkownika a demonem systemowym.
67 Summary: Avahi client, common and core libraries
68 Summary(pl): Biblioteki Avahi: klienta, wspólna i g³ówna
72 Avahi client, common and core libraries.
74 %description libs -l pl
75 Biblioteki Avahi: klienta, wspólna i g³ówna.
78 Summary: Header files for Avahi library
79 Summary(pl): Pliki nag³ówkowe biblioteki Avahi
80 Group: Development/Libraries
81 Requires: %{name}-libs = %{version}-%{release}
83 Requires: libdaemon-devel >= 0.5
86 This is the package containing the header files for Avahi library.
88 %description devel -l pl
89 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi.
92 Summary: Static Avahi library
93 Summary(pl): Statyczna biblioteka Avahi
94 Group: Development/Libraries
95 Requires: %{name}-devel = %{version}-%{release}
100 %description static -l pl
101 Statyczna biblioteka Avahi.
103 %package compat-libdns_sd
104 Summary: Avahi Bonjour compat library
105 Summary(pl): Biblioteka Avahi zgodna z Bonjour
107 Provides: mdns-bonjour
108 Obsoletes: mDNSResponder-libs
110 %description compat-libdns_sd
111 Avahi Bonjour compat library.
113 %description compat-libdns_sd -l pl
114 Biblioteka Avahi zgodna z Bonjour.
116 %package compat-libdns_sd-devel
117 Summary: Header files for Avahi Bonjour compat library
118 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Bonjour
119 Group: Development/Libraries
120 Requires: %{name}-compat-libdns_sd = %{version}-%{release}
121 Provides: mdns-bonjour-devel
122 Obsoletes: mDNSResponder-devel
124 %description compat-libdns_sd-devel
125 Header files for Avahi Bonjour compat library.
127 %description compat-libdns_sd-devel -l pl
128 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Bonjour.
130 %package compat-libdns_sd-static
131 Summary: Static Avahi Bonjour compat library
132 Summary(pl): Statyczna biblioteka Avahi zgodna z Bonjour
133 Group: Development/Libraries
134 Requires: %{name}-compat-libdns_sd-devel = %{version}-%{release}
135 Provides: mdns-bonjour-static
137 %description compat-libdns_sd-static
138 Static Avahi Bonjour compat library.
140 %description compat-libdns_sd-static -l pl
141 Statyczna biblioteka Avahi zgodna z Bonjour.
144 Summary: Avahi Howl compat library
145 Summary(pl): Biblioteka Avahi zgodna z Howl
147 Provides: mdns-howl-libs
150 %description compat-howl
151 Avahi Howl compat library.
153 %description compat-howl -l pl
154 Biblioteka Avahi zgodna z Howl.
156 %package compat-howl-devel
157 Summary: Header files for Avahi Howl compat library
158 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Howl
159 Group: Development/Libraries
160 Requires: %{name}-compat-howl = %{version}-%{release}
161 Provides: mdns-howl-devel
162 Obsoletes: howl-devel
164 %description compat-howl-devel
165 Header files for Avahi Howl compat library.
167 %description compat-howl-devel -l pl
168 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Howl.
170 %package compat-howl-static
171 Summary: Static Avahi Howl compat library
172 Summary(pl): Statyczna biblioteka Avahi zgodna z Howl
173 Group: Development/Libraries
174 Requires: %{name}-compat-howl-devel = %{version}-%{release}
175 Provides: mdns-howl-static
176 Obsoletes: howl-static
178 %description compat-howl-static
179 Static Avahi Howl compat library.
181 %description compat-howl-static -l pl
182 Statyczna biblioteka Avahi zgodna z Howl.
185 Summary: Avahi GLib library bindings
186 Summary(pl): Wi±zania Avahi dla bibioteki GLib
190 Avahi GLib library bindings.
192 %description glib -l pl
193 Wi±zania Avahi dla bibioteki GLib.
196 Summary: Header files for Avahi GLib library bindings
197 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki GLib
198 Group: Development/Libraries
199 Requires: %{name}-devel = %{version}-%{release}
200 Requires: %{name}-glib = %{version}-%{release}
201 Requires: glib2-devel >= 1:2.4.0
203 %description glib-devel
204 This is the package containing the header files for Avahi-glib
207 %description glib-devel -l pl
208 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi-glib.
211 Summary: Static Avahi GLib library
212 Summary(pl): Statyczna biblioteka Avahi GLib
213 Group: Development/Libraries
214 Requires: %{name}-glib-devel = %{version}-%{release}
216 %description glib-static
217 Static Avahi GLib library.
219 %description glib-static -l pl
220 Statyczna biblioteka Avahi GLib.
223 Summary: Avahi Qt 3 library bindings
224 Summary(pl): Wi±zania Avahi dla biblioteki Qt 3
226 Requires: %{name}-libs = %{version}-%{release}
229 Avahi Qt 3 library bindings.
231 %description qt3 -l pl
232 Wi±zania Avahi dla biblioteki Qt 3.
235 Summary: Header files for Avahi Qt 3 library bindings
236 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3
237 Group: Development/Libraries
238 Requires: %{name}-devel = %{version}-%{release}
239 Requires: %{name}-qt3 = %{version}-%{release}
240 Requires: qt-devel >= 3.0
242 %description qt3-devel
243 Header files for Avahi Qt 3 library bindings.
245 %description qt3-devel -l pl
246 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3.
249 Summary: Static Avahi Qt 3 library
250 Summary(pl): Statyczna biblioteka Avahi Qt 3
251 Group: Development/Libraries
252 Requires: %{name}-qt3-devel = %{version}-%{release}
254 %description qt3-static
255 Static Avahi Qt 3 library.
257 %description qt3-static -l pl
258 Statyczna biblioteka Avahi Qt 3.
260 %package -n dotnet-avahi
261 Summary: Avahi MONO bindings
262 Summary(pl): Wi±zania Avahi dla MONO
265 %description -n dotnet-avahi
268 %description -n dotnet-avahi -l pl
269 Wi±zania Avahi dla MONO.
271 %package -n dotnet-avahi-devel
272 Summary: Development files for MONO Avahi bindings
273 Summary(pl): Pliki rozwojowe wi±zañ Avahi dla MONO
274 Group: Development/Libraries
275 Requires: dotnet-avahi = %{version}-%{release}
278 %description -n dotnet-avahi-devel
279 Development files for MONO Avahi bindings.
281 %description -n dotnet-avahi-devel -l pl
282 Pliki rozwojowe wi±zañ Avahi dla MONO.
285 Summary: Miniature web server
286 Summary(pl): Miniaturowy serwer web
289 %description bookmarks
290 A Python based miniature web server that browses for mDNS/DNS-SD
291 services of type '_http._tcp' (i.e. web sites) and makes them
292 available as HTML links on http://localhost:8080/.
294 %description bookmarks -l pl
295 Napisany w Pythonie miniaturowy serwer WWW, pozwalaj±cy na
296 przegl±danie us³ug typu '_http._tcp' (np. stron WWW) i udostêpniaj±cy
297 je jako odno¶niki HTML na http://localhost:8080/.
300 Summary: Avahi Zeroconf browser
301 Summary(pl): Przegl±darka Zeroconf Avahi
304 %description discover
305 A tool for enumerating all available services on the local LAN
306 (python-pygtk implementation).
308 %description discover -l pl
309 Narzêdzie wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej LAN
310 (implementacja w python-pygtk).
312 %package discover-standalone
313 Summary: Avahi Zeroconf browser
314 Summary(pl): Przegl±darka Zeroconf Avahi
317 %description discover-standalone
318 GTK+ tool for enumerating all available services on the local LAN.
320 %description discover-standalone -l pl
321 Narzêdzie GTK+ wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej
325 Summary: Avahi CLI utilities
326 Summary(pl): Narzêdzia CLI Avahi
330 Command line utilities using avahi-client.
332 %description utils -l pl
333 Narzêdzia linii poleceñ korzystaj±ce z avahi-client.
343 %{__aclocal} -I common
348 --enable-compat-libdns_sd \
349 --enable-compat-howl \
352 %{!?with_qt:--disable-qt3} \
353 %{!?with_dotnet:--disable-mono} \
354 %{!?with_dotnet:--disable-monodoc}
358 rm -rf $RPM_BUILD_ROOT
359 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d}
362 DESTDIR=$RPM_BUILD_ROOT \
363 pythondir=%{py_sitedir}
365 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
366 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
368 ln -sf %{_includedir}/avahi-compat-libdns_sd/dns_sd.h \
369 $RPM_BUILD_ROOT%{_includedir}/dns_sd.h
371 ln -sf %{_pkgconfigdir}/avahi-compat-howl.pc \
372 $RPM_BUILD_ROOT%{_pkgconfigdir}/howl.pc
374 rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/{__init__,SimpleGladeApp}.py
377 rm -rf $RPM_BUILD_ROOT
380 %groupadd -g 165 -r -f avahi
381 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
384 /sbin/chkconfig --add %{name}-daemon
385 %service %{name}-daemon restart
386 /sbin/chkconfig --add %{name}-dnsconfd
387 %service %{name}-dnsconfd restart
390 if [ "$1" = "0" ]; then
391 %service -q %{name}-dnsconfd stop
392 /sbin/chkconfig --del %{name}-dnsconfd
393 %service -q %{name}-daemon stop
394 /sbin/chkconfig --del %{name}-daemon
398 if [ "$1" = "0" ]; then
403 %post libs -p /sbin/ldconfig
404 %postun libs -p /sbin/ldconfig
406 %post compat-libdns_sd -p /sbin/ldconfig
407 %postun compat-libdns_sd -p /sbin/ldconfig
409 %post compat-howl -p /sbin/ldconfig
410 %postun compat-howl -p /sbin/ldconfig
412 %post glib -p /sbin/ldconfig
413 %postun glib -p /sbin/ldconfig
415 %post qt3 -p /sbin/ldconfig
416 %postun qt3 -p /sbin/ldconfig
419 %defattr(644,root,root,755)
420 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
422 %dir %{_sysconfdir}/avahi
423 %dir %{_sysconfdir}/avahi/services
424 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
425 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-dnsconfd.action
426 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/hosts
427 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
428 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
430 %attr(755,root,root) %{_bindir}/avahi-browse
431 %attr(755,root,root) %{_bindir}/avahi-publish
432 %attr(755,root,root) %{_bindir}/avahi-resolve
434 %attr(755,root,root) %{_sbindir}/avahi-daemon
435 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
437 %dir %{_datadir}/%{name}
438 %dir %{_datadir}/%{name}/introspection
439 %{_datadir}/%{name}/introspection/*.introspect
440 %{_datadir}/%{name}/avahi-service.dtd
441 %{_datadir}/%{name}/service-types
442 %{_datadir}/%{name}/service-types.db
446 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
447 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
450 %defattr(644,root,root,755)
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.*.*.*
456 %defattr(644,root,root,755)
457 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
458 %attr(755,root,root) %{_libdir}/libavahi-client.so
459 %attr(755,root,root) %{_libdir}/libavahi-common.so
460 %attr(755,root,root) %{_libdir}/libavahi-core.so
461 %{_libdir}/libavahi-client.la
462 %{_libdir}/libavahi-common.la
463 %{_libdir}/libavahi-core.la
464 %{_includedir}/avahi-client
465 %{_includedir}/avahi-common
466 %{_includedir}/avahi-core
467 %{_pkgconfigdir}/avahi-client.pc
468 %{_pkgconfigdir}/avahi-core.pc
471 %defattr(644,root,root,755)
472 %{_libdir}/libavahi-client.a
473 %{_libdir}/libavahi-common.a
474 %{_libdir}/libavahi-core.a
476 %files compat-libdns_sd
477 %defattr(644,root,root,755)
478 %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.*
480 %files compat-libdns_sd-devel
481 %defattr(644,root,root,755)
482 %attr(755,root,root) %{_libdir}/libdns_sd.so
483 %{_libdir}/libdns_sd.la
484 %{_includedir}/avahi-compat-libdns_sd
485 %{_includedir}/dns_sd.h
486 %{_pkgconfigdir}/avahi-compat-libdns_sd.pc
488 %files compat-libdns_sd-static
489 %defattr(644,root,root,755)
490 %{_libdir}/libdns_sd.a
493 %defattr(644,root,root,755)
494 %attr(755,root,root) %{_libdir}/libhowl.so.*.*.*
496 %files compat-howl-devel
497 %defattr(644,root,root,755)
498 %attr(755,root,root) %{_libdir}/libhowl.so
499 %{_libdir}/libhowl.la
500 %{_includedir}/avahi-compat-howl
501 %{_pkgconfigdir}/avahi-compat-howl.pc
502 %{_pkgconfigdir}/howl.pc
504 %files compat-howl-static
505 %defattr(644,root,root,755)
509 %files -n dotnet-avahi
510 %defattr(644,root,root,755)
511 %{_prefix}/lib/mono/gac/avahi-sharp
513 %files -n dotnet-avahi-devel
514 %defattr(644,root,root,755)
515 %{_prefix}/lib/monodoc/sources/avahi-*
516 %{_pkgconfigdir}/*.pc
520 %defattr(644,root,root,755)
521 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
524 %defattr(644,root,root,755)
525 %attr(755,root,root) %{_libdir}/libavahi-glib.so
526 %{_libdir}/libavahi-glib.la
527 %{_includedir}/avahi-glib
528 %{_pkgconfigdir}/avahi-glib.pc
531 %defattr(644,root,root,755)
532 %{_libdir}/libavahi-glib.a
536 %defattr(644,root,root,755)
537 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
540 %defattr(644,root,root,755)
541 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
542 %{_libdir}/libavahi-qt3.la
543 %{_includedir}/avahi-qt3
544 %{_pkgconfigdir}/avahi-qt3.pc
547 %defattr(644,root,root,755)
548 %{_libdir}/libavahi-qt3.a
552 %defattr(644,root,root,755)
553 %attr(755,root,root) %{_bindir}/avahi-bookmarks
556 %defattr(644,root,root,755)
557 %attr(755,root,root) %{_bindir}/avahi-discover
558 # XXX: possibly missing %{_datadir}/%{name} dir, shared subdir
559 %dir %{_datadir}/%{name}/interfaces
560 %{_datadir}/%{name}/interfaces/avahi-discover.glade
562 %{_desktopdir}/*.desktop
563 %{_pixmapsdir}/avahi.png
565 %files discover-standalone
566 %defattr(644,root,root,755)
567 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
568 # XXX: possibly missing %{_datadir}/%{name} dir, shared subdir
569 %dir %{_datadir}/%{name}/interfaces
570 %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade
573 %defattr(644,root,root,755)
574 %attr(755,root,root) %{_bindir}/avahi-browse
575 %attr(755,root,root) %{_bindir}/avahi-publish
576 %attr(755,root,root) %{_bindir}/avahi-resolve