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
16 URL: http://avahi.org/
17 BuildRequires: autoconf
18 BuildRequires: automake
19 BuildRequires: dbus-devel >= 0.34
20 BuildRequires: doxygen
21 BuildRequires: expat-devel
22 BuildRequires: gdbm-devel
23 BuildRequires: glib2-devel >= 1:2.4.0
24 BuildRequires: graphviz
25 BuildRequires: gtk+2-devel >= 2:2.4.0
26 BuildRequires: libdaemon-devel >= 0.5
27 BuildRequires: libglade2-devel >= 2.4.0
28 BuildRequires: libtool
31 BuildRequires: monodoc
33 BuildRequires: python-dbus
34 BuildRequires: python-pygtk-devel
35 BuildRequires: qt-devel
36 BuildRequires: rpmbuild(macros) >= 1.228
37 Requires(post,preun): /sbin/chkconfig
38 Provides: group(avahi)
40 Requires: %{name}-libs = %{version}-%{release}
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 Avahi is an implementation the DNS Service Discovery and Multicast
45 DNS specifications for Zeroconf Computing. It uses D-BUS for
46 communication between user applications and a system daemon.
49 Avahi jest implementacj± specyfikacji DNS Service Discovery
50 i Multicast DNS dla Zeroconf Computing. U¿ywa D-BUSa dla komunikacji
51 pomiêdzy programami u¿ytkownika a demonem systemowym.
54 Summary: Avahi client, common and core libraries
55 Summary(pl): Biblioteki Avahi: klienta, wspólna i g³ówna
59 Avahi client, common and core libraries.
61 %description libs -l pl
62 Biblioteki Avahi: klienta, wspólna i g³ówna.
65 Summary: Header files for Avahi library
66 Summary(pl): Pliki nag³ówkowe biblioteki Avahi
67 Group: Development/Libraries
68 Requires: %{name}-libs = %{version}-%{release}
70 Requires: libdaemon-devel >= 0.5
73 This is the package containing the header files for Avahi library.
75 %description devel -l pl
76 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi.
79 Summary: Static Avahi library
80 Summary(pl): Statyczna biblioteka Avahi
81 Group: Development/Libraries
82 Requires: %{name}-devel = %{version}-%{release}
87 %description static -l pl
88 Statyczna biblioteka Avahi.
91 Summary: Avahi GLib library bindings
92 Summary(pl): Wi±zania Avahi dla bibioteki GLib
96 Avahi GLib library bindings.
98 %description glib -l pl
99 Wi±zania Avahi dla bibioteki GLib.
102 Summary: Header files for Avahi GLib library bindings
103 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki GLib
104 Group: Development/Libraries
105 Requires: %{name}-libs = %{version}-%{release}
106 Requires: glib2-devel >= 1:2.4.0
108 %description glib-devel
109 This is the package containing the header files for Avahi-glib library.
111 %description glib-devel -l pl
112 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi-glib.
115 Summary: Static Avahi GLib library
116 Summary(pl): Statyczna biblioteka Avahi GLib
117 Group: Development/Libraries
118 Requires: %{name}-glib-devel = %{version}-%{release}
120 %description glib-static
121 Static Avahi GLib library.
123 %description glib-static -l pl
124 Statyczna biblioteka Avahi GLib.
127 Summary: Avahi Qt 3 library bindings
128 Summary(pl): Wi±zania Avahi dla biblioteki Qt 3
130 Requires: %{name}-libs = %{version}-%{release}
133 Avahi Qt 3 library bindings.
135 %description qt3 -l pl
136 Wi±zania Avahi dla biblioteki Qt 3.
139 Summary: Header files for Avahi Qt 3 library bindings
140 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3
141 Group: Development/Libraries
142 Requires: %{name}-qt3 = %{version}-%{release}
145 %description qt3-devel
146 Header files for Avahi Qt 3 library bindings.
148 %description qt3-devel -l pl
149 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3.
152 Summary: Static Avahi Qt 3 library
153 Summary(pl): Statyczna biblioteka Avahi Qt 3
154 Group: Development/Libraries
155 Requires: %{name}-qt3-devel = %{version}-%{release}
157 %description qt3-static
158 Static Avahi Qt 3 library.
160 %description qt3-static -l pl
161 Statyczna biblioteka Avahi Qt 3.
163 %package -n dotnet-avahi
164 Summary: Avahi MONO bindings
165 Summary(pl): Wi±zania Avahi dla MONO
168 %description -n dotnet-avahi
171 %description -n dotnet-avahi -l pl
172 Wi±zania Avahi dla MONO.
174 %package -n dotnet-avahi-devel
175 Summary: Development files for MONO Avahi bindings
176 Summary(pl): Pliki rozwojowe wi±zañ Avahi dla MONO
177 Group: Development/Libraries
178 Requires: %{name}-libs = %{version}-%{release}
180 %description -n dotnet-avahi-devel
181 Development files for MONO Avahi bindings.
183 %description -n dotnet-avahi-devel -l pl
184 Pliki rozwojowe wi±zañ Avahi dla MONO.
187 Summary: Miniature web server
188 Summary(pl): Miniaturowy serwer web
191 %description bookmarks
192 A Python based miniature web server that browses for mDNS/DNS-SD
193 services of type '_http._tcp' (i.e. web sites) and makes them
194 available as HTML links on http://localhost:8080.
196 %description bookmarks -l pl
197 Napisany w Pythonie miniaturowy serwer web, pozwalaj±cy nap
198 przegl±danie us³ug typu '_http._tcp' (np. stron web) i
199 udostêpniaj±cy je jako linki HTML na http://localhost:8080.
202 Summary: Avahi Zeroconf browser
203 Summary(pl): Przegl±darka Zeroconf Avahi
206 %description discover
207 A tool for enumerating all available services on the
208 local LAN (python-pygtk implementation).
210 %description discover -l pl
211 Narzêdzie wymieniaj±ce wszystkie dostêpne us³ugi w sieci
212 lokalnej LAN (implementacja w python-pygtk).
214 %package discover-standalone
215 Summary: Avahi Zeroconf browser
216 Summary(pl): Przegl±darka Zeroconf Avahi
219 %description discover-standalone
220 GTK+ tool for enumerating all available services on the local LAN.
222 %description discover-standalone -l pl
223 Narzêdzie GTK+ wymieniaj±ce wszystkie dostêpne us³ugi w sieci
227 Summary: Avahi CLI utilities
228 Summary(pl): Narzêdzia CLI Avahi
232 Command line utilities using avahi-client.
234 %description utils -l pl
235 Narzêdzia linii poleceñ korzystaj±ce z avahi-client.
242 %{__aclocal} -I common
249 %{!?with_dotnet:--disable-mono} \
250 %{!?with_dotnet:--disable-monodoc}
254 rm -rf $RPM_BUILD_ROOT
255 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
258 DESTDIR=$RPM_BUILD_ROOT \
259 pythondir=%{py_sitedir}
261 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
263 #rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/*.py
266 rm -rf $RPM_BUILD_ROOT
269 %groupadd -g 165 -r -f avahi
270 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
273 /sbin/chkconfig --add %{name}-daemon
274 %service %{name}-daemon restart
275 /sbin/chkconfig --add %{name}-dnsconfd
276 %service %{name}-dnsconfd restart
279 if [ "$1" = "0" ]; then
280 %service -q %{name}-dnsconfd stop
281 /sbin/chkconfig --del %{name}-dnsconfd
282 %service -q %{name}-daemon stop
283 /sbin/chkconfig --del %{name}-daemon
287 if [ "$1" = "0" ]; then
292 %post libs -p /sbin/ldconfig
293 %postun libs -p /sbin/ldconfig
295 %post glib -p /sbin/ldconfig
296 %postun glib -p /sbin/ldconfig
298 %post qt3 -p /sbin/ldconfig
299 %postun qt3 -p /sbin/ldconfig
302 %defattr(644,root,root,755)
303 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
305 %dir %{_sysconfdir}/avahi
306 %dir %{_sysconfdir}/avahi/services
307 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
308 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-dnsconfd.action
309 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
310 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
312 %attr(755,root,root) %{_bindir}/avahi-browse
313 %attr(755,root,root) %{_bindir}/avahi-publish
314 %attr(755,root,root) %{_bindir}/avahi-resolve
316 %attr(755,root,root) %{_sbindir}/avahi-daemon
317 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
319 %dir %{_datadir}/%{name}
321 %dir %{_datadir}/%{name}/introspection
322 %{_datadir}/%{name}/introspection/*.introspect
323 %{_datadir}/%{name}/avahi-service.dtd
324 %{_datadir}/%{name}/service-types
325 %{_datadir}/%{name}/service-types.db
329 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
330 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
333 %defattr(644,root,root,755)
334 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
335 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
336 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
339 %defattr(644,root,root,755)
340 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
341 %attr(755,root,root) %{_libdir}/libavahi-client.so
342 %attr(755,root,root) %{_libdir}/libavahi-common.so
343 %attr(755,root,root) %{_libdir}/libavahi-core.so
344 %{_libdir}/libavahi-client.la
345 %{_libdir}/libavahi-common.la
346 %{_libdir}/libavahi-core.la
347 %{_includedir}/avahi-client
348 %{_includedir}/avahi-common
349 %{_includedir}/avahi-core
350 %{_pkgconfigdir}/avahi-client.pc
351 %{_pkgconfigdir}/avahi-core.pc
354 %defattr(644,root,root,755)
355 %{_libdir}/libavahi-client.a
356 %{_libdir}/libavahi-common.a
357 %{_libdir}/libavahi-core.a
359 #%files -n dotnet-avahi
360 #%defattr(644,root,root,755)
362 #%files -n dotnet-avahi-devel
363 #%defattr(644,root,root,755)
366 %defattr(644,root,root,755)
367 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
370 %defattr(644,root,root,755)
371 %attr(755,root,root) %{_libdir}/libavahi-glib.so
372 %{_libdir}/libavahi-glib.la
373 %{_includedir}/avahi-glib
374 %{_pkgconfigdir}/avahi-glib.pc
377 %defattr(644,root,root,755)
378 %{_libdir}/libavahi-glib.a
381 %defattr(644,root,root,755)
382 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
385 %defattr(644,root,root,755)
386 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
387 %{_libdir}/libavahi-qt3.la
388 %{_includedir}/avahi-qt3
389 %{_pkgconfigdir}/avahi-qt3.pc
392 %defattr(644,root,root,755)
393 %{_libdir}/libavahi-qt3.a
396 %defattr(644,root,root,755)
397 %attr(755,root,root) %{_bindir}/avahi-bookmarks
400 %defattr(644,root,root,755)
401 %attr(755,root,root) %{_bindir}/avahi-discover
402 %{_datadir}/%{name}/interfaces/avahi-discover.glade
404 %{_desktopdir}/*.desktop
406 %files discover-standalone
407 %defattr(644,root,root,755)
408 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
411 %defattr(644,root,root,755)
412 %attr(755,root,root) %{_bindir}/avahi-browse
413 %attr(755,root,root) %{_bindir}/avahi-publish
414 %attr(755,root,root) %{_bindir}/avahi-resolve