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}
187 %description -n dotnet-avahi-devel
188 Development files for MONO Avahi bindings.
190 %description -n dotnet-avahi-devel -l pl
191 Pliki rozwojowe wi±zañ Avahi dla MONO.
194 Summary: Miniature web server
195 Summary(pl): Miniaturowy serwer web
198 %description bookmarks
199 A Python based miniature web server that browses for mDNS/DNS-SD
200 services of type '_http._tcp' (i.e. web sites) and makes them
201 available as HTML links on http://localhost:8080.
203 %description bookmarks -l pl
204 Napisany w Pythonie miniaturowy serwer web, pozwalaj±cy na
205 przegl±danie us³ug typu '_http._tcp' (np. stron web) i udostêpniaj±cy
206 je jako linki HTML na http://localhost:8080.
209 Summary: Avahi Zeroconf browser
210 Summary(pl): Przegl±darka Zeroconf Avahi
213 %description discover
214 A tool for enumerating all available services on the local LAN
215 (python-pygtk implementation).
217 %description discover -l pl
218 Narzêdzie wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej LAN
219 (implementacja w python-pygtk).
221 %package discover-standalone
222 Summary: Avahi Zeroconf browser
223 Summary(pl): Przegl±darka Zeroconf Avahi
226 %description discover-standalone
227 GTK+ tool for enumerating all available services on the local LAN.
229 %description discover-standalone -l pl
230 Narzêdzie GTK+ wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej
234 Summary: Avahi CLI utilities
235 Summary(pl): Narzêdzia CLI Avahi
239 Command line utilities using avahi-client.
241 %description utils -l pl
242 Narzêdzia linii poleceñ korzystaj±ce z avahi-client.
251 %{__aclocal} -I common
258 %{!?with_dotnet:--disable-mono} \
259 %{!?with_dotnet:--disable-monodoc}
263 rm -rf $RPM_BUILD_ROOT
264 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d}
267 DESTDIR=$RPM_BUILD_ROOT \
268 pythondir=%{py_sitedir}
270 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
271 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
273 rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/{__init__,SimpleGladeApp}.py
276 rm -rf $RPM_BUILD_ROOT
279 %groupadd -g 165 -r -f avahi
280 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
283 /sbin/chkconfig --add %{name}-daemon
284 %service %{name}-daemon restart
285 /sbin/chkconfig --add %{name}-dnsconfd
286 %service %{name}-dnsconfd restart
289 if [ "$1" = "0" ]; then
290 %service -q %{name}-dnsconfd stop
291 /sbin/chkconfig --del %{name}-dnsconfd
292 %service -q %{name}-daemon stop
293 /sbin/chkconfig --del %{name}-daemon
297 if [ "$1" = "0" ]; then
302 %post libs -p /sbin/ldconfig
303 %postun libs -p /sbin/ldconfig
305 %post glib -p /sbin/ldconfig
306 %postun glib -p /sbin/ldconfig
308 %post qt3 -p /sbin/ldconfig
309 %postun qt3 -p /sbin/ldconfig
312 %defattr(644,root,root,755)
313 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
315 %dir %{_sysconfdir}/avahi
316 %dir %{_sysconfdir}/avahi/services
317 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
318 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-dnsconfd.action
319 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
320 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
322 %attr(755,root,root) %{_bindir}/avahi-browse
323 %attr(755,root,root) %{_bindir}/avahi-publish
324 %attr(755,root,root) %{_bindir}/avahi-resolve
326 %attr(755,root,root) %{_sbindir}/avahi-daemon
327 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
329 %dir %{_datadir}/%{name}
331 %dir %{_datadir}/%{name}/introspection
332 %{_datadir}/%{name}/introspection/*.introspect
333 %{_datadir}/%{name}/avahi-service.dtd
334 %{_datadir}/%{name}/service-types
335 %{_datadir}/%{name}/service-types.db
339 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
340 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
343 %defattr(644,root,root,755)
344 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
345 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
346 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
349 %defattr(644,root,root,755)
350 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
351 %attr(755,root,root) %{_libdir}/libavahi-client.so
352 %attr(755,root,root) %{_libdir}/libavahi-common.so
353 %attr(755,root,root) %{_libdir}/libavahi-core.so
354 %{_libdir}/libavahi-client.la
355 %{_libdir}/libavahi-common.la
356 %{_libdir}/libavahi-core.la
357 %{_includedir}/avahi-client
358 %{_includedir}/avahi-common
359 %{_includedir}/avahi-core
360 %{_pkgconfigdir}/avahi-client.pc
361 %{_pkgconfigdir}/avahi-core.pc
364 %defattr(644,root,root,755)
365 %{_libdir}/libavahi-client.a
366 %{_libdir}/libavahi-common.a
367 %{_libdir}/libavahi-core.a
369 #%files -n dotnet-avahi
370 #%defattr(644,root,root,755)
372 #%files -n dotnet-avahi-devel
373 #%defattr(644,root,root,755)
376 %defattr(644,root,root,755)
377 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
380 %defattr(644,root,root,755)
381 %attr(755,root,root) %{_libdir}/libavahi-glib.so
382 %{_libdir}/libavahi-glib.la
383 %{_includedir}/avahi-glib
384 %{_pkgconfigdir}/avahi-glib.pc
387 %defattr(644,root,root,755)
388 %{_libdir}/libavahi-glib.a
391 %defattr(644,root,root,755)
392 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
395 %defattr(644,root,root,755)
396 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
397 %{_libdir}/libavahi-qt3.la
398 %{_includedir}/avahi-qt3
399 %{_pkgconfigdir}/avahi-qt3.pc
402 %defattr(644,root,root,755)
403 %{_libdir}/libavahi-qt3.a
406 %defattr(644,root,root,755)
407 %attr(755,root,root) %{_bindir}/avahi-bookmarks
410 %defattr(644,root,root,755)
411 %attr(755,root,root) %{_bindir}/avahi-discover
412 %{_datadir}/%{name}/interfaces/avahi-discover.glade
414 %{_desktopdir}/*.desktop
415 %{_pixmapsdir}/avahi.png
417 %files discover-standalone
418 %defattr(644,root,root,755)
419 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
420 %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade
423 %defattr(644,root,root,755)
424 %attr(755,root,root) %{_bindir}/avahi-browse
425 %attr(755,root,root) %{_bindir}/avahi-publish
426 %attr(755,root,root) %{_bindir}/avahi-resolve