1 # $Revision: 1.25 $, x$Date: 2006-03-19 18:41:47 $
4 %bcond_without dotnet # build with dotnet bindings
5 %bcond_without qt # build with qt bindings
7 %include /usr/lib/rpm/macros.mono
9 Summary: Free mDNS/DNS-SD implementation
10 Summary(pl): Wolna implementacja mDNS/DNS-SD
16 Source0: http://avahi.org/download/%{name}-%{version}.tar.gz
17 # Source0-md5: 2652910f0e52c373d7a15b6851750517
18 Source1: %{name}-daemon
19 Source2: %{name}-dnsconfd
21 Patch0: %{name}-desktop.patch
22 Patch1: %{name}-glade.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: graphviz
32 BuildRequires: gtk+2-devel >= 2:2.4.0
33 BuildRequires: libdaemon-devel >= 0.5
34 BuildRequires: libglade2-devel >= 2.4.0
35 BuildRequires: libtool
38 BuildRequires: monodoc
40 BuildRequires: python-dbus
41 BuildRequires: python-pygtk-devel
43 BuildRequires: qt-devel >= 3.0
45 BuildRequires: rpmbuild(macros) >= 1.228
46 Requires(post,preun): /sbin/chkconfig
47 Requires: dbus >= 0.60-2
48 Requires: %{name}-libs = %{version}-%{release}
49 Provides: group(avahi)
51 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54 Avahi is an implementation the DNS Service Discovery and Multicast DNS
55 specifications for Zeroconf Computing. It uses D-BUS for communication
56 between user applications and a system daemon.
59 Avahi jest implementacj± specyfikacji DNS Service Discovery i
60 Multicast DNS dla Zeroconf Computing. U¿ywa D-BUSa dla komunikacji
61 pomiêdzy programami u¿ytkownika a demonem systemowym.
64 Summary: Avahi client, common and core libraries
65 Summary(pl): Biblioteki Avahi: klienta, wspólna i g³ówna
69 Avahi client, common and core libraries.
71 %description libs -l pl
72 Biblioteki Avahi: klienta, wspólna i g³ówna.
75 Summary: Header files for Avahi library
76 Summary(pl): Pliki nag³ówkowe biblioteki Avahi
77 Group: Development/Libraries
78 Requires: %{name}-libs = %{version}-%{release}
80 Requires: libdaemon-devel >= 0.5
83 This is the package containing the header files for Avahi library.
85 %description devel -l pl
86 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi.
89 Summary: Static Avahi library
90 Summary(pl): Statyczna biblioteka Avahi
91 Group: Development/Libraries
92 Requires: %{name}-devel = %{version}-%{release}
97 %description static -l pl
98 Statyczna biblioteka Avahi.
100 %package compat-libdns_sd
101 Summary: Avahi Bonjour compat library
102 Summary(pl): Biblioteka Avahi zgodna z Bonjour
104 Provides: mdns-bonjour
105 Obsoletes: mDNSResponder-libs
107 %description compat-libdns_sd
108 Avahi Bonjour compat library.
110 %description compat-libdns_sd -l pl
111 Biblioteka Avahi zgodna z Bonjour.
113 %package compat-libdns_sd-devel
114 Summary: Header files for Avahi Bonjour compat library
115 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Bonjour
116 Group: Development/Libraries
117 Requires: %{name}-compat-libdns_sd = %{version}-%{release}
118 Provides: mdns-bonjour-devel
119 Obsoletes: mDNSResponder-devel
121 %description compat-libdns_sd-devel
122 Header files for Avahi Bonjour compat library.
124 %description compat-libdns_sd-devel -l pl
125 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Bonjour.
127 %package compat-libdns_sd-static
128 Summary: Static Avahi Bonjour compat library
129 Summary(pl): Statyczna biblioteka Avahi zgodna z Bonjour
130 Group: Development/Libraries
131 Requires: %{name}-libdns_sd-devel = %{version}-%{release}
132 Provides: mdns-bonjour-static
134 %description compat-libdns_sd-static
135 Static Avahi Bonjour compat library.
137 %description compat-libdns_sd-static -l pl
138 Statyczna biblioteka Avahi zgodna z Bonjour.
141 Summary: Avahi Howl compat library
142 Summary(pl): Biblioteka Avahi zgodna z Howl
144 Provides: mdns-howl-libs
147 %description compat-howl
148 Avahi Howl compat library.
150 %description compat-howl -l pl
151 Biblioteka Avahi zgodna z Howl.
153 %package compat-howl-devel
154 Summary: Header files for Avahi Howl compat library
155 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Howl
156 Group: Development/Libraries
157 Requires: %{name}-compat-howl = %{version}-%{release}
158 Provides: mdns-howl-devel
159 Obsoletes: howl-devel
161 %description compat-howl-devel
162 Header files for Avahi Howl compat library.
164 %description compat-howl-devel -l pl
165 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Howl.
167 %package compat-howl-static
168 Summary: Static Avahi Howl compat library
169 Summary(pl): Statyczna biblioteka Avahi zgodna z Howl
170 Group: Development/Libraries
171 Requires: %{name}-howl-devel = %{version}-%{release}
172 Provides: mdns-howl-static
173 Obsoletes: howl-static
175 %description compat-howl-static
176 Static Avahi Howl compat library.
178 %description compat-howl-static -l pl
179 Statyczna biblioteka Avahi zgodna z Howl.
182 Summary: Avahi GLib library bindings
183 Summary(pl): Wi±zania Avahi dla bibioteki GLib
187 Avahi GLib library bindings.
189 %description glib -l pl
190 Wi±zania Avahi dla bibioteki GLib.
193 Summary: Header files for Avahi GLib library bindings
194 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki GLib
195 Group: Development/Libraries
196 Requires: %{name}-devel = %{version}-%{release}
197 Requires: %{name}-glib = %{version}-%{release}
198 Requires: glib2-devel >= 1:2.4.0
200 %description glib-devel
201 This is the package containing the header files for Avahi-glib
204 %description glib-devel -l pl
205 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi-glib.
208 Summary: Static Avahi GLib library
209 Summary(pl): Statyczna biblioteka Avahi GLib
210 Group: Development/Libraries
211 Requires: %{name}-glib-devel = %{version}-%{release}
213 %description glib-static
214 Static Avahi GLib library.
216 %description glib-static -l pl
217 Statyczna biblioteka Avahi GLib.
220 Summary: Avahi Qt 3 library bindings
221 Summary(pl): Wi±zania Avahi dla biblioteki Qt 3
223 Requires: %{name}-libs = %{version}-%{release}
226 Avahi Qt 3 library bindings.
228 %description qt3 -l pl
229 Wi±zania Avahi dla biblioteki Qt 3.
232 Summary: Header files for Avahi Qt 3 library bindings
233 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3
234 Group: Development/Libraries
235 Requires: %{name}-devel = %{version}-%{release}
236 Requires: %{name}-qt3 = %{version}-%{release}
237 Requires: qt-devel >= 3.0
239 %description qt3-devel
240 Header files for Avahi Qt 3 library bindings.
242 %description qt3-devel -l pl
243 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3.
246 Summary: Static Avahi Qt 3 library
247 Summary(pl): Statyczna biblioteka Avahi Qt 3
248 Group: Development/Libraries
249 Requires: %{name}-qt3-devel = %{version}-%{release}
251 %description qt3-static
252 Static Avahi Qt 3 library.
254 %description qt3-static -l pl
255 Statyczna biblioteka Avahi Qt 3.
257 %package -n dotnet-avahi
258 Summary: Avahi MONO bindings
259 Summary(pl): Wi±zania Avahi dla MONO
262 %description -n dotnet-avahi
265 %description -n dotnet-avahi -l pl
266 Wi±zania Avahi dla MONO.
268 %package -n dotnet-avahi-devel
269 Summary: Development files for MONO Avahi bindings
270 Summary(pl): Pliki rozwojowe wi±zañ Avahi dla MONO
271 Group: Development/Libraries
272 Requires: dotnet-avahi = %{version}-%{release}
275 %description -n dotnet-avahi-devel
276 Development files for MONO Avahi bindings.
278 %description -n dotnet-avahi-devel -l pl
279 Pliki rozwojowe wi±zañ Avahi dla MONO.
282 Summary: Miniature web server
283 Summary(pl): Miniaturowy serwer web
286 %description bookmarks
287 A Python based miniature web server that browses for mDNS/DNS-SD
288 services of type '_http._tcp' (i.e. web sites) and makes them
289 available as HTML links on http://localhost:8080/.
291 %description bookmarks -l pl
292 Napisany w Pythonie miniaturowy serwer WWW, pozwalaj±cy na
293 przegl±danie us³ug typu '_http._tcp' (np. stron WWW) i udostêpniaj±cy
294 je jako odno¶niki HTML na http://localhost:8080/.
297 Summary: Avahi Zeroconf browser
298 Summary(pl): Przegl±darka Zeroconf Avahi
301 %description discover
302 A tool for enumerating all available services on the local LAN
303 (python-pygtk implementation).
305 %description discover -l pl
306 Narzêdzie wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej LAN
307 (implementacja w python-pygtk).
309 %package discover-standalone
310 Summary: Avahi Zeroconf browser
311 Summary(pl): Przegl±darka Zeroconf Avahi
314 %description discover-standalone
315 GTK+ tool for enumerating all available services on the local LAN.
317 %description discover-standalone -l pl
318 Narzêdzie GTK+ wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej
322 Summary: Avahi CLI utilities
323 Summary(pl): Narzêdzia CLI Avahi
327 Command line utilities using avahi-client.
329 %description utils -l pl
330 Narzêdzia linii poleceñ korzystaj±ce z avahi-client.
339 %{__aclocal} -I common
344 --enable-compat-libdns_sd \
345 --enable-compat-howl \
348 %{!?with_qt:--disable-qt3} \
349 %{!?with_dotnet:--disable-mono} \
350 %{!?with_dotnet:--disable-monodoc}
354 rm -rf $RPM_BUILD_ROOT
355 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d}
358 DESTDIR=$RPM_BUILD_ROOT \
359 pythondir=%{py_sitedir}
361 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
362 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
364 ln -sf %{_includedir}/avahi-compat-libdns_sd/dns_sd.h \
365 $RPM_BUILD_ROOT%{_includedir}/dns_sd.h
367 ln -sf %{_pkgconfigdir}/avahi-compat-howl.pc \
368 $RPM_BUILD_ROOT%{_pkgconfigdir}/howl.pc
370 rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/{__init__,SimpleGladeApp}.py
373 rm -rf $RPM_BUILD_ROOT
376 %groupadd -g 165 -r -f avahi
377 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
380 /sbin/chkconfig --add %{name}-daemon
381 %service %{name}-daemon restart
382 /sbin/chkconfig --add %{name}-dnsconfd
383 %service %{name}-dnsconfd restart
386 if [ "$1" = "0" ]; then
387 %service -q %{name}-dnsconfd stop
388 /sbin/chkconfig --del %{name}-dnsconfd
389 %service -q %{name}-daemon stop
390 /sbin/chkconfig --del %{name}-daemon
394 if [ "$1" = "0" ]; then
399 %post libs -p /sbin/ldconfig
400 %postun libs -p /sbin/ldconfig
402 %post compat-libdns_sd -p /sbin/ldconfig
403 %postun compat-libdns_sd -p /sbin/ldconfig
405 %post compat-howl -p /sbin/ldconfig
406 %postun compat-howl -p /sbin/ldconfig
408 %post glib -p /sbin/ldconfig
409 %postun glib -p /sbin/ldconfig
411 %post qt3 -p /sbin/ldconfig
412 %postun qt3 -p /sbin/ldconfig
415 %defattr(644,root,root,755)
416 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
418 %dir %{_sysconfdir}/avahi
419 %dir %{_sysconfdir}/avahi/services
420 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
421 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-dnsconfd.action
422 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/hosts
423 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
424 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
426 %attr(755,root,root) %{_bindir}/avahi-browse
427 %attr(755,root,root) %{_bindir}/avahi-publish
428 %attr(755,root,root) %{_bindir}/avahi-resolve
430 %attr(755,root,root) %{_sbindir}/avahi-daemon
431 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
433 %dir %{_datadir}/%{name}
434 %dir %{_datadir}/%{name}/introspection
435 %{_datadir}/%{name}/introspection/*.introspect
436 %{_datadir}/%{name}/avahi-service.dtd
437 %{_datadir}/%{name}/service-types
438 %{_datadir}/%{name}/service-types.db
442 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
443 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
446 %defattr(644,root,root,755)
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.*.*.*
452 %defattr(644,root,root,755)
453 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
454 %attr(755,root,root) %{_libdir}/libavahi-client.so
455 %attr(755,root,root) %{_libdir}/libavahi-common.so
456 %attr(755,root,root) %{_libdir}/libavahi-core.so
457 %{_libdir}/libavahi-client.la
458 %{_libdir}/libavahi-common.la
459 %{_libdir}/libavahi-core.la
460 %{_includedir}/avahi-client
461 %{_includedir}/avahi-common
462 %{_includedir}/avahi-core
463 %{_pkgconfigdir}/avahi-client.pc
464 %{_pkgconfigdir}/avahi-core.pc
467 %defattr(644,root,root,755)
468 %{_libdir}/libavahi-client.a
469 %{_libdir}/libavahi-common.a
470 %{_libdir}/libavahi-core.a
472 %files compat-libdns_sd
473 %defattr(644,root,root,755)
474 %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.*
476 %files compat-libdns_sd-devel
477 %defattr(644,root,root,755)
478 %attr(755,root,root) %{_libdir}/libdns_sd.so
479 %{_libdir}/libdns_sd.la
480 %{_includedir}/avahi-compat-libdns_sd
481 %{_includedir}/dns_sd.h
482 %{_pkgconfigdir}/avahi-compat-libdns_sd.pc
484 %files compat-libdns_sd-static
485 %defattr(644,root,root,755)
486 %{_libdir}/libdns_sd.a
489 %defattr(644,root,root,755)
490 %attr(755,root,root) %{_libdir}/libhowl.so.*.*.*
492 %files compat-howl-devel
493 %defattr(644,root,root,755)
494 %attr(755,root,root) %{_libdir}/libhowl.so
495 %{_libdir}/libhowl.la
496 %{_includedir}/avahi-compat-howl
497 %{_pkgconfigdir}/avahi-compat-howl.pc
498 %{_pkgconfigdir}/howl.pc
500 %files compat-howl-static
501 %defattr(644,root,root,755)
505 %files -n dotnet-avahi
506 %defattr(644,root,root,755)
507 %{_prefix}/lib/mono/gac/avahi-sharp
509 %files -n dotnet-avahi-devel
510 %defattr(644,root,root,755)
511 %{_prefix}/lib/monodoc/sources/avahi-*
512 %{_pkgconfigdir}/*.pc
516 %defattr(644,root,root,755)
517 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
520 %defattr(644,root,root,755)
521 %attr(755,root,root) %{_libdir}/libavahi-glib.so
522 %{_libdir}/libavahi-glib.la
523 %{_includedir}/avahi-glib
524 %{_pkgconfigdir}/avahi-glib.pc
527 %defattr(644,root,root,755)
528 %{_libdir}/libavahi-glib.a
532 %defattr(644,root,root,755)
533 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
536 %defattr(644,root,root,755)
537 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
538 %{_libdir}/libavahi-qt3.la
539 %{_includedir}/avahi-qt3
540 %{_pkgconfigdir}/avahi-qt3.pc
543 %defattr(644,root,root,755)
544 %{_libdir}/libavahi-qt3.a
548 %defattr(644,root,root,755)
549 %attr(755,root,root) %{_bindir}/avahi-bookmarks
552 %defattr(644,root,root,755)
553 %attr(755,root,root) %{_bindir}/avahi-discover
554 # XXX: possibly missing %{_datadir}/%{name} dir, shared subdir
555 %dir %{_datadir}/%{name}/interfaces
556 %{_datadir}/%{name}/interfaces/avahi-discover.glade
558 %{_desktopdir}/*.desktop
559 %{_pixmapsdir}/avahi.png
561 %files discover-standalone
562 %defattr(644,root,root,755)
563 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
564 # XXX: possibly missing %{_datadir}/%{name} dir, shared subdir
565 %dir %{_datadir}/%{name}/interfaces
566 %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade
569 %defattr(644,root,root,755)
570 %attr(755,root,root) %{_bindir}/avahi-browse
571 %attr(755,root,root) %{_bindir}/avahi-publish
572 %attr(755,root,root) %{_bindir}/avahi-resolve