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.
95 Summary: Avahi GLib library bindings
96 Summary(pl): Wi±zania Avahi dla bibioteki GLib
100 Avahi GLib library bindings.
102 %description glib -l pl
103 Wi±zania Avahi dla bibioteki GLib.
106 Summary: Header files for Avahi GLib library bindings
107 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki GLib
108 Group: Development/Libraries
109 Requires: %{name}-devel = %{version}-%{release}
110 Requires: %{name}-glib = %{version}-%{release}
111 Requires: glib2-devel >= 1:2.4.0
113 %description glib-devel
114 This is the package containing the header files for Avahi-glib
117 %description glib-devel -l pl
118 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi-glib.
121 Summary: Static Avahi GLib library
122 Summary(pl): Statyczna biblioteka Avahi GLib
123 Group: Development/Libraries
124 Requires: %{name}-glib-devel = %{version}-%{release}
126 %description glib-static
127 Static Avahi GLib library.
129 %description glib-static -l pl
130 Statyczna biblioteka Avahi GLib.
133 Summary: Avahi Qt 3 library bindings
134 Summary(pl): Wi±zania Avahi dla biblioteki Qt 3
136 Requires: %{name}-libs = %{version}-%{release}
139 Avahi Qt 3 library bindings.
141 %description qt3 -l pl
142 Wi±zania Avahi dla biblioteki Qt 3.
145 Summary: Header files for Avahi Qt 3 library bindings
146 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3
147 Group: Development/Libraries
148 Requires: %{name}-devel = %{version}-%{release}
149 Requires: %{name}-qt3 = %{version}-%{release}
152 %description qt3-devel
153 Header files for Avahi Qt 3 library bindings.
155 %description qt3-devel -l pl
156 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3.
159 Summary: Static Avahi Qt 3 library
160 Summary(pl): Statyczna biblioteka Avahi Qt 3
161 Group: Development/Libraries
162 Requires: %{name}-qt3-devel = %{version}-%{release}
164 %description qt3-static
165 Static Avahi Qt 3 library.
167 %description qt3-static -l pl
168 Statyczna biblioteka Avahi Qt 3.
170 %package -n dotnet-avahi
171 Summary: Avahi MONO bindings
172 Summary(pl): Wi±zania Avahi dla MONO
175 %description -n dotnet-avahi
178 %description -n dotnet-avahi -l pl
179 Wi±zania Avahi dla MONO.
181 %package -n dotnet-avahi-devel
182 Summary: Development files for MONO Avahi bindings
183 Summary(pl): Pliki rozwojowe wi±zañ Avahi dla MONO
184 Group: Development/Libraries
185 Requires: dotnet-avahi = %{version}-%{release}
188 %description -n dotnet-avahi-devel
189 Development files for MONO Avahi bindings.
191 %description -n dotnet-avahi-devel -l pl
192 Pliki rozwojowe wi±zañ Avahi dla MONO.
195 Summary: Miniature web server
196 Summary(pl): Miniaturowy serwer web
199 %description bookmarks
200 A Python based miniature web server that browses for mDNS/DNS-SD
201 services of type '_http._tcp' (i.e. web sites) and makes them
202 available as HTML links on http://localhost:8080.
204 %description bookmarks -l pl
205 Napisany w Pythonie miniaturowy serwer web, pozwalaj±cy na
206 przegl±danie us³ug typu '_http._tcp' (np. stron web) i udostêpniaj±cy
207 je jako linki HTML na http://localhost:8080.
210 Summary: Avahi Zeroconf browser
211 Summary(pl): Przegl±darka Zeroconf Avahi
214 %description discover
215 A tool for enumerating all available services on the local LAN
216 (python-pygtk implementation).
218 %description discover -l pl
219 Narzêdzie wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej LAN
220 (implementacja w python-pygtk).
222 %package discover-standalone
223 Summary: Avahi Zeroconf browser
224 Summary(pl): Przegl±darka Zeroconf Avahi
227 %description discover-standalone
228 GTK+ tool for enumerating all available services on the local LAN.
230 %description discover-standalone -l pl
231 Narzêdzie GTK+ wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej
235 Summary: Avahi CLI utilities
236 Summary(pl): Narzêdzia CLI Avahi
240 Command line utilities using avahi-client.
242 %description utils -l pl
243 Narzêdzia linii poleceñ korzystaj±ce z avahi-client.
252 %{__aclocal} -I common
259 %{!?with_dotnet:--disable-mono} \
260 %{!?with_dotnet:--disable-monodoc}
264 rm -rf $RPM_BUILD_ROOT
265 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d}
268 DESTDIR=$RPM_BUILD_ROOT \
269 pythondir=%{py_sitedir}
271 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
272 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
274 rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/{__init__,SimpleGladeApp}.py
277 rm -rf $RPM_BUILD_ROOT
280 %groupadd -g 165 -r -f avahi
281 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
284 /sbin/chkconfig --add %{name}-daemon
285 %service %{name}-daemon restart
286 /sbin/chkconfig --add %{name}-dnsconfd
287 %service %{name}-dnsconfd restart
290 if [ "$1" = "0" ]; then
291 %service -q %{name}-dnsconfd stop
292 /sbin/chkconfig --del %{name}-dnsconfd
293 %service -q %{name}-daemon stop
294 /sbin/chkconfig --del %{name}-daemon
298 if [ "$1" = "0" ]; then
303 %post libs -p /sbin/ldconfig
304 %postun libs -p /sbin/ldconfig
306 %post glib -p /sbin/ldconfig
307 %postun glib -p /sbin/ldconfig
309 %post qt3 -p /sbin/ldconfig
310 %postun qt3 -p /sbin/ldconfig
313 %defattr(644,root,root,755)
314 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
316 %dir %{_sysconfdir}/avahi
317 %dir %{_sysconfdir}/avahi/services
318 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
319 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-dnsconfd.action
320 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
321 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
323 %attr(755,root,root) %{_bindir}/avahi-browse
324 %attr(755,root,root) %{_bindir}/avahi-publish
325 %attr(755,root,root) %{_bindir}/avahi-resolve
327 %attr(755,root,root) %{_sbindir}/avahi-daemon
328 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
330 %dir %{_datadir}/%{name}
332 %dir %{_datadir}/%{name}/introspection
333 %{_datadir}/%{name}/introspection/*.introspect
334 %{_datadir}/%{name}/avahi-service.dtd
335 %{_datadir}/%{name}/service-types
336 %{_datadir}/%{name}/service-types.db
340 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
341 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
344 %defattr(644,root,root,755)
345 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
346 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
347 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
350 %defattr(644,root,root,755)
351 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
352 %attr(755,root,root) %{_libdir}/libavahi-client.so
353 %attr(755,root,root) %{_libdir}/libavahi-common.so
354 %attr(755,root,root) %{_libdir}/libavahi-core.so
355 %{_libdir}/libavahi-client.la
356 %{_libdir}/libavahi-common.la
357 %{_libdir}/libavahi-core.la
358 %{_includedir}/avahi-client
359 %{_includedir}/avahi-common
360 %{_includedir}/avahi-core
361 %{_pkgconfigdir}/avahi-client.pc
362 %{_pkgconfigdir}/avahi-core.pc
365 %defattr(644,root,root,755)
366 %{_libdir}/libavahi-client.a
367 %{_libdir}/libavahi-common.a
368 %{_libdir}/libavahi-core.a
371 %files -n dotnet-avahi
372 %defattr(644,root,root,755)
373 %{_prefix}/lib/mono/gac/avahi-sharp
375 %files -n dotnet-avahi-devel
376 %defattr(644,root,root,755)
377 %{_prefix}/lib/monodoc/sources/avahi-*
378 %{_pkgconfigdir}/*.pc
382 %defattr(644,root,root,755)
383 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
386 %defattr(644,root,root,755)
387 %attr(755,root,root) %{_libdir}/libavahi-glib.so
388 %{_libdir}/libavahi-glib.la
389 %{_includedir}/avahi-glib
390 %{_pkgconfigdir}/avahi-glib.pc
393 %defattr(644,root,root,755)
394 %{_libdir}/libavahi-glib.a
397 %defattr(644,root,root,755)
398 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
401 %defattr(644,root,root,755)
402 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
403 %{_libdir}/libavahi-qt3.la
404 %{_includedir}/avahi-qt3
405 %{_pkgconfigdir}/avahi-qt3.pc
408 %defattr(644,root,root,755)
409 %{_libdir}/libavahi-qt3.a
412 %defattr(644,root,root,755)
413 %attr(755,root,root) %{_bindir}/avahi-bookmarks
416 %defattr(644,root,root,755)
417 %attr(755,root,root) %{_bindir}/avahi-discover
418 %{_datadir}/%{name}/interfaces/avahi-discover.glade
420 %{_desktopdir}/*.desktop
421 %{_pixmapsdir}/avahi.png
423 %files discover-standalone
424 %defattr(644,root,root,755)
425 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
426 %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade
429 %defattr(644,root,root,755)
430 %attr(755,root,root) %{_bindir}/avahi-browse
431 %attr(755,root,root) %{_bindir}/avahi-publish
432 %attr(755,root,root) %{_bindir}/avahi-resolve