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: 12eb941043f26f82c51e99821ac52c44
14 Source1: %{name}-daemon
15 Source2: %{name}-dnsconfd
17 Patch1: %{name}-desktop.patch
18 URL: http://avahi.org/
19 BuildRequires: autoconf
20 BuildRequires: automake
21 BuildRequires: dbus-devel >= 0.34
22 BuildRequires: doxygen
23 BuildRequires: expat-devel
24 BuildRequires: gdbm-devel
25 BuildRequires: glib2-devel >= 1:2.4.0
26 BuildRequires: graphviz
27 BuildRequires: gtk+2-devel >= 2:2.4.0
28 BuildRequires: libdaemon-devel >= 0.5
29 BuildRequires: libglade2-devel >= 2.4.0
30 BuildRequires: libtool
33 BuildRequires: monodoc
35 BuildRequires: python-dbus
36 BuildRequires: python-pygtk-devel
37 BuildRequires: qt-devel
38 BuildRequires: rpmbuild(macros) >= 1.228
39 Requires(post,preun): /sbin/chkconfig
40 Requires: %{name}-libs = %{version}-%{release}
41 Provides: group(avahi)
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 Avahi is an implementation the DNS Service Discovery and Multicast DNS
47 specifications for Zeroconf Computing. It uses D-BUS for communication
48 between user applications and a system daemon.
51 Avahi jest implementacj± specyfikacji DNS Service Discovery i
52 Multicast DNS dla Zeroconf Computing. U¿ywa D-BUSa dla komunikacji
53 pomiêdzy programami u¿ytkownika a demonem systemowym.
56 Summary: Avahi client, common and core libraries
57 Summary(pl): Biblioteki Avahi: klienta, wspólna i g³ówna
61 Avahi client, common and core libraries.
63 %description libs -l pl
64 Biblioteki Avahi: klienta, wspólna i g³ówna.
67 Summary: Header files for Avahi library
68 Summary(pl): Pliki nag³ówkowe biblioteki Avahi
69 Group: Development/Libraries
70 Requires: %{name}-libs = %{version}-%{release}
72 Requires: libdaemon-devel >= 0.5
75 This is the package containing the header files for Avahi library.
77 %description devel -l pl
78 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi.
81 Summary: Static Avahi library
82 Summary(pl): Statyczna biblioteka Avahi
83 Group: Development/Libraries
84 Requires: %{name}-devel = %{version}-%{release}
89 %description static -l pl
90 Statyczna biblioteka Avahi.
93 Summary: Avahi GLib library bindings
94 Summary(pl): Wi±zania Avahi dla bibioteki GLib
98 Avahi GLib library bindings.
100 %description glib -l pl
101 Wi±zania Avahi dla bibioteki GLib.
104 Summary: Header files for Avahi GLib library bindings
105 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki GLib
106 Group: Development/Libraries
107 Requires: %{name}-glib = %{version}-%{release}
108 Requires: glib2-devel >= 1:2.4.0
110 %description glib-devel
111 This is the package containing the header files for Avahi-glib
114 %description glib-devel -l pl
115 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi-glib.
118 Summary: Static Avahi GLib library
119 Summary(pl): Statyczna biblioteka Avahi GLib
120 Group: Development/Libraries
121 Requires: %{name}-glib-devel = %{version}-%{release}
123 %description glib-static
124 Static Avahi GLib library.
126 %description glib-static -l pl
127 Statyczna biblioteka Avahi GLib.
130 Summary: Avahi Qt 3 library bindings
131 Summary(pl): Wi±zania Avahi dla biblioteki Qt 3
133 Requires: %{name}-libs = %{version}-%{release}
136 Avahi Qt 3 library bindings.
138 %description qt3 -l pl
139 Wi±zania Avahi dla biblioteki Qt 3.
142 Summary: Header files for Avahi Qt 3 library bindings
143 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3
144 Group: Development/Libraries
145 Requires: %{name}-qt3 = %{version}-%{release}
148 %description qt3-devel
149 Header files for Avahi Qt 3 library bindings.
151 %description qt3-devel -l pl
152 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3.
155 Summary: Static Avahi Qt 3 library
156 Summary(pl): Statyczna biblioteka Avahi Qt 3
157 Group: Development/Libraries
158 Requires: %{name}-qt3-devel = %{version}-%{release}
160 %description qt3-static
161 Static Avahi Qt 3 library.
163 %description qt3-static -l pl
164 Statyczna biblioteka Avahi Qt 3.
166 %package -n dotnet-avahi
167 Summary: Avahi MONO bindings
168 Summary(pl): Wi±zania Avahi dla MONO
171 %description -n dotnet-avahi
174 %description -n dotnet-avahi -l pl
175 Wi±zania Avahi dla MONO.
177 %package -n dotnet-avahi-devel
178 Summary: Development files for MONO Avahi bindings
179 Summary(pl): Pliki rozwojowe wi±zañ Avahi dla MONO
180 Group: Development/Libraries
181 Requires: dotnet-avahi = %{version}-%{release}
183 %description -n dotnet-avahi-devel
184 Development files for MONO Avahi bindings.
186 %description -n dotnet-avahi-devel -l pl
187 Pliki rozwojowe wi±zañ Avahi dla MONO.
190 Summary: Miniature web server
191 Summary(pl): Miniaturowy serwer web
194 %description bookmarks
195 A Python based miniature web server that browses for mDNS/DNS-SD
196 services of type '_http._tcp' (i.e. web sites) and makes them
197 available as HTML links on http://localhost:8080.
199 %description bookmarks -l pl
200 Napisany w Pythonie miniaturowy serwer web, pozwalaj±cy na
201 przegl±danie us³ug typu '_http._tcp' (np. stron web) i udostêpniaj±cy
202 je jako linki HTML na http://localhost:8080.
205 Summary: Avahi Zeroconf browser
206 Summary(pl): Przegl±darka Zeroconf Avahi
209 %description discover
210 A tool for enumerating all available services on the local LAN
211 (python-pygtk implementation).
213 %description discover -l pl
214 Narzêdzie wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej LAN
215 (implementacja w python-pygtk).
217 %package discover-standalone
218 Summary: Avahi Zeroconf browser
219 Summary(pl): Przegl±darka Zeroconf Avahi
222 %description discover-standalone
223 GTK+ tool for enumerating all available services on the local LAN.
225 %description discover-standalone -l pl
226 Narzêdzie GTK+ wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej
230 Summary: Avahi CLI utilities
231 Summary(pl): Narzêdzia CLI Avahi
235 Command line utilities using avahi-client.
237 %description utils -l pl
238 Narzêdzia linii poleceñ korzystaj±ce z avahi-client.
245 %{__aclocal} -I common
252 %{!?with_dotnet:--disable-mono} \
253 %{!?with_dotnet:--disable-monodoc}
257 rm -rf $RPM_BUILD_ROOT
258 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d}
261 DESTDIR=$RPM_BUILD_ROOT \
262 pythondir=%{py_sitedir}
264 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
265 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
267 #rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/*.py
270 rm -rf $RPM_BUILD_ROOT
273 %groupadd -g 165 -r -f avahi
274 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
277 /sbin/chkconfig --add %{name}-daemon
278 %service %{name}-daemon restart
279 /sbin/chkconfig --add %{name}-dnsconfd
280 %service %{name}-dnsconfd restart
283 if [ "$1" = "0" ]; then
284 %service -q %{name}-dnsconfd stop
285 /sbin/chkconfig --del %{name}-dnsconfd
286 %service -q %{name}-daemon stop
287 /sbin/chkconfig --del %{name}-daemon
291 if [ "$1" = "0" ]; then
296 %post libs -p /sbin/ldconfig
297 %postun libs -p /sbin/ldconfig
299 %post glib -p /sbin/ldconfig
300 %postun glib -p /sbin/ldconfig
302 %post qt3 -p /sbin/ldconfig
303 %postun qt3 -p /sbin/ldconfig
306 %defattr(644,root,root,755)
307 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
309 %dir %{_sysconfdir}/avahi
310 %dir %{_sysconfdir}/avahi/services
311 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
312 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-dnsconfd.action
313 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
314 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
316 %attr(755,root,root) %{_bindir}/avahi-browse
317 %attr(755,root,root) %{_bindir}/avahi-publish
318 %attr(755,root,root) %{_bindir}/avahi-resolve
320 %attr(755,root,root) %{_sbindir}/avahi-daemon
321 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
323 %dir %{_datadir}/%{name}
325 %dir %{_datadir}/%{name}/introspection
326 %{_datadir}/%{name}/introspection/*.introspect
327 %{_datadir}/%{name}/avahi-service.dtd
328 %{_datadir}/%{name}/service-types
329 %{_datadir}/%{name}/service-types.db
333 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
334 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
337 %defattr(644,root,root,755)
338 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
339 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
340 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
343 %defattr(644,root,root,755)
344 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
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
348 %{_libdir}/libavahi-client.la
349 %{_libdir}/libavahi-common.la
350 %{_libdir}/libavahi-core.la
351 %{_includedir}/avahi-client
352 %{_includedir}/avahi-common
353 %{_includedir}/avahi-core
354 %{_pkgconfigdir}/avahi-client.pc
355 %{_pkgconfigdir}/avahi-core.pc
358 %defattr(644,root,root,755)
359 %{_libdir}/libavahi-client.a
360 %{_libdir}/libavahi-common.a
361 %{_libdir}/libavahi-core.a
363 #%files -n dotnet-avahi
364 #%defattr(644,root,root,755)
366 #%files -n dotnet-avahi-devel
367 #%defattr(644,root,root,755)
370 %defattr(644,root,root,755)
371 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
374 %defattr(644,root,root,755)
375 %attr(755,root,root) %{_libdir}/libavahi-glib.so
376 %{_libdir}/libavahi-glib.la
377 %{_includedir}/avahi-glib
378 %{_pkgconfigdir}/avahi-glib.pc
381 %defattr(644,root,root,755)
382 %{_libdir}/libavahi-glib.a
385 %defattr(644,root,root,755)
386 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
389 %defattr(644,root,root,755)
390 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
391 %{_libdir}/libavahi-qt3.la
392 %{_includedir}/avahi-qt3
393 %{_pkgconfigdir}/avahi-qt3.pc
396 %defattr(644,root,root,755)
397 %{_libdir}/libavahi-qt3.a
400 %defattr(644,root,root,755)
401 %attr(755,root,root) %{_bindir}/avahi-bookmarks
404 %defattr(644,root,root,755)
405 %attr(755,root,root) %{_bindir}/avahi-discover
406 %{_datadir}/%{name}/interfaces/avahi-discover.glade
408 %{_desktopdir}/*.desktop
409 %{_pixmapsdir}/avahi.png
411 %files discover-standalone
412 %defattr(644,root,root,755)
413 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
416 %defattr(644,root,root,755)
417 %attr(755,root,root) %{_bindir}/avahi-browse
418 %attr(755,root,root) %{_bindir}/avahi-publish
419 %attr(755,root,root) %{_bindir}/avahi-resolve