3 # - finish with_apidocs
4 # - check BRs for gtk+3
5 # - make gtk3 bcond enabled by default when gtk+3 will be stable
6 # - introspection files
10 %bcond_with apidocs # build API documentation
11 %bcond_without dotnet # build without dotnet bindings
12 %bcond_without gtk # build without GTK+
13 %bcond_with gtk3 # build without GTK+3
14 %bcond_without pygtk # build without PyGTK
15 %bcond_without qt # build without (any) qt bindings
16 %bcond_without qt3 # build without qt3 bindings
17 %bcond_without qt4 # build without qt4 bindings
19 %ifnarch %{ix86} %{x8664} alpha arm hppa ia64 mips ppc s390 s390x sparc sparcv9
31 %{?with_dotnet:%include /usr/lib/rpm/macros.mono}
32 Summary: Free mDNS/DNS-SD/Zeroconf implementation
33 Summary(pl.UTF-8): Wolna implementacja mDNS/DNS-SD/Zeroconf
39 Source0: http://avahi.org/download/%{name}-%{version}.tar.gz
40 # Source0-md5: d0143a5aa3265019072e53ab497818d0
41 Source1: %{name}-daemon
42 Source2: %{name}-dnsconfd
44 Source4: %{name}-daemon.upstart
45 Source5: %{name}-dnsconfd.upstart
46 Patch0: %{name}-desktop.patch
47 Patch1: %{name}-glade.patch
48 Patch2: %{name}-destdir.patch
49 Patch3: %{name}-mono-dir.patch
50 Patch4: nss-mdns-package.patch
51 Patch5: %{name}-dhclient_hooks.patch
52 Patch6: %{name}-autoipd-sbin_ip.patch
53 URL: http://avahi.org/
54 BuildRequires: autoconf >= 2.63
55 BuildRequires: automake >= 1:1.11
56 BuildRequires: dbus-devel >= 0.92
58 BuildRequires: doxygen
59 # for the 'dot' tool used by doxygen
60 BuildRequires: graphviz
62 BuildRequires: expat-devel
63 BuildRequires: gdbm-devel
64 BuildRequires: gettext-devel
65 BuildRequires: gobject-introspection-devel >= 0.9.5
67 BuildRequires: glib2-devel >= 1:2.12.2
68 BuildRequires: gtk+2-devel >= 2:2.14.0
69 BuildRequires: libglade2-devel >= 1:2.6.0
72 BuildRequires: glib2-devel
73 BuildRequires: gtk+3-devel
74 BuildRequires: libglade2-devel
76 BuildRequires: intltool >= 0.35
77 BuildRequires: libcap-devel
78 BuildRequires: libdaemon-devel >= 0.14
79 BuildRequires: libtool
81 BuildRequires: dotnet-gtk-sharp2-devel >= 2.10
82 BuildRequires: mono-csharp
83 BuildRequires: monodoc >= 2.6
85 BuildRequires: pkgconfig
86 BuildRequires: python >= 1:2.4
87 BuildRequires: python-dbus >= 0.71
88 %{?with_pygtk:BuildRequires: python-pygtk-devel >= 2:2.9.6}
90 BuildRequires: qt-devel >= 1:3.0
93 BuildRequires: QtCore-devel >= 4.0.0
94 BuildRequires: qt4-build
96 BuildRequires: rpm-pythonprov
97 BuildRequires: rpmbuild(macros) >= 1.561
98 Requires(post,preun): /sbin/chkconfig
99 Requires: %{name}-libs = %{version}-%{release}
100 Requires: dbus >= 0.92
101 Requires: libdaemon >= 0.14
102 Requires: rc-scripts >= 0.4.3
103 Suggests: nss_mdns >= 0.10-2
104 Provides: group(avahi)
105 Provides: user(avahi)
106 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
109 Avahi is an implementation the DNS Service Discovery and Multicast DNS
110 specifications for Zeroconf Computing. It uses D-BUS for communication
111 between user applications and a system daemon.
113 %description -l pl.UTF-8
114 Avahi jest implementacją specyfikacji DNS Service Discovery i
115 Multicast DNS dla Zeroconf Computing. Używa D-BUSa dla komunikacji
116 pomiędzy programami użytkownika a demonem systemowym.
119 Summary: Upstart jobs description for Avahi daemons
120 Summary(pl.UTF-8): Opis zadań Upstart dla demonów Avahi
122 Requires: %{name} = %{version}-%{release}
123 Requires: upstart >= 0.6
126 Upstart jobs description for Avahi daemons.
128 %description upstart -l pl.UTF-8
129 Opis zadań Upstart dla demonów Avahi.
132 Summary: IPv4LL network address configuration daemon
133 Summary(pl.UTF-8): Demon configurujący adresy IPv4LL
134 Group: Networking/Daemons
135 Requires(postun): /usr/sbin/groupdel
136 Requires(postun): /usr/sbin/userdel
137 Requires(pre): /bin/id
138 Requires(pre): /usr/bin/getgid
139 Requires(pre): /usr/sbin/groupadd
140 Requires(pre): /usr/sbin/useradd
141 Provides: group(avahi)
142 Provides: user(avahi)
145 avahi-autoipd implements IPv4LL, "Dynamic Configuration of IPv4 Link-
146 Local Addresses" (IETF RFC3927), a protocol for automatic IP address
147 configuration from the link-local 169.254.0.0/16 range without the
148 need for a central server. It is primarily intended to be used in
149 ad-hoc networks which lack a DHCP server.
151 IPv4LL is part of the Zeroconf stack.
153 %description autoipd -l pl.UTF-8
154 avahi-autoipd jest implementacją IPv4LL, protokołu umożliwiającego
155 automatyczną konfigurację adresu z zakresu 169.254.0.0/16 bez potrzeby
156 użycia centralnego serwera. Jego głównym zastosowaniem są sieci
157 ad-hoc, w których brakuje serwera DHCP.
159 IPv4LL jest częścią stosu Zeroconf.
162 Summary: Avahi client, common and core libraries
163 Summary(pl.UTF-8): Biblioteki Avahi: klienta, wspólna i główna
167 Avahi client, common and core libraries.
169 %description libs -l pl.UTF-8
170 Biblioteki Avahi: klienta, wspólna i główna.
173 Summary: Header files for Avahi library
174 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi
175 Group: Development/Libraries
176 Requires: %{name}-libs = %{version}-%{release}
177 Requires: dbus-devel >= 0.92
178 Requires: expat-devel
181 This is the package containing the header files for Avahi library.
183 %description devel -l pl.UTF-8
184 Ten pakiet zawiera pliki nagłówkowe biblioteki Avahi.
187 Summary: Static Avahi library
188 Summary(pl.UTF-8): Statyczna biblioteka Avahi
189 Group: Development/Libraries
190 Requires: %{name}-devel = %{version}-%{release}
193 Static Avahi library.
195 %description static -l pl.UTF-8
196 Statyczna biblioteka Avahi.
199 Summary: Avahi UI library
200 Summary(pl.UTF-8): Biblioteka Avahi UI
202 Requires: %{name}-libs = %{version}-%{release}
203 Requires: gtk+2 >= 2:2.14.0
206 Common GTK+ UI support library for Avahi.
208 %description ui -l pl.UTF-8
209 Biblioteka wspólnego interfejsu użytkownika GTK+ dla Avahi.
212 Summary: Header files for Avahi UI library
213 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi UI
214 Group: X11/Development/Libraries
215 Requires: %{name}-devel = %{version}-%{release}
216 Requires: %{name}-ui = %{version}-%{release}
217 Requires: %{name}-ui-devel-common = %{version}-%{release}
218 Requires: gtk+2-devel >= 2:2.14.0
220 %description ui-devel
221 Header files for Avahi UI library.
223 %description ui-devel -l pl.UTF-8
224 Pliki nagłówkowe biblioteki Avahi UI.
227 Summary: Static Avahi UI library
228 Summary(pl.UTF-8): Statyczna biblioteka Avahi UI
229 Group: X11/Development/Libraries
230 Requires: %{name}-ui-devel = %{version}-%{release}
232 %description ui-static
233 Static Avahi UI library.
235 %description ui-static -l pl.UTF-8
236 Statyczna biblioteka Avahi UI.
238 %package ui-devel-common
239 Summary: Header files for Avahi UI library
240 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi UI
241 Group: X11/Development/Libraries
242 Requires: %{name}-devel = %{version}-%{release}
244 %description ui-devel-common
245 Header files for Avahi UI library.
247 %description ui-devel-common -l pl.UTF-8
248 Pliki nagłówkowe biblioteki Avahi GTK+ UI.
251 Summary: Avahi UI library - GTK+ 3.x version
252 Summary(pl.UTF-8): Biblioteka Avahi UI - wersja dla GTK+ 3.x
254 Requires: %{name}-libs = %{version}-%{release}
257 Common GTK+ 3.x UI support library for Avahi.
259 %description ui-gtk3 -l pl.UTF-8
260 Biblioteka wspólnego interfejsu użytkownika GTK+ 3.x dla Avahi.
262 %package ui-gtk3-devel
263 Summary: Header files for Avahi UI library - GTK+ 3.x version
264 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi UI - wersja dla GTK+ 3.x
265 Group: X11/Development/Libraries
266 Requires: %{name}-devel = %{version}-%{release}
267 Requires: %{name}-ui-devel-common = %{version}-%{release}
268 Requires: %{name}-ui-gtk3 = %{version}-%{release}
270 %description ui-gtk3-devel
271 Header files for Avahi GTK+ 3.x UI library.
273 %description ui-devel -l pl.UTF-8
274 Pliki nagłówkowe biblioteki Avahi GTK+ 3.x UI.
276 %package ui-gtk3-static
277 Summary: Static Avahi UI library - GTK+ 3.x version
278 Summary(pl.UTF-8): Statyczna biblioteka Avahi UI - wersja GTK+ 3.x
279 Group: X11/Development/Libraries
280 Requires: %{name}-ui-gtk3-devel = %{version}-%{release}
282 %description ui-gtk3-static
283 Static Avahi GTK+ 3.x UI library.
285 %description ui-gtk3-static -l pl.UTF-8
286 Statyczna biblioteka Avahi GTK+ 3.x UI.
288 %package compat-libdns_sd
289 Summary: Avahi Bonjour compat library
290 Summary(pl.UTF-8): Biblioteka Avahi zgodna z Bonjour
292 Provides: mdns-bonjour
293 Obsoletes: mDNSResponder-libs
295 %description compat-libdns_sd
296 Avahi Bonjour compat library.
298 %description compat-libdns_sd -l pl.UTF-8
299 Biblioteka Avahi zgodna z Bonjour.
301 %package compat-libdns_sd-devel
302 Summary: Header files for Avahi Bonjour compat library
303 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Bonjour
304 Group: Development/Libraries
305 Requires: %{name}-compat-libdns_sd = %{version}-%{release}
306 Requires: %{name}-devel = %{version}-%{release}
307 Provides: mdns-bonjour-devel
308 Obsoletes: mDNSResponder-devel
310 %description compat-libdns_sd-devel
311 Header files for Avahi Bonjour compat library.
313 %description compat-libdns_sd-devel -l pl.UTF-8
314 Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Bonjour.
316 %package compat-libdns_sd-static
317 Summary: Static Avahi Bonjour compat library
318 Summary(pl.UTF-8): Statyczna biblioteka Avahi zgodna z Bonjour
319 Group: Development/Libraries
320 Requires: %{name}-compat-libdns_sd-devel = %{version}-%{release}
321 Provides: mdns-bonjour-static
323 %description compat-libdns_sd-static
324 Static Avahi Bonjour compat library.
326 %description compat-libdns_sd-static -l pl.UTF-8
327 Statyczna biblioteka Avahi zgodna z Bonjour.
330 Summary: Avahi Howl compat library
331 Summary(pl.UTF-8): Biblioteka Avahi zgodna z Howl
333 Provides: mdns-howl-libs
336 %description compat-howl
337 Avahi Howl compat library.
339 %description compat-howl -l pl.UTF-8
340 Biblioteka Avahi zgodna z Howl.
342 %package compat-howl-devel
343 Summary: Header files for Avahi Howl compat library
344 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Howl
345 Group: Development/Libraries
346 Requires: %{name}-compat-howl = %{version}-%{release}
347 Requires: %{name}-devel = %{version}-%{release}
348 Provides: mdns-howl-devel
349 Obsoletes: howl-devel
351 %description compat-howl-devel
352 Header files for Avahi Howl compat library.
354 %description compat-howl-devel -l pl.UTF-8
355 Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Howl.
357 %package compat-howl-static
358 Summary: Static Avahi Howl compat library
359 Summary(pl.UTF-8): Statyczna biblioteka Avahi zgodna z Howl
360 Group: Development/Libraries
361 Requires: %{name}-compat-howl-devel = %{version}-%{release}
362 Provides: mdns-howl-static
363 Obsoletes: howl-static
365 %description compat-howl-static
366 Static Avahi Howl compat library.
368 %description compat-howl-static -l pl.UTF-8
369 Statyczna biblioteka Avahi zgodna z Howl.
372 Summary: Avahi GLib library bindings
373 Summary(pl.UTF-8): Wiązania Avahi dla bibioteki GLib
377 Avahi GLib library bindings.
379 %description glib -l pl.UTF-8
380 Wiązania Avahi dla bibioteki GLib.
383 Summary: Header files for Avahi GLib library bindings
384 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki GLib
385 Group: Development/Libraries
386 Requires: %{name}-devel = %{version}-%{release}
387 Requires: %{name}-glib = %{version}-%{release}
388 Requires: glib2-devel >= 1:2.12.2
390 %description glib-devel
391 This is the package containing the header files for Avahi-glib
394 %description glib-devel -l pl.UTF-8
395 Ten pakiet zawiera pliki nagłówkowe biblioteki Avahi-glib.
398 Summary: Static Avahi GLib library
399 Summary(pl.UTF-8): Statyczna biblioteka Avahi GLib
400 Group: Development/Libraries
401 Requires: %{name}-glib-devel = %{version}-%{release}
403 %description glib-static
404 Static Avahi GLib library.
406 %description glib-static -l pl.UTF-8
407 Statyczna biblioteka Avahi GLib.
410 Summary: Avahi GObject interface
411 Summary(pl.UTF-8): Interfejs GObject do Avahi
415 Avahi GObject interface.
417 %description gobject -l pl.UTF-8
418 Interfejs GObject do Avahi.
420 %package gobject-devel
421 Summary: Header files for Avahi GObject interface
422 Summary(pl.UTF-8): Pliki nagłówkowe interfejsu GObject do Avahi
423 Group: Development/Libraries
424 Requires: %{name}-devel = %{version}-%{release}
425 Requires: %{name}-gobject = %{version}-%{release}
426 Requires: glib2-devel >= 1:2.12.2
428 %description gobject-devel
429 This is the package containing the header files for Avahi GObject
432 %description gobject-devel -l pl.UTF-8
433 Ten pakiet zawiera pliki nagłówkowe interfejsu GObject do Avahi.
435 %package gobject-static
436 Summary: Static Avahi GObject library
437 Summary(pl.UTF-8): Statyczna biblioteka Avahi GObject
438 Group: Development/Libraries
439 Requires: %{name}-gobject-devel = %{version}-%{release}
441 %description gobject-static
442 Static Avahi GObject library.
444 %description gobject-static -l pl.UTF-8
445 Statyczna biblioteka Avahi GObject.
448 Summary: Avahi Qt 3 library bindings
449 Summary(pl.UTF-8): Wiązania Avahi dla biblioteki Qt 3
451 Requires: %{name}-libs = %{version}-%{release}
455 Avahi Qt 3 library bindings.
457 %description qt -l pl.UTF-8
458 Wiązania Avahi dla biblioteki Qt 3.
461 Summary: Header files for Avahi Qt 3 library bindings
462 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 3
463 Group: Development/Libraries
464 Requires: %{name}-devel = %{version}-%{release}
465 Requires: %{name}-qt = %{version}-%{release}
466 Requires: qt-devel >= 1:3.0
467 Obsoletes: avahi-qt3-devel
469 %description qt-devel
470 Header files for Avahi Qt 3 library bindings.
472 %description qt-devel -l pl.UTF-8
473 Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 3.
476 Summary: Static Avahi Qt 3 library
477 Summary(pl.UTF-8): Statyczna biblioteka Avahi Qt 3
478 Group: Development/Libraries
479 Requires: %{name}-qt-devel = %{version}-%{release}
480 Obsoletes: avahi-qt3-static
482 %description qt-static
483 Static Avahi Qt 3 library.
485 %description qt-static -l pl.UTF-8
486 Statyczna biblioteka Avahi Qt 3.
489 Summary: Avahi Qt 4 library bindings
490 Summary(pl.UTF-8): Wiązania Avahi dla biblioteki Qt 4
492 Requires: %{name}-libs = %{version}-%{release}
495 Avahi Qt 4 library bindings.
497 %description Qt -l pl.UTF-8
498 Wiązania Avahi dla biblioteki Qt 4.
501 Summary: Header files for Avahi Qt 4 library bindings
502 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 4
503 Group: Development/Libraries
504 Requires: %{name}-Qt = %{version}-%{release}
505 Requires: %{name}-devel = %{version}-%{release}
507 %description Qt-devel
508 Header files for Avahi Qt 4 library bindings.
510 %description Qt-devel -l pl.UTF-8
511 Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 4.
514 Summary: Static Avahi Qt 4 library
515 Summary(pl.UTF-8): Statyczna biblioteka Avahi Qt 4
516 Group: Development/Libraries
517 Requires: %{name}-Qt-devel = %{version}-%{release}
519 %description Qt-static
520 Static Avahi Qt 4 library.
522 %description Qt-static -l pl.UTF-8
523 Statyczna biblioteka Avahi Qt 4.
525 %package -n python-avahi
526 Summary: Avahi Python bindings
527 Summary(pl.UTF-8): Wiązania Avahi dla Pythona
528 Group: Development/Languages/Python
529 Requires: %{name}-libs = %{version}-%{release}
530 Requires: python-dbus >= 0.71
532 %description -n python-avahi
533 Avahi Python bindings.
535 %description -n python-avahi -l pl.UTF-8
536 Wiązania Avahi dla Pythona.
538 %package -n dotnet-avahi
539 Summary: Avahi MONO bindings
540 Summary(pl.UTF-8): Wiązania Avahi dla MONO
542 Requires: %{name}-libs = %{version}-%{release}
544 %description -n dotnet-avahi
547 %description -n dotnet-avahi -l pl.UTF-8
548 Wiązania Avahi dla MONO.
550 %package -n dotnet-avahi-devel
551 Summary: Development files for MONO Avahi bindings
552 Summary(pl.UTF-8): Pliki rozwojowe wiązań Avahi dla MONO
553 Group: Development/Libraries
554 Requires: dotnet-avahi = %{version}-%{release}
555 Requires: monodoc >= 2.6
557 %description -n dotnet-avahi-devel
558 Development files for MONO Avahi bindings.
560 %description -n dotnet-avahi-devel -l pl.UTF-8
561 Pliki rozwojowe wiązań Avahi dla MONO.
563 %package -n dotnet-avahi-ui
564 Summary: Avahi UI MONO bindings
565 Summary(pl.UTF-8): Wiązania Avahi UI dla MONO
567 Requires: %{name}-ui = %{version}-%{release}
568 Requires: dotnet-avahi = %{version}-%{release}
570 %description -n dotnet-avahi-ui
571 Avahi UI MONO bindings.
573 %description -n dotnet-avahi-ui -l pl.UTF-8
574 Wiązania Avahi UI dla MONO.
576 %package -n dotnet-avahi-ui-devel
577 Summary: Development files for MONO Avahi UI bindings
578 Summary(pl.UTF-8): Pliki rozwojowe wiązań Avahi UI dla MONO
579 Group: X11/Development/Libraries
580 Requires: dotnet-avahi-ui = %{version}-%{release}
581 Requires: monodoc >= 2.6
583 %description -n dotnet-avahi-ui-devel
584 Development files for MONO Avahi UI bindings.
586 %description -n dotnet-avahi-ui-devel -l pl.UTF-8
587 Pliki rozwojowe wiązań Avahi UI dla MONO.
590 Summary: Miniature web server
591 Summary(pl.UTF-8): Miniaturowy serwer WWW
594 %description bookmarks
595 A Python based miniature web server that browses for mDNS/DNS-SD
596 services of type '_http._tcp' (i.e. web sites) and makes them
597 available as HTML links on http://localhost:8080/.
599 %description bookmarks -l pl.UTF-8
600 Napisany w Pythonie miniaturowy serwer WWW, pozwalający na
601 przeglądanie usług typu '_http._tcp' (np. stron WWW) i udostępniający
602 je jako odnośniki HTML na http://localhost:8080/.
605 Summary: Avahi Zeroconf browser
606 Summary(pl.UTF-8): Przeglądarka Zeroconf Avahi
608 Requires: python-avahi = %{version}-%{release}
609 Requires: python-pygtk-glade >= 2:2.9.6
611 %description discover
612 A tool for enumerating all available services on the local LAN
613 (python-pygtk implementation).
615 %description discover -l pl.UTF-8
616 Narzędzie wymieniające wszystkie dostępne usługi w sieci lokalnej LAN
617 (implementacja w python-pygtk).
619 %package discover-standalone
620 Summary: Avahi Zeroconf browser
621 Summary(pl.UTF-8): Przeglądarka Zeroconf Avahi
623 Requires: %{name}-glib = %{version}-%{release}
625 %description discover-standalone
626 GTK+ tool for enumerating all available services on the local LAN.
628 %description discover-standalone -l pl.UTF-8
629 Narzędzie GTK+ wymieniające wszystkie dostępne usługi w sieci lokalnej
633 Summary: Avahi CLI utilities
634 Summary(pl.UTF-8): Narzędzia CLI Avahi
638 Command line utilities using avahi-client.
640 %description utils -l pl.UTF-8
641 Narzędzia linii poleceń korzystające z avahi-client.
656 %{__aclocal} -I common
661 --disable-silent-rules \
662 --enable-compat-libdns_sd \
663 --enable-compat-howl \
665 %{!?with_apidocs:--disable-doxygen-doc} \
666 %{!?with_gtk:--disable-gtk} \
667 %{!?with_gtk3:--disable-gtk3} \
668 %{!?with_pygtk:--disable-pygtk} \
669 %{!?with_qt3:--disable-qt3} \
670 %{!?with_qt4:--disable-qt4} \
671 %{!?with_dotnet:--disable-mono} \
672 %{!?with_dotnet:--disable-monodoc} \
673 --with-avahi-priv-access-group=adm \
674 --with-autoipd-user=avahi \
675 --with-autoipd-group=avahi
679 rm -rf $RPM_BUILD_ROOT
680 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d,/etc/init}
683 DESTDIR=$RPM_BUILD_ROOT \
684 pythondir=%{py_sitedir}
686 install -p %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
687 cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
689 install %{SOURCE4} $RPM_BUILD_ROOT/etc/init/avahi-daemon.conf
690 install %{SOURCE5} $RPM_BUILD_ROOT/etc/init/avahi-dnsconfd.conf
692 ln -sf %{_includedir}/avahi-compat-libdns_sd/dns_sd.h \
693 $RPM_BUILD_ROOT%{_includedir}/dns_sd.h
695 ln -sf %{_pkgconfigdir}/avahi-compat-howl.pc \
696 $RPM_BUILD_ROOT%{_pkgconfigdir}/howl.pc
698 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
699 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
702 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/{avahi-{browse-domains,publish-address,publish-service,resolve-address,resolve-host-name},bvnc}.1
703 echo '.so avahi-browse.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-browse-domains.1
704 echo '.so avahi-publish.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-publish-address.1
705 echo '.so avahi-publish.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-publish-service.1
706 echo '.so avahi-resolve.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-resolve-address.1
707 echo '.so avahi-resolve.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-resolve-host-name.1
708 echo '.so bssh.1' > $RPM_BUILD_ROOT%{_mandir}/man1/bvnc.1
709 echo '.so bssh.1' > $RPM_BUILD_ROOT%{_mandir}/man1/bshell.1
711 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
716 rm -rf $RPM_BUILD_ROOT
719 %groupadd -g 165 -r -f avahi
720 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
723 %groupadd -g 165 -r -f avahi
724 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
727 /sbin/chkconfig --add %{name}-daemon
728 %service %{name}-daemon restart
729 /sbin/chkconfig --add %{name}-dnsconfd
730 %service %{name}-dnsconfd restart
733 if [ "$1" = "0" ]; then
734 %service -q %{name}-dnsconfd stop
735 /sbin/chkconfig --del %{name}-dnsconfd
736 %service -q %{name}-daemon stop
737 /sbin/chkconfig --del %{name}-daemon
741 if [ "$1" = "0" ]; then
747 if [ "$1" = "0" ]; then
753 %upstart_post avahi-daemon
754 %upstart_post avahi-dnsconfd
757 %upstart_postun avahi-daemon
758 %upstart_postun avahi-dnsconfd
760 %post libs -p /sbin/ldconfig
761 %postun libs -p /sbin/ldconfig
763 %post ui -p /sbin/ldconfig
764 %postun ui -p /sbin/ldconfig
766 %post ui-gtk3 -p /sbin/ldconfig
767 %postun ui-gtk3 -p /sbin/ldconfig
769 %post compat-libdns_sd -p /sbin/ldconfig
770 %postun compat-libdns_sd -p /sbin/ldconfig
772 %post compat-howl -p /sbin/ldconfig
773 %postun compat-howl -p /sbin/ldconfig
775 %post glib -p /sbin/ldconfig
776 %postun glib -p /sbin/ldconfig
778 %post gobject -p /sbin/ldconfig
779 %postun gobject -p /sbin/ldconfig
781 %post qt -p /sbin/ldconfig
782 %postun qt -p /sbin/ldconfig
784 %post Qt -p /sbin/ldconfig
785 %postun Qt -p /sbin/ldconfig
788 %defattr(644,root,root,755)
789 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
791 %dir %{_sysconfdir}/avahi
792 %dir %{_sysconfdir}/avahi/services
793 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
794 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-dnsconfd.action
795 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/hosts
796 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
797 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/sftp-ssh.service
798 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/*
800 %attr(755,root,root) %{_bindir}/avahi-set-host-name
802 %attr(755,root,root) %{_sbindir}/avahi-daemon
803 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
804 %dir %{_libdir}/%{name}
805 %{_libdir}/%{name}/service-types.db
806 #%%dir %{_datadir}/%{name}/introspection
807 #%%{_datadir}/%{name}/introspection/*.introspect
808 %{_datadir}/%{name}/avahi-service.dtd
809 %{_datadir}/%{name}/service-types
810 %{_datadir}/dbus-1/interfaces/org.freedesktop.Avahi.*.xml
812 %{_mandir}/man1/avahi-set-host-name.1*
813 %{_mandir}/man5/avahi-daemon.conf.5*
814 %{_mandir}/man5/avahi.hosts.5*
815 %{_mandir}/man5/avahi.service.5*
816 %{_mandir}/man8/avahi-daemon.8*
817 %{_mandir}/man8/avahi-dnsconfd.8*
818 %{_mandir}/man8/avahi-dnsconfd.action.8*
820 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
821 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
823 %if "%{pld_release}" != "ti"
825 %defattr(644,root,root,755)
826 %config(noreplace) %verify(not md5 mtime size) /etc/init/*.conf
830 %defattr(644,root,root,755)
831 %dir %{_sysconfdir}/avahi
832 %attr(755,root,root) %{_sysconfdir}/%{name}/avahi-autoipd.action
833 %config(noreplace) %verify(not md5 mtime size) /etc/dhclient-enter-hooks.d/avahi-autoipd
834 %config(noreplace) %verify(not md5 mtime size) /etc/dhclient-exit-hooks.d/avahi-autoipd
835 %attr(755,root,root) %{_sbindir}/avahi-autoipd
836 %{_mandir}/man8/avahi-autoipd.8*
837 %{_mandir}/man8/avahi-autoipd.action.8*
839 %files libs -f %{name}.lang
840 %defattr(644,root,root,755)
841 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
842 %attr(755,root,root) %ghost %{_libdir}/libavahi-client.so.3
843 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
844 %attr(755,root,root) %ghost %{_libdir}/libavahi-common.so.3
845 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
846 %attr(755,root,root) %ghost %{_libdir}/libavahi-core.so.7
847 # common for -discover*
848 %dir %{_datadir}/%{name}
849 %dir %{_datadir}/%{name}/interfaces
852 %defattr(644,root,root,755)
853 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
854 %attr(755,root,root) %{_libdir}/libavahi-client.so
855 %attr(755,root,root) %{_libdir}/libavahi-common.so
856 %attr(755,root,root) %{_libdir}/libavahi-core.so
857 %{_includedir}/avahi-client
858 %{_includedir}/avahi-common
859 %{_includedir}/avahi-core
860 %{_pkgconfigdir}/avahi-client.pc
861 %{_pkgconfigdir}/avahi-core.pc
864 %defattr(644,root,root,755)
865 %{_libdir}/libavahi-client.a
866 %{_libdir}/libavahi-common.a
867 %{_libdir}/libavahi-core.a
871 %defattr(644,root,root,755)
872 %attr(755,root,root) %{_libdir}/libavahi-ui.so.*.*.*
873 %attr(755,root,root) %ghost %{_libdir}/libavahi-ui.so.0
875 %attr(755,root,root) %{_bindir}/bshell
876 %attr(755,root,root) %{_bindir}/bssh
877 %attr(755,root,root) %{_bindir}/bvnc
878 %{_mandir}/man1/bshell.1*
879 %{_mandir}/man1/bssh.1*
880 %{_mandir}/man1/bvnc.1*
881 %{_desktopdir}/bssh.desktop
882 %{_desktopdir}/bvnc.desktop
886 %defattr(644,root,root,755)
887 %attr(755,root,root) %{_libdir}/libavahi-ui.so
888 %{_pkgconfigdir}/avahi-ui.pc
891 %defattr(644,root,root,755)
892 %{_libdir}/libavahi-ui.a
895 %if %{with gtk} || %{with gtk3}
896 %files ui-devel-common
897 %defattr(644,root,root,755)
898 %{_includedir}/avahi-ui
903 %defattr(644,root,root,755)
904 %attr(755,root,root) %{_bindir}/bshell
905 %attr(755,root,root) %{_bindir}/bssh
906 %attr(755,root,root) %{_bindir}/bvnc
907 %attr(755,root,root) %{_libdir}/libavahi-ui-gtk3.so.*.*.*
908 %attr(755,root,root) %ghost %{_libdir}/libavahi-ui-gtk3.so.0
909 %{_mandir}/man1/bshell.1*
910 %{_mandir}/man1/bssh.1*
911 %{_mandir}/man1/bvnc.1*
912 %{_desktopdir}/bssh.desktop
913 %{_desktopdir}/bvnc.desktop
916 %defattr(644,root,root,755)
917 %attr(755,root,root) %{_libdir}/libavahi-ui-gtk3.so
918 %{_pkgconfigdir}/avahi-ui-gtk3.pc
920 %files ui-gtk3-static
921 %defattr(644,root,root,755)
922 %{_libdir}/libavahi-ui-gtk3.a
925 %files compat-libdns_sd
926 %defattr(644,root,root,755)
927 %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.*
928 %attr(755,root,root) %ghost %{_libdir}/libdns_sd.so.1
930 %files compat-libdns_sd-devel
931 %defattr(644,root,root,755)
932 %attr(755,root,root) %{_libdir}/libdns_sd.so
933 %{_includedir}/avahi-compat-libdns_sd
934 %{_includedir}/dns_sd.h
935 %{_pkgconfigdir}/avahi-compat-libdns_sd.pc
937 %files compat-libdns_sd-static
938 %defattr(644,root,root,755)
939 %{_libdir}/libdns_sd.a
942 %defattr(644,root,root,755)
943 %attr(755,root,root) %{_libdir}/libhowl.so.*.*.*
944 %attr(755,root,root) %ghost %{_libdir}/libhowl.so.0
946 %files compat-howl-devel
947 %defattr(644,root,root,755)
948 %attr(755,root,root) %{_libdir}/libhowl.so
949 %{_includedir}/avahi-compat-howl
950 %{_pkgconfigdir}/avahi-compat-howl.pc
951 %{_pkgconfigdir}/howl.pc
953 %files compat-howl-static
954 %defattr(644,root,root,755)
957 %files -n python-avahi
958 %defattr(644,root,root,755)
962 %files -n dotnet-avahi
963 %defattr(644,root,root,755)
964 %{_prefix}/lib/mono/gac/avahi-sharp
966 %files -n dotnet-avahi-devel
967 %defattr(644,root,root,755)
968 %{_prefix}/lib/mono/avahi-sharp
969 %{_prefix}/lib/monodoc/sources/avahi-sharp-docs.*
970 %{_pkgconfigdir}/avahi-sharp.pc
972 %files -n dotnet-avahi-ui
973 %defattr(644,root,root,755)
974 %{_prefix}/lib/mono/gac/avahi-ui-sharp
976 %files -n dotnet-avahi-ui-devel
977 %defattr(644,root,root,755)
978 %{_prefix}/lib/mono/avahi-ui-sharp
979 %{_prefix}/lib/monodoc/sources/avahi-ui-sharp-docs.*
980 %{_pkgconfigdir}/avahi-ui-sharp.pc
984 %defattr(644,root,root,755)
985 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
986 %attr(755,root,root) %ghost %{_libdir}/libavahi-glib.so.1
989 %defattr(644,root,root,755)
990 %attr(755,root,root) %{_libdir}/libavahi-glib.so
991 %{_includedir}/avahi-glib
992 %{_pkgconfigdir}/avahi-glib.pc
995 %defattr(644,root,root,755)
996 %{_libdir}/libavahi-glib.a
999 %defattr(644,root,root,755)
1000 %attr(755,root,root) %{_libdir}/libavahi-gobject.so.*.*.*
1001 %attr(755,root,root) %ghost %{_libdir}/libavahi-gobject.so.0
1002 %{_libdir}/girepository-1.0/Avahi-0.6.typelib
1003 %{_libdir}/girepository-1.0/AvahiCore-0.6.typelib
1005 %files gobject-devel
1006 %defattr(644,root,root,755)
1007 %attr(755,root,root) %{_libdir}/libavahi-gobject.so
1008 %{_includedir}/avahi-gobject
1009 %{_pkgconfigdir}/avahi-gobject.pc
1010 %{_datadir}/gir-1.0/Avahi-0.6.gir
1011 %{_datadir}/gir-1.0/AvahiCore-0.6.gir
1013 %files gobject-static
1014 %defattr(644,root,root,755)
1015 %{_libdir}/libavahi-gobject.a
1019 %defattr(644,root,root,755)
1020 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
1021 %attr(755,root,root) %ghost %{_libdir}/libavahi-qt3.so.1
1024 %defattr(644,root,root,755)
1025 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
1026 %{_includedir}/avahi-qt3
1027 %{_pkgconfigdir}/avahi-qt3.pc
1030 %defattr(644,root,root,755)
1031 %{_libdir}/libavahi-qt3.a
1036 %defattr(644,root,root,755)
1037 %attr(755,root,root) %{_libdir}/libavahi-qt4.so.*.*.*
1038 %attr(755,root,root) %ghost %{_libdir}/libavahi-qt4.so.1
1041 %defattr(644,root,root,755)
1042 %attr(755,root,root) %{_libdir}/libavahi-qt4.so
1043 %{_includedir}/avahi-qt4
1044 %{_pkgconfigdir}/avahi-qt4.pc
1047 %defattr(644,root,root,755)
1048 %{_libdir}/libavahi-qt4.a
1052 %defattr(644,root,root,755)
1053 %attr(755,root,root) %{_bindir}/avahi-bookmarks
1054 %{_mandir}/man1/avahi-bookmarks.1*
1058 %defattr(644,root,root,755)
1059 %attr(755,root,root) %{_bindir}/avahi-discover
1060 %{py_sitedir}/avahi_discover
1061 %{_datadir}/%{name}/interfaces/avahi-discover.ui
1062 %{_desktopdir}/avahi-discover.desktop
1063 %{_pixmapsdir}/avahi.png
1064 %{_mandir}/man1/avahi-discover.1*
1068 %files discover-standalone
1069 %defattr(644,root,root,755)
1070 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
1071 %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade
1075 %defattr(644,root,root,755)
1076 %attr(755,root,root) %{_bindir}/avahi-browse
1077 %attr(755,root,root) %{_bindir}/avahi-browse-domains
1078 %attr(755,root,root) %{_bindir}/avahi-publish
1079 %attr(755,root,root) %{_bindir}/avahi-publish-address
1080 %attr(755,root,root) %{_bindir}/avahi-publish-service
1081 %attr(755,root,root) %{_bindir}/avahi-resolve
1082 %attr(755,root,root) %{_bindir}/avahi-resolve-address
1083 %attr(755,root,root) %{_bindir}/avahi-resolve-host-name
1084 %{_mandir}/man1/avahi-browse.1*
1085 %{_mandir}/man1/avahi-browse-domains.1*
1086 %{_mandir}/man1/avahi-publish.1*
1087 %{_mandir}/man1/avahi-publish-address.1*
1088 %{_mandir}/man1/avahi-publish-service.1*
1089 %{_mandir}/man1/avahi-resolve.1*
1090 %{_mandir}/man1/avahi-resolve-address.1*
1091 %{_mandir}/man1/avahi-resolve-host-name.1*