3 # - autoip subpackage ?
4 # - autoip start script ?
7 %bcond_without dotnet # build without dotnet bindings
8 %bcond_without qt # build without (any) qt bindings
9 %bcond_without qt3 # build without qt3 bindings
10 %bcond_without qt4 # build without qt4 bindings
16 %include /usr/lib/rpm/macros.mono
18 Summary: Free mDNS/DNS-SD implementation
19 Summary(pl): Wolna implementacja mDNS/DNS-SD
25 Source0: http://lathiat.net/%{name}-%{version}.tar.gz
26 # Source0-md5: 94dbd41336d18c47fc8213735a3fbf8e
27 Source1: %{name}-daemon
28 Source2: %{name}-dnsconfd
30 Patch0: %{name}-desktop.patch
31 Patch1: %{name}-glade.patch
32 Patch2: %{name}-destdir.patch
33 Patch3: %{name}-dbus.patch
34 URL: http://avahi.org/
35 BuildRequires: autoconf
36 BuildRequires: automake
37 BuildRequires: dbus-devel >= 0.92
38 BuildRequires: doxygen
39 BuildRequires: expat-devel
40 BuildRequires: gdbm-devel
41 BuildRequires: glib2-devel >= 1:2.12.2
42 BuildRequires: graphviz
43 BuildRequires: gtk+2-devel >= 2:2.10.2
44 BuildRequires: libdaemon-devel >= 0.5
45 BuildRequires: libglade2-devel >= 1:2.6.0
46 BuildRequires: libtool
48 BuildRequires: mono-csharp
49 BuildRequires: monodoc
51 BuildRequires: pkgconfig
52 BuildRequires: python >= 1:2.4
53 BuildRequires: python-dbus >= 0.71
54 BuildRequires: python-pygtk-devel >= 2:2.9.6
56 BuildRequires: qt-devel >= 3.0
59 BuildRequires: QtCore-devel
60 BuildRequires: qt4-build
62 BuildRequires: rpmbuild(macros) >= 1.228
63 Requires(post,preun): /sbin/chkconfig
64 Requires: dbus >= 0.92
65 Requires: %{name}-libs = %{version}-%{release}
66 Provides: group(avahi)
68 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
71 Avahi is an implementation the DNS Service Discovery and Multicast DNS
72 specifications for Zeroconf Computing. It uses D-BUS for communication
73 between user applications and a system daemon.
76 Avahi jest implementacj± specyfikacji DNS Service Discovery i
77 Multicast DNS dla Zeroconf Computing. U¿ywa D-BUSa dla komunikacji
78 pomiêdzy programami u¿ytkownika a demonem systemowym.
81 Summary: Avahi client, common and core libraries
82 Summary(pl): Biblioteki Avahi: klienta, wspólna i g³ówna
86 Avahi client, common and core libraries.
88 %description libs -l pl
89 Biblioteki Avahi: klienta, wspólna i g³ówna.
92 Summary: Header files for Avahi library
93 Summary(pl): Pliki nag³ówkowe biblioteki Avahi
94 Group: Development/Libraries
95 Requires: %{name}-libs = %{version}-%{release}
96 Requires: dbus-devel >= 0.92
98 Requires: libdaemon-devel >= 0.5
101 This is the package containing the header files for Avahi library.
103 %description devel -l pl
104 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi.
107 Summary: Static Avahi library
108 Summary(pl): Statyczna biblioteka Avahi
109 Group: Development/Libraries
110 Requires: %{name}-devel = %{version}-%{release}
113 Static Avahi library.
115 %description static -l pl
116 Statyczna biblioteka Avahi.
118 %package compat-libdns_sd
119 Summary: Avahi Bonjour compat library
120 Summary(pl): Biblioteka Avahi zgodna z Bonjour
122 Provides: mdns-bonjour
123 Obsoletes: mDNSResponder-libs
125 %description compat-libdns_sd
126 Avahi Bonjour compat library.
128 %description compat-libdns_sd -l pl
129 Biblioteka Avahi zgodna z Bonjour.
131 %package compat-libdns_sd-devel
132 Summary: Header files for Avahi Bonjour compat library
133 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Bonjour
134 Group: Development/Libraries
135 Requires: %{name}-compat-libdns_sd = %{version}-%{release}
136 Requires: %{name}-devel = %{version}-%{release}
137 Provides: mdns-bonjour-devel
138 Obsoletes: mDNSResponder-devel
140 %description compat-libdns_sd-devel
141 Header files for Avahi Bonjour compat library.
143 %description compat-libdns_sd-devel -l pl
144 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Bonjour.
146 %package compat-libdns_sd-static
147 Summary: Static Avahi Bonjour compat library
148 Summary(pl): Statyczna biblioteka Avahi zgodna z Bonjour
149 Group: Development/Libraries
150 Requires: %{name}-compat-libdns_sd-devel = %{version}-%{release}
151 Provides: mdns-bonjour-static
153 %description compat-libdns_sd-static
154 Static Avahi Bonjour compat library.
156 %description compat-libdns_sd-static -l pl
157 Statyczna biblioteka Avahi zgodna z Bonjour.
160 Summary: Avahi Howl compat library
161 Summary(pl): Biblioteka Avahi zgodna z Howl
163 Provides: mdns-howl-libs
166 %description compat-howl
167 Avahi Howl compat library.
169 %description compat-howl -l pl
170 Biblioteka Avahi zgodna z Howl.
172 %package compat-howl-devel
173 Summary: Header files for Avahi Howl compat library
174 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Howl
175 Group: Development/Libraries
176 Requires: %{name}-compat-howl = %{version}-%{release}
177 Requires: %{name}-devel = %{version}-%{release}
178 Provides: mdns-howl-devel
179 Obsoletes: howl-devel
181 %description compat-howl-devel
182 Header files for Avahi Howl compat library.
184 %description compat-howl-devel -l pl
185 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Howl.
187 %package compat-howl-static
188 Summary: Static Avahi Howl compat library
189 Summary(pl): Statyczna biblioteka Avahi zgodna z Howl
190 Group: Development/Libraries
191 Requires: %{name}-compat-howl-devel = %{version}-%{release}
192 Provides: mdns-howl-static
193 Obsoletes: howl-static
195 %description compat-howl-static
196 Static Avahi Howl compat library.
198 %description compat-howl-static -l pl
199 Statyczna biblioteka Avahi zgodna z Howl.
202 Summary: Avahi GLib library bindings
203 Summary(pl): Wi±zania Avahi dla bibioteki GLib
207 Avahi GLib library bindings.
209 %description glib -l pl
210 Wi±zania Avahi dla bibioteki GLib.
213 Summary: Header files for Avahi GLib library bindings
214 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki GLib
215 Group: Development/Libraries
216 Requires: %{name}-devel = %{version}-%{release}
217 Requires: %{name}-glib = %{version}-%{release}
218 Requires: glib2-devel >= 1:2.12.2
220 %description glib-devel
221 This is the package containing the header files for Avahi-glib
224 %description glib-devel -l pl
225 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi-glib.
228 Summary: Static Avahi GLib library
229 Summary(pl): Statyczna biblioteka Avahi GLib
230 Group: Development/Libraries
231 Requires: %{name}-glib-devel = %{version}-%{release}
233 %description glib-static
234 Static Avahi GLib library.
236 %description glib-static -l pl
237 Statyczna biblioteka Avahi GLib.
240 Summary: Avahi Qt 3 library bindings
241 Summary(pl): Wi±zania Avahi dla biblioteki Qt 3
243 Requires: %{name}-libs = %{version}-%{release}
247 Avahi Qt 3 library bindings.
249 %description qt -l pl
250 Wi±zania Avahi dla biblioteki Qt 3.
253 Summary: Header files for Avahi Qt 3 library bindings
254 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3
255 Group: Development/Libraries
256 Requires: %{name}-devel = %{version}-%{release}
257 Requires: %{name}-qt = %{version}-%{release}
258 Requires: qt-devel >= 3.0
259 Obsoletes: avahi-qt3-devel
261 %description qt-devel
262 Header files for Avahi Qt 3 library bindings.
264 %description qt-devel -l pl
265 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3.
268 Summary: Static Avahi Qt 3 library
269 Summary(pl): Statyczna biblioteka Avahi Qt 3
270 Group: Development/Libraries
271 Requires: %{name}-qt-devel = %{version}-%{release}
272 Obsoletes: avahi-qt3-static
274 %description qt-static
275 Static Avahi Qt 3 library.
277 %description qt-static -l pl
278 Statyczna biblioteka Avahi Qt 3.
281 Summary: Avahi Qt 4 library bindings
282 Summary(pl): Wi±zania Avahi dla biblioteki Qt 4
284 Requires: %{name}-libs = %{version}-%{release}
287 Avahi Qt 4 library bindings.
289 %description Qt -l pl
290 Wi±zania Avahi dla biblioteki Qt 4.
293 Summary: Header files for Avahi Qt 3 library bindings
294 Summary(pl): Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3
295 Group: Development/Libraries
296 Requires: %{name}-devel = %{version}-%{release}
297 Requires: %{name}-Qt = %{version}-%{release}
299 %description Qt-devel
300 Header files for Avahi Qt 4 library bindings.
302 %description Qt-devel -l pl
303 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 4.
306 Summary: Static Avahi Qt 4 library
307 Summary(pl): Statyczna biblioteka Avahi Qt 4
308 Group: Development/Libraries
309 Requires: %{name}-Qt-devel = %{version}-%{release}
311 %description Qt-static
312 Static Avahi Qt 4 library.
314 %description Qt-static -l pl
315 Statyczna biblioteka Avahi Qt 4.
317 %package -n dotnet-avahi
318 Summary: Avahi MONO bindings
319 Summary(pl): Wi±zania Avahi dla MONO
322 %description -n dotnet-avahi
325 %description -n dotnet-avahi -l pl
326 Wi±zania Avahi dla MONO.
328 %package -n dotnet-avahi-devel
329 Summary: Development files for MONO Avahi bindings
330 Summary(pl): Pliki rozwojowe wi±zañ Avahi dla MONO
331 Group: Development/Libraries
332 Requires: dotnet-avahi = %{version}-%{release}
335 %description -n dotnet-avahi-devel
336 Development files for MONO Avahi bindings.
338 %description -n dotnet-avahi-devel -l pl
339 Pliki rozwojowe wi±zañ Avahi dla MONO.
342 Summary: Miniature web server
343 Summary(pl): Miniaturowy serwer web
346 %description bookmarks
347 A Python based miniature web server that browses for mDNS/DNS-SD
348 services of type '_http._tcp' (i.e. web sites) and makes them
349 available as HTML links on http://localhost:8080/.
351 %description bookmarks -l pl
352 Napisany w Pythonie miniaturowy serwer WWW, pozwalaj±cy na
353 przegl±danie us³ug typu '_http._tcp' (np. stron WWW) i udostêpniaj±cy
354 je jako odno¶niki HTML na http://localhost:8080/.
357 Summary: Avahi Zeroconf browser
358 Summary(pl): Przegl±darka Zeroconf Avahi
360 Requires: %{name} = %{version}-%{release}
361 Requires: python-dbus >= 0.71
362 Requires: python-pygtk-glade >= 2:2.9.6
364 %description discover
365 A tool for enumerating all available services on the local LAN
366 (python-pygtk implementation).
368 %description discover -l pl
369 Narzêdzie wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej LAN
370 (implementacja w python-pygtk).
372 %package discover-standalone
373 Summary: Avahi Zeroconf browser
374 Summary(pl): Przegl±darka Zeroconf Avahi
376 Requires: %{name} = %{version}-%{release}
377 Requires: python-dbus >= 0.71
378 Requires: python-pygtk-glade >= 2:2.9.6
380 %description discover-standalone
381 GTK+ tool for enumerating all available services on the local LAN.
383 %description discover-standalone -l pl
384 Narzêdzie GTK+ wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej
388 Summary: Avahi CLI utilities
389 Summary(pl): Narzêdzia CLI Avahi
393 Command line utilities using avahi-client.
395 %description utils -l pl
396 Narzêdzia linii poleceñ korzystaj±ce z avahi-client.
407 %{__aclocal} -I common
412 --enable-compat-libdns_sd \
413 --enable-compat-howl \
415 %{!?with_qt3:--disable-qt3} \
416 %{!?with_qt4:--disable-qt4} \
417 %{!?with_dotnet:--disable-mono} \
418 %{!?with_dotnet:--disable-monodoc}
422 rm -rf $RPM_BUILD_ROOT
423 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d}
426 DESTDIR=$RPM_BUILD_ROOT \
427 pythondir=%{py_sitedir}
429 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
430 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
432 ln -sf %{_includedir}/avahi-compat-libdns_sd/dns_sd.h \
433 $RPM_BUILD_ROOT%{_includedir}/dns_sd.h
435 ln -sf %{_pkgconfigdir}/avahi-compat-howl.pc \
436 $RPM_BUILD_ROOT%{_pkgconfigdir}/howl.pc
438 rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/{__init__,SimpleGladeApp}.py
441 rm -rf $RPM_BUILD_ROOT
444 %groupadd -g 165 -r -f avahi
445 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
448 /sbin/chkconfig --add %{name}-daemon
449 %service %{name}-daemon restart
450 /sbin/chkconfig --add %{name}-dnsconfd
451 %service %{name}-dnsconfd restart
454 if [ "$1" = "0" ]; then
455 %service -q %{name}-dnsconfd stop
456 /sbin/chkconfig --del %{name}-dnsconfd
457 %service -q %{name}-daemon stop
458 /sbin/chkconfig --del %{name}-daemon
462 if [ "$1" = "0" ]; then
467 %post libs -p /sbin/ldconfig
468 %postun libs -p /sbin/ldconfig
470 %post compat-libdns_sd -p /sbin/ldconfig
471 %postun compat-libdns_sd -p /sbin/ldconfig
473 %post compat-howl -p /sbin/ldconfig
474 %postun compat-howl -p /sbin/ldconfig
476 %post glib -p /sbin/ldconfig
477 %postun glib -p /sbin/ldconfig
479 %post qt -p /sbin/ldconfig
480 %postun qt -p /sbin/ldconfig
482 %post Qt -p /sbin/ldconfig
483 %postun Qt -p /sbin/ldconfig
486 %defattr(644,root,root,755)
487 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
489 %dir %{_sysconfdir}/avahi
490 %dir %{_sysconfdir}/avahi/services
491 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
492 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-dnsconfd.action
493 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/hosts
494 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
495 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/sftp-ssh.service
496 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
498 %attr(755,root,root) %{_bindir}/avahi-set-host-name
500 %attr(755,root,root) %{_sbindir}/avahi-daemon
501 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
503 %dir %{_datadir}/%{name}
504 %dir %{_datadir}/%{name}/introspection
505 %{_datadir}/%{name}/introspection/*.introspect
506 %{_datadir}/%{name}/avahi-service.dtd
507 %{_datadir}/%{name}/service-types
508 %{_datadir}/%{name}/service-types.db
512 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
513 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
515 %attr(755,root,root) %{_sysconfdir}/%{name}/avahi-autoipd.action
516 %attr(755,root,root) %{_sbindir}/avahi-autoipd
519 %defattr(644,root,root,755)
520 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
521 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
522 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
525 %defattr(644,root,root,755)
526 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
527 %attr(755,root,root) %{_libdir}/libavahi-client.so
528 %attr(755,root,root) %{_libdir}/libavahi-common.so
529 %attr(755,root,root) %{_libdir}/libavahi-core.so
530 %{_libdir}/libavahi-client.la
531 %{_libdir}/libavahi-common.la
532 %{_libdir}/libavahi-core.la
533 %{_includedir}/avahi-client
534 %{_includedir}/avahi-common
535 %{_includedir}/avahi-core
536 %{_pkgconfigdir}/avahi-client.pc
537 %{_pkgconfigdir}/avahi-core.pc
540 %defattr(644,root,root,755)
541 %{_libdir}/libavahi-client.a
542 %{_libdir}/libavahi-common.a
543 %{_libdir}/libavahi-core.a
545 %files compat-libdns_sd
546 %defattr(644,root,root,755)
547 %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.*
549 %files compat-libdns_sd-devel
550 %defattr(644,root,root,755)
551 %attr(755,root,root) %{_libdir}/libdns_sd.so
552 %{_libdir}/libdns_sd.la
553 %{_includedir}/avahi-compat-libdns_sd
554 %{_includedir}/dns_sd.h
555 %{_pkgconfigdir}/avahi-compat-libdns_sd.pc
557 %files compat-libdns_sd-static
558 %defattr(644,root,root,755)
559 %{_libdir}/libdns_sd.a
562 %defattr(644,root,root,755)
563 %attr(755,root,root) %{_libdir}/libhowl.so.*.*.*
565 %files compat-howl-devel
566 %defattr(644,root,root,755)
567 %attr(755,root,root) %{_libdir}/libhowl.so
568 %{_libdir}/libhowl.la
569 %{_includedir}/avahi-compat-howl
570 %{_pkgconfigdir}/avahi-compat-howl.pc
571 %{_pkgconfigdir}/howl.pc
573 %files compat-howl-static
574 %defattr(644,root,root,755)
578 %files -n dotnet-avahi
579 %defattr(644,root,root,755)
580 %{_prefix}/lib/mono/gac/avahi-sharp
582 %files -n dotnet-avahi-devel
583 %defattr(644,root,root,755)
584 %{_libdir}/monodoc/sources/avahi-*
585 %{_prefix}/lib/mono/avahi-sharp
586 %{_pkgconfigdir}/avahi-sharp.pc
590 %defattr(644,root,root,755)
591 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
594 %defattr(644,root,root,755)
595 %attr(755,root,root) %{_libdir}/libavahi-glib.so
596 %{_libdir}/libavahi-glib.la
597 %{_includedir}/avahi-glib
598 %{_pkgconfigdir}/avahi-glib.pc
601 %defattr(644,root,root,755)
602 %{_libdir}/libavahi-glib.a
606 %defattr(644,root,root,755)
607 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
610 %defattr(644,root,root,755)
611 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
612 %{_libdir}/libavahi-qt3.la
613 %{_includedir}/avahi-qt3
614 %{_pkgconfigdir}/avahi-qt3.pc
617 %defattr(644,root,root,755)
618 %{_libdir}/libavahi-qt3.a
623 %defattr(644,root,root,755)
624 %attr(755,root,root) %{_libdir}/libavahi-qt4.so.*.*.*
627 %defattr(644,root,root,755)
628 %attr(755,root,root) %{_libdir}/libavahi-qt4.so
629 %{_libdir}/libavahi-qt4.la
630 %{_includedir}/avahi-qt4
631 %{_pkgconfigdir}/avahi-qt4.pc
634 %defattr(644,root,root,755)
635 %{_libdir}/libavahi-qt4.a
639 %defattr(644,root,root,755)
640 %attr(755,root,root) %{_bindir}/avahi-bookmarks
643 %defattr(644,root,root,755)
644 %attr(755,root,root) %{_bindir}/avahi-discover
645 # XXX: possibly missing %{_datadir}/%{name} dir, shared subdir
646 %dir %{_datadir}/%{name}/interfaces
647 %{_datadir}/%{name}/interfaces/avahi-discover.glade
649 %{_desktopdir}/*.desktop
650 %{_pixmapsdir}/avahi.png
652 %files discover-standalone
653 %defattr(644,root,root,755)
654 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
655 # XXX: possibly missing %{_datadir}/%{name} dir, shared subdir
656 %dir %{_datadir}/%{name}/interfaces
657 %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade
660 %defattr(644,root,root,755)
661 %attr(755,root,root) %{_bindir}/avahi-browse
662 %attr(755,root,root) %{_bindir}/avahi-publish
663 %attr(755,root,root) %{_bindir}/avahi-resolve