3 %bcond_without dotnet # build with dotnet bindings
4 %bcond_without qt3 # build with qt3 bindings
5 %bcond_with qt4 # build with qt4 bindings
7 %include /usr/lib/rpm/macros.mono
9 Summary: Free mDNS/DNS-SD implementation
10 Summary(pl): Wolna implementacja mDNS/DNS-SD
16 Source0: http://avahi.org/download/%{name}-%{version}.tar.gz
17 # Source0-md5: cfb9e05c138dff4c430a35eee6229e8a
18 Source1: %{name}-daemon
19 Source2: %{name}-dnsconfd
21 Patch0: %{name}-desktop.patch
22 Patch1: %{name}-glade.patch
23 Patch2: %{name}-destdir.patch
24 URL: http://avahi.org/
25 BuildRequires: autoconf
26 BuildRequires: automake
27 BuildRequires: dbus-devel >= 0.34
28 BuildRequires: doxygen
29 BuildRequires: expat-devel
30 BuildRequires: gdbm-devel
31 BuildRequires: glib2-devel >= 1:2.4.0
32 BuildRequires: graphviz
33 BuildRequires: gtk+2-devel >= 2:2.4.0
34 BuildRequires: libdaemon-devel >= 0.5
35 BuildRequires: libglade2-devel >= 1:2.5.1-5
36 BuildRequires: libtool
38 BuildRequires: mono-csharp
39 BuildRequires: monodoc
41 BuildRequires: pkgconfig
42 BuildRequires: python-dbus
43 BuildRequires: python-pygtk-devel
45 BuildRequires: qt-devel >= 3.0
48 BuildRequires: QtCore-devel
49 BuildRequires: qt4-build
51 BuildRequires: rpmbuild(macros) >= 1.228
52 Requires(post,preun): /sbin/chkconfig
53 Requires: dbus >= 0.60-2
54 Requires: %{name}-libs = %{version}-%{release}
55 Provides: group(avahi)
57 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
60 Avahi is an implementation the DNS Service Discovery and Multicast DNS
61 specifications for Zeroconf Computing. It uses D-BUS for communication
62 between user applications and a system daemon.
65 Avahi jest implementacj± specyfikacji DNS Service Discovery i
66 Multicast DNS dla Zeroconf Computing. U¿ywa D-BUSa dla komunikacji
67 pomiêdzy programami u¿ytkownika a demonem systemowym.
70 Summary: Avahi client, common and core libraries
71 Summary(pl): Biblioteki Avahi: klienta, wspólna i g³ówna
75 Avahi client, common and core libraries.
77 %description libs -l pl
78 Biblioteki Avahi: klienta, wspólna i g³ówna.
81 Summary: Header files for Avahi library
82 Summary(pl): Pliki nag³ówkowe biblioteki Avahi
83 Group: Development/Libraries
84 Requires: %{name}-libs = %{version}-%{release}
87 Requires: libdaemon-devel >= 0.5
90 This is the package containing the header files for Avahi library.
92 %description devel -l pl
93 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi.
96 Summary: Static Avahi library
97 Summary(pl): Statyczna biblioteka Avahi
98 Group: Development/Libraries
99 Requires: %{name}-devel = %{version}-%{release}
102 Static Avahi library.
104 %description static -l pl
105 Statyczna biblioteka Avahi.
107 %package compat-libdns_sd
108 Summary: Avahi Bonjour compat library
109 Summary(pl): Biblioteka Avahi zgodna z Bonjour
111 Provides: mdns-bonjour
112 Obsoletes: mDNSResponder-libs
114 %description compat-libdns_sd
115 Avahi Bonjour compat library.
117 %description compat-libdns_sd -l pl
118 Biblioteka Avahi zgodna z Bonjour.
120 %package compat-libdns_sd-devel
121 Summary: Header files for Avahi Bonjour compat library
122 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Bonjour
123 Group: Development/Libraries
124 Requires: %{name}-compat-libdns_sd = %{version}-%{release}
125 Requires: %{name}-devel = %{version}-%{release}
126 Provides: mdns-bonjour-devel
127 Obsoletes: mDNSResponder-devel
129 %description compat-libdns_sd-devel
130 Header files for Avahi Bonjour compat library.
132 %description compat-libdns_sd-devel -l pl
133 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Bonjour.
135 %package compat-libdns_sd-static
136 Summary: Static Avahi Bonjour compat library
137 Summary(pl): Statyczna biblioteka Avahi zgodna z Bonjour
138 Group: Development/Libraries
139 Requires: %{name}-compat-libdns_sd-devel = %{version}-%{release}
140 Provides: mdns-bonjour-static
142 %description compat-libdns_sd-static
143 Static Avahi Bonjour compat library.
145 %description compat-libdns_sd-static -l pl
146 Statyczna biblioteka Avahi zgodna z Bonjour.
149 Summary: Avahi Howl compat library
150 Summary(pl): Biblioteka Avahi zgodna z Howl
152 Provides: mdns-howl-libs
155 %description compat-howl
156 Avahi Howl compat library.
158 %description compat-howl -l pl
159 Biblioteka Avahi zgodna z Howl.
161 %package compat-howl-devel
162 Summary: Header files for Avahi Howl compat library
163 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Howl
164 Group: Development/Libraries
165 Requires: %{name}-compat-howl = %{version}-%{release}
166 Requires: %{name}-devel = %{version}-%{release}
167 Provides: mdns-howl-devel
168 Obsoletes: howl-devel
170 %description compat-howl-devel
171 Header files for Avahi Howl compat library.
173 %description compat-howl-devel -l pl
174 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Howl.
176 %package compat-howl-static
177 Summary: Static Avahi Howl compat library
178 Summary(pl): Statyczna biblioteka Avahi zgodna z Howl
179 Group: Development/Libraries
180 Requires: %{name}-compat-howl-devel = %{version}-%{release}
181 Provides: mdns-howl-static
182 Obsoletes: howl-static
184 %description compat-howl-static
185 Static Avahi Howl compat library.
187 %description compat-howl-static -l pl
188 Statyczna biblioteka Avahi zgodna z Howl.
191 Summary: Avahi GLib library bindings
192 Summary(pl): Wi±zania Avahi dla bibioteki GLib
196 Avahi GLib library bindings.
198 %description glib -l pl
199 Wi±zania Avahi dla bibioteki GLib.
202 Summary: Header files for Avahi GLib library bindings
203 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki GLib
204 Group: Development/Libraries
205 Requires: %{name}-devel = %{version}-%{release}
206 Requires: %{name}-glib = %{version}-%{release}
207 Requires: glib2-devel >= 1:2.4.0
209 %description glib-devel
210 This is the package containing the header files for Avahi-glib
213 %description glib-devel -l pl
214 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi-glib.
217 Summary: Static Avahi GLib library
218 Summary(pl): Statyczna biblioteka Avahi GLib
219 Group: Development/Libraries
220 Requires: %{name}-glib-devel = %{version}-%{release}
222 %description glib-static
223 Static Avahi GLib library.
225 %description glib-static -l pl
226 Statyczna biblioteka Avahi GLib.
229 Summary: Avahi Qt 3 library bindings
230 Summary(pl): Wi±zania Avahi dla biblioteki Qt 3
232 Requires: %{name}-libs = %{version}-%{release}
236 Avahi Qt 3 library bindings.
238 %description qt -l pl
239 Wi±zania Avahi dla biblioteki Qt 3.
242 Summary: Header files for Avahi Qt 3 library bindings
243 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3
244 Group: Development/Libraries
245 Requires: %{name}-devel = %{version}-%{release}
246 Requires: %{name}-qt = %{version}-%{release}
247 Requires: qt-devel >= 3.0
248 Obsoletes: avahi-qt3-devel
250 %description qt-devel
251 Header files for Avahi Qt 3 library bindings.
253 %description qt-devel -l pl
254 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3.
257 Summary: Static Avahi Qt 3 library
258 Summary(pl): Statyczna biblioteka Avahi Qt 3
259 Group: Development/Libraries
260 Requires: %{name}-qt-devel = %{version}-%{release}
261 Obsoletes: avahi-qt3-static
263 %description qt-static
264 Static Avahi Qt 3 library.
266 %description qt-static -l pl
267 Statyczna biblioteka Avahi Qt 3.
270 Summary: Avahi Qt 4 library bindings
271 Summary(pl): Wi±zania Avahi dla biblioteki Qt 4
273 Requires: %{name}-libs = %{version}-%{release}
276 Avahi Qt 4 library bindings.
278 %description Qt -l pl
279 Wi±zania Avahi dla biblioteki Qt 4.
282 Summary: Header files for Avahi Qt 3 library bindings
283 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3
284 Group: Development/Libraries
285 Requires: %{name}-devel = %{version}-%{release}
286 Requires: %{name}-Qt = %{version}-%{release}
288 %description Qt-devel
289 Header files for Avahi Qt 4 library bindings.
291 %description Qt-devel -l pl
292 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 4.
295 Summary: Static Avahi Qt 4 library
296 Summary(pl): Statyczna biblioteka Avahi Qt 4
297 Group: Development/Libraries
298 Requires: %{name}-Qt-devel = %{version}-%{release}
300 %description Qt-static
301 Static Avahi Qt 4 library.
303 %description Qt-static -l pl
304 Statyczna biblioteka Avahi Qt 4.
306 %package -n dotnet-avahi
307 Summary: Avahi MONO bindings
308 Summary(pl): Wi±zania Avahi dla MONO
311 %description -n dotnet-avahi
314 %description -n dotnet-avahi -l pl
315 Wi±zania Avahi dla MONO.
317 %package -n dotnet-avahi-devel
318 Summary: Development files for MONO Avahi bindings
319 Summary(pl): Pliki rozwojowe wi±zañ Avahi dla MONO
320 Group: Development/Libraries
321 Requires: dotnet-avahi = %{version}-%{release}
324 %description -n dotnet-avahi-devel
325 Development files for MONO Avahi bindings.
327 %description -n dotnet-avahi-devel -l pl
328 Pliki rozwojowe wi±zañ Avahi dla MONO.
331 Summary: Miniature web server
332 Summary(pl): Miniaturowy serwer web
335 %description bookmarks
336 A Python based miniature web server that browses for mDNS/DNS-SD
337 services of type '_http._tcp' (i.e. web sites) and makes them
338 available as HTML links on http://localhost:8080/.
340 %description bookmarks -l pl
341 Napisany w Pythonie miniaturowy serwer WWW, pozwalaj±cy na
342 przegl±danie us³ug typu '_http._tcp' (np. stron WWW) i udostêpniaj±cy
343 je jako odno¶niki HTML na http://localhost:8080/.
346 Summary: Avahi Zeroconf browser
347 Summary(pl): Przegl±darka Zeroconf Avahi
349 Requires: %{name} = %{version}-%{release}
350 Requires: python-dbus
351 Requires: python-pygtk-glade
353 %description discover
354 A tool for enumerating all available services on the local LAN
355 (python-pygtk implementation).
357 %description discover -l pl
358 Narzêdzie wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej LAN
359 (implementacja w python-pygtk).
361 %package discover-standalone
362 Summary: Avahi Zeroconf browser
363 Summary(pl): Przegl±darka Zeroconf Avahi
365 Requires: %{name} = %{version}-%{release}
366 Requires: python-dbus
367 Requires: python-pygtk-glade
369 %description discover-standalone
370 GTK+ tool for enumerating all available services on the local LAN.
372 %description discover-standalone -l pl
373 Narzêdzie GTK+ wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej
377 Summary: Avahi CLI utilities
378 Summary(pl): Narzêdzia CLI Avahi
382 Command line utilities using avahi-client.
384 %description utils -l pl
385 Narzêdzia linii poleceñ korzystaj±ce z avahi-client.
395 %{__aclocal} -I common
400 --enable-compat-libdns_sd \
401 --enable-compat-howl \
403 %{!?with_qt3:--disable-qt3} \
404 %{!?with_qt4:--disable-qt4} \
405 %{!?with_dotnet:--disable-mono} \
406 %{!?with_dotnet:--disable-monodoc}
410 rm -rf $RPM_BUILD_ROOT
411 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d}
414 DESTDIR=$RPM_BUILD_ROOT \
415 pythondir=%{py_sitedir}
417 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
418 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
420 ln -sf %{_includedir}/avahi-compat-libdns_sd/dns_sd.h \
421 $RPM_BUILD_ROOT%{_includedir}/dns_sd.h
423 ln -sf %{_pkgconfigdir}/avahi-compat-howl.pc \
424 $RPM_BUILD_ROOT%{_pkgconfigdir}/howl.pc
426 rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/{__init__,SimpleGladeApp}.py
429 rm -rf $RPM_BUILD_ROOT
432 %groupadd -g 165 -r -f avahi
433 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
436 /sbin/chkconfig --add %{name}-daemon
437 %service %{name}-daemon restart
438 /sbin/chkconfig --add %{name}-dnsconfd
439 %service %{name}-dnsconfd restart
442 if [ "$1" = "0" ]; then
443 %service -q %{name}-dnsconfd stop
444 /sbin/chkconfig --del %{name}-dnsconfd
445 %service -q %{name}-daemon stop
446 /sbin/chkconfig --del %{name}-daemon
450 if [ "$1" = "0" ]; then
455 %post libs -p /sbin/ldconfig
456 %postun libs -p /sbin/ldconfig
458 %post compat-libdns_sd -p /sbin/ldconfig
459 %postun compat-libdns_sd -p /sbin/ldconfig
461 %post compat-howl -p /sbin/ldconfig
462 %postun compat-howl -p /sbin/ldconfig
464 %post glib -p /sbin/ldconfig
465 %postun glib -p /sbin/ldconfig
467 %post qt -p /sbin/ldconfig
468 %postun qt -p /sbin/ldconfig
470 %post Qt -p /sbin/ldconfig
471 %postun Qt -p /sbin/ldconfig
474 %defattr(644,root,root,755)
475 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
477 %dir %{_sysconfdir}/avahi
478 %dir %{_sysconfdir}/avahi/services
479 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
480 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-dnsconfd.action
481 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/hosts
482 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
483 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
485 %attr(755,root,root) %{_bindir}/avahi-browse
486 %attr(755,root,root) %{_bindir}/avahi-publish
487 %attr(755,root,root) %{_bindir}/avahi-resolve
489 %attr(755,root,root) %{_sbindir}/avahi-daemon
490 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
492 %dir %{_datadir}/%{name}
493 %dir %{_datadir}/%{name}/introspection
494 %{_datadir}/%{name}/introspection/*.introspect
495 %{_datadir}/%{name}/avahi-service.dtd
496 %{_datadir}/%{name}/service-types
497 %{_datadir}/%{name}/service-types.db
501 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
502 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
505 %defattr(644,root,root,755)
506 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
507 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
508 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
511 %defattr(644,root,root,755)
512 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
513 %attr(755,root,root) %{_libdir}/libavahi-client.so
514 %attr(755,root,root) %{_libdir}/libavahi-common.so
515 %attr(755,root,root) %{_libdir}/libavahi-core.so
516 %{_libdir}/libavahi-client.la
517 %{_libdir}/libavahi-common.la
518 %{_libdir}/libavahi-core.la
519 %{_includedir}/avahi-client
520 %{_includedir}/avahi-common
521 %{_includedir}/avahi-core
522 %{_pkgconfigdir}/avahi-client.pc
523 %{_pkgconfigdir}/avahi-core.pc
526 %defattr(644,root,root,755)
527 %{_libdir}/libavahi-client.a
528 %{_libdir}/libavahi-common.a
529 %{_libdir}/libavahi-core.a
531 %files compat-libdns_sd
532 %defattr(644,root,root,755)
533 %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.*
535 %files compat-libdns_sd-devel
536 %defattr(644,root,root,755)
537 %attr(755,root,root) %{_libdir}/libdns_sd.so
538 %{_libdir}/libdns_sd.la
539 %{_includedir}/avahi-compat-libdns_sd
540 %{_includedir}/dns_sd.h
541 %{_pkgconfigdir}/avahi-compat-libdns_sd.pc
543 %files compat-libdns_sd-static
544 %defattr(644,root,root,755)
545 %{_libdir}/libdns_sd.a
548 %defattr(644,root,root,755)
549 %attr(755,root,root) %{_libdir}/libhowl.so.*.*.*
551 %files compat-howl-devel
552 %defattr(644,root,root,755)
553 %attr(755,root,root) %{_libdir}/libhowl.so
554 %{_libdir}/libhowl.la
555 %{_includedir}/avahi-compat-howl
556 %{_pkgconfigdir}/avahi-compat-howl.pc
557 %{_pkgconfigdir}/howl.pc
559 %files compat-howl-static
560 %defattr(644,root,root,755)
564 %files -n dotnet-avahi
565 %defattr(644,root,root,755)
566 %{_prefix}/lib/mono/gac/avahi-sharp
568 %files -n dotnet-avahi-devel
569 %defattr(644,root,root,755)
570 %{_libdir}/monodoc/sources/avahi-*
571 %{_pkgconfigdir}/avahi-sharp.pc
575 %defattr(644,root,root,755)
576 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
579 %defattr(644,root,root,755)
580 %attr(755,root,root) %{_libdir}/libavahi-glib.so
581 %{_libdir}/libavahi-glib.la
582 %{_includedir}/avahi-glib
583 %{_pkgconfigdir}/avahi-glib.pc
586 %defattr(644,root,root,755)
587 %{_libdir}/libavahi-glib.a
591 %defattr(644,root,root,755)
592 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
595 %defattr(644,root,root,755)
596 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
597 %{_libdir}/libavahi-qt3.la
598 %{_includedir}/avahi-qt3
599 %{_pkgconfigdir}/avahi-qt3.pc
602 %defattr(644,root,root,755)
603 %{_libdir}/libavahi-qt3.a
608 %defattr(644,root,root,755)
609 %attr(755,root,root) %{_libdir}/libavahi-qt4.so.*.*.*
612 %defattr(644,root,root,755)
613 %attr(755,root,root) %{_libdir}/libavahi-qt4.so
614 %{_libdir}/libavahi-qt4.la
615 %{_includedir}/avahi-qt4
616 %{_pkgconfigdir}/avahi-qt4.pc
619 %defattr(644,root,root,755)
620 %{_libdir}/libavahi-qt4.a
624 %defattr(644,root,root,755)
625 %attr(755,root,root) %{_bindir}/avahi-bookmarks
628 %defattr(644,root,root,755)
629 %attr(755,root,root) %{_bindir}/avahi-discover
630 # XXX: possibly missing %{_datadir}/%{name} dir, shared subdir
631 %dir %{_datadir}/%{name}/interfaces
632 %{_datadir}/%{name}/interfaces/avahi-discover.glade
634 %{_desktopdir}/*.desktop
635 %{_pixmapsdir}/avahi.png
637 %files discover-standalone
638 %defattr(644,root,root,755)
639 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
640 # XXX: possibly missing %{_datadir}/%{name} dir, shared subdir
641 %dir %{_datadir}/%{name}/interfaces
642 %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade
645 %defattr(644,root,root,755)
646 %attr(755,root,root) %{_bindir}/avahi-browse
647 %attr(755,root,root) %{_bindir}/avahi-publish
648 %attr(755,root,root) %{_bindir}/avahi-resolve