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: 1ecbc3534e3b45cf15269a3f4cfe1dca
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
110 %description compat-libdns_sd-devel
111 Header files for Avahi Bonjour compat library.
113 %description compat-libdns_sd-devel -l pl
114 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Bonjour
116 %package compat-libdns_sd-static
117 Summary: Static Avahi Bonjour compat library
118 Summary(pl): Statyczna biblioteka Avahi zgodna Bonjour
119 Group: Development/Libraries
120 Requires: %{name}-libdns_sd-devel = %{version}-%{release}
122 %description compat-libdns_sd-static
123 Static Avahi Bonjour compat library
125 %description compat-libdns_sd-static -l pl
126 Statyczna biblioteka Avahi zgodna Bonjour
129 Summary: Avahi GLib library bindings
130 Summary(pl): Wi±zania Avahi dla bibioteki GLib
134 Avahi GLib library bindings.
136 %description glib -l pl
137 Wi±zania Avahi dla bibioteki GLib.
140 Summary: Header files for Avahi GLib library bindings
141 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki GLib
142 Group: Development/Libraries
143 Requires: %{name}-devel = %{version}-%{release}
144 Requires: %{name}-glib = %{version}-%{release}
145 Requires: glib2-devel >= 1:2.4.0
147 %description glib-devel
148 This is the package containing the header files for Avahi-glib
151 %description glib-devel -l pl
152 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi-glib.
155 Summary: Static Avahi GLib library
156 Summary(pl): Statyczna biblioteka Avahi GLib
157 Group: Development/Libraries
158 Requires: %{name}-glib-devel = %{version}-%{release}
160 %description glib-static
161 Static Avahi GLib library.
163 %description glib-static -l pl
164 Statyczna biblioteka Avahi GLib.
167 Summary: Avahi Qt 3 library bindings
168 Summary(pl): Wi±zania Avahi dla biblioteki Qt 3
170 Requires: %{name}-libs = %{version}-%{release}
173 Avahi Qt 3 library bindings.
175 %description qt3 -l pl
176 Wi±zania Avahi dla biblioteki Qt 3.
179 Summary: Header files for Avahi Qt 3 library bindings
180 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3
181 Group: Development/Libraries
182 Requires: %{name}-devel = %{version}-%{release}
183 Requires: %{name}-qt3 = %{version}-%{release}
186 %description qt3-devel
187 Header files for Avahi Qt 3 library bindings.
189 %description qt3-devel -l pl
190 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3.
193 Summary: Static Avahi Qt 3 library
194 Summary(pl): Statyczna biblioteka Avahi Qt 3
195 Group: Development/Libraries
196 Requires: %{name}-qt3-devel = %{version}-%{release}
198 %description qt3-static
199 Static Avahi Qt 3 library.
201 %description qt3-static -l pl
202 Statyczna biblioteka Avahi Qt 3.
204 %package -n dotnet-avahi
205 Summary: Avahi MONO bindings
206 Summary(pl): Wi±zania Avahi dla MONO
209 %description -n dotnet-avahi
212 %description -n dotnet-avahi -l pl
213 Wi±zania Avahi dla MONO.
215 %package -n dotnet-avahi-devel
216 Summary: Development files for MONO Avahi bindings
217 Summary(pl): Pliki rozwojowe wi±zañ Avahi dla MONO
218 Group: Development/Libraries
219 Requires: dotnet-avahi = %{version}-%{release}
222 %description -n dotnet-avahi-devel
223 Development files for MONO Avahi bindings.
225 %description -n dotnet-avahi-devel -l pl
226 Pliki rozwojowe wi±zañ Avahi dla MONO.
229 Summary: Miniature web server
230 Summary(pl): Miniaturowy serwer web
233 %description bookmarks
234 A Python based miniature web server that browses for mDNS/DNS-SD
235 services of type '_http._tcp' (i.e. web sites) and makes them
236 available as HTML links on http://localhost:8080.
238 %description bookmarks -l pl
239 Napisany w Pythonie miniaturowy serwer web, pozwalaj±cy na
240 przegl±danie us³ug typu '_http._tcp' (np. stron web) i udostêpniaj±cy
241 je jako linki HTML na http://localhost:8080.
244 Summary: Avahi Zeroconf browser
245 Summary(pl): Przegl±darka Zeroconf Avahi
248 %description discover
249 A tool for enumerating all available services on the local LAN
250 (python-pygtk implementation).
252 %description discover -l pl
253 Narzêdzie wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej LAN
254 (implementacja w python-pygtk).
256 %package discover-standalone
257 Summary: Avahi Zeroconf browser
258 Summary(pl): Przegl±darka Zeroconf Avahi
261 %description discover-standalone
262 GTK+ tool for enumerating all available services on the local LAN.
264 %description discover-standalone -l pl
265 Narzêdzie GTK+ wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej
269 Summary: Avahi CLI utilities
270 Summary(pl): Narzêdzia CLI Avahi
274 Command line utilities using avahi-client.
276 %description utils -l pl
277 Narzêdzia linii poleceñ korzystaj±ce z avahi-client.
286 %{__aclocal} -I common
291 --enable-compat-libdns_sd \
294 %{!?with_dotnet:--disable-mono} \
295 %{!?with_dotnet:--disable-monodoc}
299 rm -rf $RPM_BUILD_ROOT
300 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d}
303 DESTDIR=$RPM_BUILD_ROOT \
304 pythondir=%{py_sitedir}
306 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
307 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
309 rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/{__init__,SimpleGladeApp}.py
312 rm -rf $RPM_BUILD_ROOT
315 %groupadd -g 165 -r -f avahi
316 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
319 /sbin/chkconfig --add %{name}-daemon
320 %service %{name}-daemon restart
321 /sbin/chkconfig --add %{name}-dnsconfd
322 %service %{name}-dnsconfd restart
325 if [ "$1" = "0" ]; then
326 %service -q %{name}-dnsconfd stop
327 /sbin/chkconfig --del %{name}-dnsconfd
328 %service -q %{name}-daemon stop
329 /sbin/chkconfig --del %{name}-daemon
333 if [ "$1" = "0" ]; then
338 %post libs -p /sbin/ldconfig
339 %postun libs -p /sbin/ldconfig
341 %post compat-libdns_sd -p /sbin/ldconfig
342 %postun compat-libdns_sd -p /sbin/ldconfig
344 %post glib -p /sbin/ldconfig
345 %postun glib -p /sbin/ldconfig
347 %post qt3 -p /sbin/ldconfig
348 %postun qt3 -p /sbin/ldconfig
351 %defattr(644,root,root,755)
352 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
354 %dir %{_sysconfdir}/avahi
355 %dir %{_sysconfdir}/avahi/services
356 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
357 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-dnsconfd.action
358 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
359 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
361 %attr(755,root,root) %{_bindir}/avahi-browse
362 %attr(755,root,root) %{_bindir}/avahi-publish
363 %attr(755,root,root) %{_bindir}/avahi-resolve
365 %attr(755,root,root) %{_sbindir}/avahi-daemon
366 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
368 %dir %{_datadir}/%{name}
370 %dir %{_datadir}/%{name}/introspection
371 %{_datadir}/%{name}/introspection/*.introspect
372 %{_datadir}/%{name}/avahi-service.dtd
373 %{_datadir}/%{name}/service-types
374 %{_datadir}/%{name}/service-types.db
378 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
379 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
382 %defattr(644,root,root,755)
383 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
384 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
385 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
388 %defattr(644,root,root,755)
389 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
390 %attr(755,root,root) %{_libdir}/libavahi-client.so
391 %attr(755,root,root) %{_libdir}/libavahi-common.so
392 %attr(755,root,root) %{_libdir}/libavahi-core.so
393 %{_libdir}/libavahi-client.la
394 %{_libdir}/libavahi-common.la
395 %{_libdir}/libavahi-core.la
396 %{_includedir}/avahi-client
397 %{_includedir}/avahi-common
398 %{_includedir}/avahi-core
399 %{_pkgconfigdir}/avahi-client.pc
400 %{_pkgconfigdir}/avahi-core.pc
403 %defattr(644,root,root,755)
404 %{_libdir}/libavahi-client.a
405 %{_libdir}/libavahi-common.a
406 %{_libdir}/libavahi-core.a
408 %files compat-libdns_sd
409 %defattr(644,root,root,755)
410 %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.*
412 %files compat-libdns_sd-devel
413 %defattr(644,root,root,755)
414 %attr(755,root,root) %{_libdir}/libdns_sd.so
415 %{_libdir}/libdns_sd.la
416 %{_includedir}/avahi-compat-libdns_sd
417 %{_pkgconfigdir}/avahi-compat-libdns_sd.pc
419 %files compat-libdns_sd-static
420 %defattr(644,root,root,755)
421 %{_libdir}/libdns_sd.a
424 %files -n dotnet-avahi
425 %defattr(644,root,root,755)
426 %{_prefix}/lib/mono/gac/avahi-sharp
428 %files -n dotnet-avahi-devel
429 %defattr(644,root,root,755)
430 %{_prefix}/lib/monodoc/sources/avahi-*
431 %{_pkgconfigdir}/*.pc
435 %defattr(644,root,root,755)
436 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
439 %defattr(644,root,root,755)
440 %attr(755,root,root) %{_libdir}/libavahi-glib.so
441 %{_libdir}/libavahi-glib.la
442 %{_includedir}/avahi-glib
443 %{_pkgconfigdir}/avahi-glib.pc
446 %defattr(644,root,root,755)
447 %{_libdir}/libavahi-glib.a
450 %defattr(644,root,root,755)
451 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
454 %defattr(644,root,root,755)
455 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
456 %{_libdir}/libavahi-qt3.la
457 %{_includedir}/avahi-qt3
458 %{_pkgconfigdir}/avahi-qt3.pc
461 %defattr(644,root,root,755)
462 %{_libdir}/libavahi-qt3.a
465 %defattr(644,root,root,755)
466 %attr(755,root,root) %{_bindir}/avahi-bookmarks
469 %defattr(644,root,root,755)
470 %attr(755,root,root) %{_bindir}/avahi-discover
471 %{_datadir}/%{name}/interfaces/avahi-discover.glade
473 %{_desktopdir}/*.desktop
474 %{_pixmapsdir}/avahi.png
476 %files discover-standalone
477 %defattr(644,root,root,755)
478 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
479 %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade
482 %defattr(644,root,root,755)
483 %attr(755,root,root) %{_bindir}/avahi-browse
484 %attr(755,root,root) %{_bindir}/avahi-publish
485 %attr(755,root,root) %{_bindir}/avahi-resolve