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.UTF-8): Wolna implementacja mDNS/DNS-SD
25 Source0: http://avahi.org/download/%{name}-%{version}.tar.gz
26 # Source0-md5: 29ebb2181958d5721ee5fc45f035a77c
27 Source1: %{name}-daemon
28 Source2: %{name}-dnsconfd
30 Patch0: %{name}-desktop.patch
31 Patch1: %{name}-glade.patch
32 Patch2: %{name}-destdir.patch
33 URL: http://avahi.org/
34 BuildRequires: autoconf
35 BuildRequires: automake
36 BuildRequires: dbus-devel >= 0.92
37 BuildRequires: doxygen
38 BuildRequires: expat-devel
39 BuildRequires: gdbm-devel
40 BuildRequires: glib2-devel >= 1:2.12.2
41 BuildRequires: graphviz
42 BuildRequires: gtk+2-devel >= 2:2.10.2
43 BuildRequires: libcap-devel
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 >= 1: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.
75 %description -l pl.UTF-8
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.UTF-8): Biblioteki Avahi: klienta, wspólna i główna
86 Avahi client, common and core libraries.
88 %description libs -l pl.UTF-8
89 Biblioteki Avahi: klienta, wspólna i główna.
92 Summary: Header files for Avahi library
93 Summary(pl.UTF-8): 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.UTF-8
104 Ten pakiet zawiera pliki nagłówkowe biblioteki Avahi.
107 Summary: Static Avahi library
108 Summary(pl.UTF-8): Statyczna biblioteka Avahi
109 Group: Development/Libraries
110 Requires: %{name}-devel = %{version}-%{release}
113 Static Avahi library.
115 %description static -l pl.UTF-8
116 Statyczna biblioteka Avahi.
118 %package compat-libdns_sd
119 Summary: Avahi Bonjour compat library
120 Summary(pl.UTF-8): 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.UTF-8
129 Biblioteka Avahi zgodna z Bonjour.
131 %package compat-libdns_sd-devel
132 Summary: Header files for Avahi Bonjour compat library
133 Summary(pl.UTF-8): 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.UTF-8
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.UTF-8): 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.UTF-8
157 Statyczna biblioteka Avahi zgodna z Bonjour.
160 Summary: Avahi Howl compat library
161 Summary(pl.UTF-8): 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.UTF-8
170 Biblioteka Avahi zgodna z Howl.
172 %package compat-howl-devel
173 Summary: Header files for Avahi Howl compat library
174 Summary(pl.UTF-8): 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.UTF-8
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.UTF-8): 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.UTF-8
199 Statyczna biblioteka Avahi zgodna z Howl.
202 Summary: Avahi GLib library bindings
203 Summary(pl.UTF-8): Wiązania Avahi dla bibioteki GLib
207 Avahi GLib library bindings.
209 %description glib -l pl.UTF-8
210 Wiązania Avahi dla bibioteki GLib.
213 Summary: Header files for Avahi GLib library bindings
214 Summary(pl.UTF-8): 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.UTF-8
225 Ten pakiet zawiera pliki nagłówkowe biblioteki Avahi-glib.
228 Summary: Static Avahi GLib library
229 Summary(pl.UTF-8): 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.UTF-8
237 Statyczna biblioteka Avahi GLib.
240 Summary: Avahi Qt 3 library bindings
241 Summary(pl.UTF-8): Wiązania Avahi dla biblioteki Qt 3
243 Requires: %{name}-libs = %{version}-%{release}
247 Avahi Qt 3 library bindings.
249 %description qt -l pl.UTF-8
250 Wiązania Avahi dla biblioteki Qt 3.
253 Summary: Header files for Avahi Qt 3 library bindings
254 Summary(pl.UTF-8): 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 >= 1: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.UTF-8
265 Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 3.
268 Summary: Static Avahi Qt 3 library
269 Summary(pl.UTF-8): 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.UTF-8
278 Statyczna biblioteka Avahi Qt 3.
281 Summary: Avahi Qt 4 library bindings
282 Summary(pl.UTF-8): Wiązania Avahi dla biblioteki Qt 4
284 Requires: %{name}-libs = %{version}-%{release}
287 Avahi Qt 4 library bindings.
289 %description Qt -l pl.UTF-8
290 Wiązania Avahi dla biblioteki Qt 4.
293 Summary: Header files for Avahi Qt 4 library bindings
294 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 4
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.UTF-8
303 Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 4.
306 Summary: Static Avahi Qt 4 library
307 Summary(pl.UTF-8): 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.UTF-8
315 Statyczna biblioteka Avahi Qt 4.
317 %package -n python-avahi
318 Summary: Avahi Python bindings
319 Summary(pl.UTF-8): Wiązania Avahi dla Pythona
320 Group: Development/Languages/Python
321 Requires: %{name} = %{version}-%{release}
322 Requires: python-dbus >= 0.71
324 %description -n python-avahi
325 Avahi Python bindings.
327 %description -n python-avahi -l pl.UTF-8
328 Wiązania Avahi dla Pythona.
330 %package -n dotnet-avahi
331 Summary: Avahi MONO bindings
332 Summary(pl.UTF-8): Wiązania Avahi dla MONO
335 %description -n dotnet-avahi
338 %description -n dotnet-avahi -l pl.UTF-8
339 Wiązania Avahi dla MONO.
341 %package -n dotnet-avahi-devel
342 Summary: Development files for MONO Avahi bindings
343 Summary(pl.UTF-8): Pliki rozwojowe wiązań Avahi dla MONO
344 Group: Development/Libraries
345 Requires: dotnet-avahi = %{version}-%{release}
348 %description -n dotnet-avahi-devel
349 Development files for MONO Avahi bindings.
351 %description -n dotnet-avahi-devel -l pl.UTF-8
352 Pliki rozwojowe wiązań Avahi dla MONO.
355 Summary: Miniature web server
356 Summary(pl.UTF-8): Miniaturowy serwer web
359 %description bookmarks
360 A Python based miniature web server that browses for mDNS/DNS-SD
361 services of type '_http._tcp' (i.e. web sites) and makes them
362 available as HTML links on http://localhost:8080/.
364 %description bookmarks -l pl.UTF-8
365 Napisany w Pythonie miniaturowy serwer WWW, pozwalający na
366 przeglądanie usług typu '_http._tcp' (np. stron WWW) i udostępniający
367 je jako odnośniki HTML na http://localhost:8080/.
370 Summary: Avahi Zeroconf browser
371 Summary(pl.UTF-8): Przeglądarka Zeroconf Avahi
373 Requires: %{name} = %{version}-%{release}
374 Requires: python-avahi = %{version}-%{release}
375 Requires: python-pygtk-glade >= 2:2.9.6
377 %description discover
378 A tool for enumerating all available services on the local LAN
379 (python-pygtk implementation).
381 %description discover -l pl.UTF-8
382 Narzędzie wymieniające wszystkie dostępne usługi w sieci lokalnej LAN
383 (implementacja w python-pygtk).
385 %package discover-standalone
386 Summary: Avahi Zeroconf browser
387 Summary(pl.UTF-8): Przeglądarka Zeroconf Avahi
389 Requires: %{name} = %{version}-%{release}
390 Requires: python-dbus >= 0.71
391 Requires: python-pygtk-glade >= 2:2.9.6
393 %description discover-standalone
394 GTK+ tool for enumerating all available services on the local LAN.
396 %description discover-standalone -l pl.UTF-8
397 Narzędzie GTK+ wymieniające wszystkie dostępne usługi w sieci lokalnej
401 Summary: Avahi CLI utilities
402 Summary(pl.UTF-8): Narzędzia CLI Avahi
406 Command line utilities using avahi-client.
408 %description utils -l pl.UTF-8
409 Narzędzia linii poleceń korzystające z avahi-client.
419 %{__aclocal} -I common
424 --enable-compat-libdns_sd \
425 --enable-compat-howl \
427 %{!?with_qt3:--disable-qt3} \
428 %{!?with_qt4:--disable-qt4} \
429 %{!?with_dotnet:--disable-mono} \
430 %{!?with_dotnet:--disable-monodoc}
434 rm -rf $RPM_BUILD_ROOT
435 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d}
438 DESTDIR=$RPM_BUILD_ROOT \
439 pythondir=%{py_sitedir}
441 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
442 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
444 ln -sf %{_includedir}/avahi-compat-libdns_sd/dns_sd.h \
445 $RPM_BUILD_ROOT%{_includedir}/dns_sd.h
447 ln -sf %{_pkgconfigdir}/avahi-compat-howl.pc \
448 $RPM_BUILD_ROOT%{_pkgconfigdir}/howl.pc
450 rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/{__init__,SimpleGladeApp}.py
452 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/avahi-{browse-domains,publish-address,publish-service,resolve-address,resolve-host-name}.1
453 echo '.so avahi-browse.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-browse-domains.1
454 echo '.so avahi-publish.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-publish-address.1
455 echo '.so avahi-publish.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-publish-service.1
456 echo '.so avahi-resolve.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-resolve-address.1
457 echo '.so avahi-resolve.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-resolve-host-name.1
460 rm -rf $RPM_BUILD_ROOT
463 %groupadd -g 165 -r -f avahi
464 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
467 /sbin/chkconfig --add %{name}-daemon
468 %service %{name}-daemon restart
469 /sbin/chkconfig --add %{name}-dnsconfd
470 %service %{name}-dnsconfd restart
473 if [ "$1" = "0" ]; then
474 %service -q %{name}-dnsconfd stop
475 /sbin/chkconfig --del %{name}-dnsconfd
476 %service -q %{name}-daemon stop
477 /sbin/chkconfig --del %{name}-daemon
481 if [ "$1" = "0" ]; then
486 %post libs -p /sbin/ldconfig
487 %postun libs -p /sbin/ldconfig
489 %post compat-libdns_sd -p /sbin/ldconfig
490 %postun compat-libdns_sd -p /sbin/ldconfig
492 %post compat-howl -p /sbin/ldconfig
493 %postun compat-howl -p /sbin/ldconfig
495 %post glib -p /sbin/ldconfig
496 %postun glib -p /sbin/ldconfig
498 %post qt -p /sbin/ldconfig
499 %postun qt -p /sbin/ldconfig
501 %post Qt -p /sbin/ldconfig
502 %postun Qt -p /sbin/ldconfig
505 %defattr(644,root,root,755)
506 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
508 %dir %{_sysconfdir}/avahi
509 %dir %{_sysconfdir}/avahi/services
510 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
511 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-dnsconfd.action
512 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/hosts
513 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
514 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/sftp-ssh.service
515 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
517 %attr(755,root,root) %{_bindir}/avahi-set-host-name
519 %attr(755,root,root) %{_sbindir}/avahi-daemon
520 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
522 %dir %{_datadir}/%{name}
523 %dir %{_datadir}/%{name}/introspection
524 %{_datadir}/%{name}/introspection/*.introspect
525 %{_datadir}/%{name}/avahi-service.dtd
526 %{_datadir}/%{name}/service-types
527 %{_datadir}/%{name}/service-types.db
531 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
532 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
534 %attr(755,root,root) %{_sysconfdir}/%{name}/avahi-autoipd.action
535 %attr(755,root,root) %{_sbindir}/avahi-autoipd
538 %defattr(644,root,root,755)
539 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
540 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
541 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
544 %defattr(644,root,root,755)
545 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
546 %attr(755,root,root) %{_libdir}/libavahi-client.so
547 %attr(755,root,root) %{_libdir}/libavahi-common.so
548 %attr(755,root,root) %{_libdir}/libavahi-core.so
549 %{_libdir}/libavahi-client.la
550 %{_libdir}/libavahi-common.la
551 %{_libdir}/libavahi-core.la
552 %{_includedir}/avahi-client
553 %{_includedir}/avahi-common
554 %{_includedir}/avahi-core
555 %{_pkgconfigdir}/avahi-client.pc
556 %{_pkgconfigdir}/avahi-core.pc
559 %defattr(644,root,root,755)
560 %{_libdir}/libavahi-client.a
561 %{_libdir}/libavahi-common.a
562 %{_libdir}/libavahi-core.a
564 %files compat-libdns_sd
565 %defattr(644,root,root,755)
566 %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.*
568 %files compat-libdns_sd-devel
569 %defattr(644,root,root,755)
570 %attr(755,root,root) %{_libdir}/libdns_sd.so
571 %{_libdir}/libdns_sd.la
572 %{_includedir}/avahi-compat-libdns_sd
573 %{_includedir}/dns_sd.h
574 %{_pkgconfigdir}/avahi-compat-libdns_sd.pc
576 %files compat-libdns_sd-static
577 %defattr(644,root,root,755)
578 %{_libdir}/libdns_sd.a
581 %defattr(644,root,root,755)
582 %attr(755,root,root) %{_libdir}/libhowl.so.*.*.*
584 %files compat-howl-devel
585 %defattr(644,root,root,755)
586 %attr(755,root,root) %{_libdir}/libhowl.so
587 %{_libdir}/libhowl.la
588 %{_includedir}/avahi-compat-howl
589 %{_pkgconfigdir}/avahi-compat-howl.pc
590 %{_pkgconfigdir}/howl.pc
592 %files compat-howl-static
593 %defattr(644,root,root,755)
596 %files -n python-avahi
597 %defattr(644,root,root,755)
601 %files -n dotnet-avahi
602 %defattr(644,root,root,755)
603 %{_prefix}/lib/mono/gac/avahi-sharp
605 %files -n dotnet-avahi-devel
606 %defattr(644,root,root,755)
607 %{_libdir}/monodoc/sources/avahi-*
608 %{_prefix}/lib/mono/avahi-sharp
609 %{_pkgconfigdir}/avahi-sharp.pc
613 %defattr(644,root,root,755)
614 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
617 %defattr(644,root,root,755)
618 %attr(755,root,root) %{_libdir}/libavahi-glib.so
619 %{_libdir}/libavahi-glib.la
620 %{_includedir}/avahi-glib
621 %{_pkgconfigdir}/avahi-glib.pc
624 %defattr(644,root,root,755)
625 %{_libdir}/libavahi-glib.a
629 %defattr(644,root,root,755)
630 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
633 %defattr(644,root,root,755)
634 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
635 %{_libdir}/libavahi-qt3.la
636 %{_includedir}/avahi-qt3
637 %{_pkgconfigdir}/avahi-qt3.pc
640 %defattr(644,root,root,755)
641 %{_libdir}/libavahi-qt3.a
646 %defattr(644,root,root,755)
647 %attr(755,root,root) %{_libdir}/libavahi-qt4.so.*.*.*
650 %defattr(644,root,root,755)
651 %attr(755,root,root) %{_libdir}/libavahi-qt4.so
652 %{_libdir}/libavahi-qt4.la
653 %{_includedir}/avahi-qt4
654 %{_pkgconfigdir}/avahi-qt4.pc
657 %defattr(644,root,root,755)
658 %{_libdir}/libavahi-qt4.a
662 %defattr(644,root,root,755)
663 %attr(755,root,root) %{_bindir}/avahi-bookmarks
666 %defattr(644,root,root,755)
667 %attr(755,root,root) %{_bindir}/avahi-discover
668 # XXX: possibly missing %{_datadir}/%{name} dir, shared subdir
669 %dir %{_datadir}/%{name}/interfaces
670 %{_datadir}/%{name}/interfaces/avahi-discover.glade
671 %{_desktopdir}/*.desktop
672 %{_pixmapsdir}/avahi.png
674 %files discover-standalone
675 %defattr(644,root,root,755)
676 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
677 # XXX: possibly missing %{_datadir}/%{name} dir, shared subdir
678 %dir %{_datadir}/%{name}/interfaces
679 %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade
682 %defattr(644,root,root,755)
683 %attr(755,root,root) %{_bindir}/avahi-browse
684 %attr(755,root,root) %{_bindir}/avahi-publish
685 %attr(755,root,root) %{_bindir}/avahi-resolve