2 # - finish with_apidocs
3 # - introspection files
5 # - qt and Qt packages make file collisions on case insensitive filesystems,
6 # consider adding version suffix to either of the pckages
9 %bcond_with apidocs # build API documentation
10 %bcond_without dotnet # build without dotnet bindings
11 %bcond_without gtk # build without GTK+
12 %bcond_without gtk3 # build without GTK+3
13 %bcond_without pygtk # build without PyGTK
14 %bcond_without qt # build without (any) qt bindings
15 %bcond_without qt3 # build without qt3 bindings
16 %bcond_without qt4 # build without qt4 bindings
18 %ifnarch %{ix86} %{x8664} alpha arm hppa ia64 mips ppc s390 s390x sparc sparcv9
30 %{?with_dotnet:%include /usr/lib/rpm/macros.mono}
31 Summary: Free mDNS/DNS-SD/Zeroconf implementation
32 Summary(pl.UTF-8): Wolna implementacja mDNS/DNS-SD/Zeroconf
38 Source0: http://avahi.org/download/%{name}-%{version}.tar.gz
39 # Source0-md5: e4db89a2a403ff4c47d66ac66fad1f43
40 Source1: %{name}-daemon
41 Source2: %{name}-dnsconfd
43 Source4: %{name}-daemon.upstart
44 Source5: %{name}-dnsconfd.upstart
45 Patch0: %{name}-desktop.patch
46 Patch1: %{name}-glade.patch
47 Patch2: %{name}-destdir.patch
48 Patch3: %{name}-mono-dir.patch
49 Patch4: nss-mdns-package.patch
50 Patch5: %{name}-dhclient_hooks.patch
51 Patch6: %{name}-autoipd-sbin_ip.patch
52 URL: http://avahi.org/
53 BuildRequires: autoconf >= 2.63
54 BuildRequires: automake >= 1:1.11
55 BuildRequires: dbus-devel >= 0.92
57 BuildRequires: doxygen
58 # for the 'dot' tool used by doxygen
59 BuildRequires: graphviz
61 BuildRequires: expat-devel
62 BuildRequires: gdbm-devel
63 BuildRequires: gettext-devel
64 BuildRequires: gobject-introspection-devel >= 0.9.5
66 BuildRequires: glib2-devel >= 1:2.12.2
67 BuildRequires: gtk+2-devel >= 2:2.14.0
70 BuildRequires: glib2-devel >= 1:2.28.0
71 BuildRequires: gtk+3-devel >= 3.0.0
73 BuildRequires: intltool >= 0.35
74 BuildRequires: libcap-devel
75 BuildRequires: libdaemon-devel >= 0.14
76 BuildRequires: libtool
78 BuildRequires: dotnet-gtk-sharp2-devel >= 2.10
79 BuildRequires: mono-csharp
80 BuildRequires: monodoc >= 2.6
82 BuildRequires: pkgconfig
83 BuildRequires: python >= 1:2.4
84 BuildRequires: python-dbus >= 0.71
85 %{?with_pygtk:BuildRequires: python-pygtk-devel >= 2:2.9.6}
87 BuildRequires: qt-devel >= 1:3.0
90 BuildRequires: QtCore-devel >= 4.0.0
91 BuildRequires: qt4-build
93 BuildRequires: rpm-pythonprov
94 BuildRequires: rpmbuild(macros) >= 1.626
95 Requires(post,preun): /sbin/chkconfig
96 Requires: %{name}-libs = %{version}-%{release}
97 Requires: dbus >= 0.92
98 Requires: libdaemon >= 0.14
99 Requires: rc-scripts >= 0.4.3
100 Suggests: nss_mdns >= 0.10-2
101 Provides: group(avahi)
102 Provides: user(avahi)
103 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
106 Avahi is an implementation the DNS Service Discovery and Multicast DNS
107 specifications for Zeroconf Computing. It uses D-BUS for communication
108 between user applications and a system daemon.
110 %description -l pl.UTF-8
111 Avahi jest implementacją specyfikacji DNS Service Discovery i
112 Multicast DNS dla Zeroconf Computing. Używa D-BUSa dla komunikacji
113 pomiędzy programami użytkownika a demonem systemowym.
116 Summary: Upstart jobs description for Avahi daemons
117 Summary(pl.UTF-8): Opis zadań Upstart dla demonów Avahi
119 Requires: %{name} = %{version}-%{release}
120 Requires: upstart >= 0.6
121 Conflicts: syslog-ng-upstart < 3.2.4-1
124 Upstart jobs description for Avahi daemons.
126 %description upstart -l pl.UTF-8
127 Opis zadań Upstart dla demonów Avahi.
130 Summary: systemd units for Avahi daemons
131 Summary(pl.UTF-8): Pliki systemd dla demonów Avahi
133 Requires: %{name} = %{version}-%{release}
134 Requires: systemd-units >= 37-0.10
137 systemd units for Avahi daemons.
139 %description systemd -l pl.UTF-8
140 Pliki systemd dla demonów Avahi.
143 Summary: IPv4LL network address configuration daemon
144 Summary(pl.UTF-8): Demon configurujący adresy IPv4LL
145 Group: Networking/Daemons
146 Requires(postun): /usr/sbin/groupdel
147 Requires(postun): /usr/sbin/userdel
148 Requires(pre): /bin/id
149 Requires(pre): /usr/bin/getgid
150 Requires(pre): /usr/sbin/groupadd
151 Requires(pre): /usr/sbin/useradd
152 Provides: group(avahi)
153 Provides: user(avahi)
156 avahi-autoipd implements IPv4LL, "Dynamic Configuration of IPv4 Link-
157 Local Addresses" (IETF RFC3927), a protocol for automatic IP address
158 configuration from the link-local 169.254.0.0/16 range without the
159 need for a central server. It is primarily intended to be used in
160 ad-hoc networks which lack a DHCP server.
162 IPv4LL is part of the Zeroconf stack.
164 %description autoipd -l pl.UTF-8
165 avahi-autoipd jest implementacją IPv4LL, protokołu umożliwiającego
166 automatyczną konfigurację adresu z zakresu 169.254.0.0/16 bez potrzeby
167 użycia centralnego serwera. Jego głównym zastosowaniem są sieci
168 ad-hoc, w których brakuje serwera DHCP.
170 IPv4LL jest częścią stosu Zeroconf.
173 Summary: Avahi client, common and core libraries
174 Summary(pl.UTF-8): Biblioteki Avahi: klienta, wspólna i główna
178 Avahi client, common and core libraries.
180 %description libs -l pl.UTF-8
181 Biblioteki Avahi: klienta, wspólna i główna.
184 Summary: Header files for Avahi library
185 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi
186 Group: Development/Libraries
187 Requires: %{name}-libs = %{version}-%{release}
188 Requires: dbus-devel >= 0.92
189 Requires: expat-devel
192 This is the package containing the header files for Avahi library.
194 %description devel -l pl.UTF-8
195 Ten pakiet zawiera pliki nagłówkowe biblioteki Avahi.
198 Summary: Static Avahi library
199 Summary(pl.UTF-8): Statyczna biblioteka Avahi
200 Group: Development/Libraries
201 Requires: %{name}-devel = %{version}-%{release}
204 Static Avahi library.
206 %description static -l pl.UTF-8
207 Statyczna biblioteka Avahi.
210 Summary: Avahi UI library
211 Summary(pl.UTF-8): Biblioteka Avahi UI
213 Requires: %{name}-libs = %{version}-%{release}
214 Requires: gtk+2 >= 2:2.14.0
217 Common GTK+ UI support library for Avahi.
219 %description ui -l pl.UTF-8
220 Biblioteka wspólnego interfejsu użytkownika GTK+ dla Avahi.
223 Summary: Header files for Avahi UI library
224 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi UI
225 Group: X11/Development/Libraries
226 Requires: %{name}-devel = %{version}-%{release}
227 Requires: %{name}-ui = %{version}-%{release}
228 Requires: %{name}-ui-devel-common = %{version}-%{release}
229 Requires: gtk+2-devel >= 2:2.14.0
231 %description ui-devel
232 Header files for Avahi UI library.
234 %description ui-devel -l pl.UTF-8
235 Pliki nagłówkowe biblioteki Avahi UI.
238 Summary: Static Avahi UI library
239 Summary(pl.UTF-8): Statyczna biblioteka Avahi UI
240 Group: X11/Development/Libraries
241 Requires: %{name}-ui-devel = %{version}-%{release}
243 %description ui-static
244 Static Avahi UI library.
246 %description ui-static -l pl.UTF-8
247 Statyczna biblioteka Avahi UI.
249 %package ui-devel-common
250 Summary: Header files for Avahi UI library
251 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi UI
252 Group: X11/Development/Libraries
253 Requires: %{name}-devel = %{version}-%{release}
255 %description ui-devel-common
256 Header files for Avahi UI library.
258 %description ui-devel-common -l pl.UTF-8
259 Pliki nagłówkowe biblioteki Avahi GTK+ UI.
262 Summary: Avahi UI library - GTK+ 3.x version
263 Summary(pl.UTF-8): Biblioteka Avahi UI - wersja dla GTK+ 3.x
265 Requires: %{name}-libs = %{version}-%{release}
268 Common GTK+ 3.x UI support library for Avahi.
270 %description ui-gtk3 -l pl.UTF-8
271 Biblioteka wspólnego interfejsu użytkownika GTK+ 3.x dla Avahi.
273 %package ui-gtk3-devel
274 Summary: Header files for Avahi UI library - GTK+ 3.x version
275 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi UI - wersja dla GTK+ 3.x
276 Group: X11/Development/Libraries
277 Requires: %{name}-devel = %{version}-%{release}
278 Requires: %{name}-ui-devel-common = %{version}-%{release}
279 Requires: %{name}-ui-gtk3 = %{version}-%{release}
281 %description ui-gtk3-devel
282 Header files for Avahi GTK+ 3.x UI library.
284 %description ui-devel -l pl.UTF-8
285 Pliki nagłówkowe biblioteki Avahi GTK+ 3.x UI.
287 %package ui-gtk3-static
288 Summary: Static Avahi UI library - GTK+ 3.x version
289 Summary(pl.UTF-8): Statyczna biblioteka Avahi UI - wersja GTK+ 3.x
290 Group: X11/Development/Libraries
291 Requires: %{name}-ui-gtk3-devel = %{version}-%{release}
293 %description ui-gtk3-static
294 Static Avahi GTK+ 3.x UI library.
296 %description ui-gtk3-static -l pl.UTF-8
297 Statyczna biblioteka Avahi GTK+ 3.x UI.
299 %package compat-libdns_sd
300 Summary: Avahi Bonjour compat library
301 Summary(pl.UTF-8): Biblioteka Avahi zgodna z Bonjour
303 Provides: mdns-bonjour
304 Obsoletes: mDNSResponder-libs
306 %description compat-libdns_sd
307 Avahi Bonjour compat library.
309 %description compat-libdns_sd -l pl.UTF-8
310 Biblioteka Avahi zgodna z Bonjour.
312 %package compat-libdns_sd-devel
313 Summary: Header files for Avahi Bonjour compat library
314 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Bonjour
315 Group: Development/Libraries
316 Requires: %{name}-compat-libdns_sd = %{version}-%{release}
317 Requires: %{name}-devel = %{version}-%{release}
318 Provides: mdns-bonjour-devel
319 Obsoletes: mDNSResponder-devel
321 %description compat-libdns_sd-devel
322 Header files for Avahi Bonjour compat library.
324 %description compat-libdns_sd-devel -l pl.UTF-8
325 Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Bonjour.
327 %package compat-libdns_sd-static
328 Summary: Static Avahi Bonjour compat library
329 Summary(pl.UTF-8): Statyczna biblioteka Avahi zgodna z Bonjour
330 Group: Development/Libraries
331 Requires: %{name}-compat-libdns_sd-devel = %{version}-%{release}
332 Provides: mdns-bonjour-static
334 %description compat-libdns_sd-static
335 Static Avahi Bonjour compat library.
337 %description compat-libdns_sd-static -l pl.UTF-8
338 Statyczna biblioteka Avahi zgodna z Bonjour.
341 Summary: Avahi Howl compat library
342 Summary(pl.UTF-8): Biblioteka Avahi zgodna z Howl
344 Provides: mdns-howl-libs
347 %description compat-howl
348 Avahi Howl compat library.
350 %description compat-howl -l pl.UTF-8
351 Biblioteka Avahi zgodna z Howl.
353 %package compat-howl-devel
354 Summary: Header files for Avahi Howl compat library
355 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Howl
356 Group: Development/Libraries
357 Requires: %{name}-compat-howl = %{version}-%{release}
358 Requires: %{name}-devel = %{version}-%{release}
359 Provides: mdns-howl-devel
360 Obsoletes: howl-devel
362 %description compat-howl-devel
363 Header files for Avahi Howl compat library.
365 %description compat-howl-devel -l pl.UTF-8
366 Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Howl.
368 %package compat-howl-static
369 Summary: Static Avahi Howl compat library
370 Summary(pl.UTF-8): Statyczna biblioteka Avahi zgodna z Howl
371 Group: Development/Libraries
372 Requires: %{name}-compat-howl-devel = %{version}-%{release}
373 Provides: mdns-howl-static
374 Obsoletes: howl-static
376 %description compat-howl-static
377 Static Avahi Howl compat library.
379 %description compat-howl-static -l pl.UTF-8
380 Statyczna biblioteka Avahi zgodna z Howl.
383 Summary: Avahi GLib library bindings
384 Summary(pl.UTF-8): Wiązania Avahi dla bibioteki GLib
388 Avahi GLib library bindings.
390 %description glib -l pl.UTF-8
391 Wiązania Avahi dla bibioteki GLib.
394 Summary: Header files for Avahi GLib library bindings
395 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki GLib
396 Group: Development/Libraries
397 Requires: %{name}-devel = %{version}-%{release}
398 Requires: %{name}-glib = %{version}-%{release}
399 Requires: glib2-devel >= 1:2.12.2
401 %description glib-devel
402 This is the package containing the header files for Avahi-glib
405 %description glib-devel -l pl.UTF-8
406 Ten pakiet zawiera pliki nagłówkowe biblioteki Avahi-glib.
409 Summary: Static Avahi GLib library
410 Summary(pl.UTF-8): Statyczna biblioteka Avahi GLib
411 Group: Development/Libraries
412 Requires: %{name}-glib-devel = %{version}-%{release}
414 %description glib-static
415 Static Avahi GLib library.
417 %description glib-static -l pl.UTF-8
418 Statyczna biblioteka Avahi GLib.
421 Summary: Avahi GObject interface
422 Summary(pl.UTF-8): Interfejs GObject do Avahi
426 Avahi GObject interface.
428 %description gobject -l pl.UTF-8
429 Interfejs GObject do Avahi.
431 %package gobject-devel
432 Summary: Header files for Avahi GObject interface
433 Summary(pl.UTF-8): Pliki nagłówkowe interfejsu GObject do Avahi
434 Group: Development/Libraries
435 Requires: %{name}-devel = %{version}-%{release}
436 Requires: %{name}-gobject = %{version}-%{release}
437 Requires: glib2-devel >= 1:2.12.2
439 %description gobject-devel
440 This is the package containing the header files for Avahi GObject
443 %description gobject-devel -l pl.UTF-8
444 Ten pakiet zawiera pliki nagłówkowe interfejsu GObject do Avahi.
446 %package gobject-static
447 Summary: Static Avahi GObject library
448 Summary(pl.UTF-8): Statyczna biblioteka Avahi GObject
449 Group: Development/Libraries
450 Requires: %{name}-gobject-devel = %{version}-%{release}
452 %description gobject-static
453 Static Avahi GObject library.
455 %description gobject-static -l pl.UTF-8
456 Statyczna biblioteka Avahi GObject.
459 Summary: Avahi Qt 3 library bindings
460 Summary(pl.UTF-8): Wiązania Avahi dla biblioteki Qt 3
462 Requires: %{name}-libs = %{version}-%{release}
466 Avahi Qt 3 library bindings.
468 %description qt -l pl.UTF-8
469 Wiązania Avahi dla biblioteki Qt 3.
472 Summary: Header files for Avahi Qt 3 library bindings
473 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 3
474 Group: Development/Libraries
475 Requires: %{name}-devel = %{version}-%{release}
476 Requires: %{name}-qt = %{version}-%{release}
477 Requires: qt-devel >= 1:3.0
478 Obsoletes: avahi-qt3-devel
480 %description qt-devel
481 Header files for Avahi Qt 3 library bindings.
483 %description qt-devel -l pl.UTF-8
484 Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 3.
487 Summary: Static Avahi Qt 3 library
488 Summary(pl.UTF-8): Statyczna biblioteka Avahi Qt 3
489 Group: Development/Libraries
490 Requires: %{name}-qt-devel = %{version}-%{release}
491 Obsoletes: avahi-qt3-static
493 %description qt-static
494 Static Avahi Qt 3 library.
496 %description qt-static -l pl.UTF-8
497 Statyczna biblioteka Avahi Qt 3.
500 Summary: Avahi Qt 4 library bindings
501 Summary(pl.UTF-8): Wiązania Avahi dla biblioteki Qt 4
503 Requires: %{name}-libs = %{version}-%{release}
506 Avahi Qt 4 library bindings.
508 %description Qt -l pl.UTF-8
509 Wiązania Avahi dla biblioteki Qt 4.
512 Summary: Header files for Avahi Qt 4 library bindings
513 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 4
514 Group: Development/Libraries
515 Requires: %{name}-Qt = %{version}-%{release}
516 Requires: %{name}-devel = %{version}-%{release}
518 %description Qt-devel
519 Header files for Avahi Qt 4 library bindings.
521 %description Qt-devel -l pl.UTF-8
522 Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 4.
525 Summary: Static Avahi Qt 4 library
526 Summary(pl.UTF-8): Statyczna biblioteka Avahi Qt 4
527 Group: Development/Libraries
528 Requires: %{name}-Qt-devel = %{version}-%{release}
530 %description Qt-static
531 Static Avahi Qt 4 library.
533 %description Qt-static -l pl.UTF-8
534 Statyczna biblioteka Avahi Qt 4.
536 %package -n python-avahi
537 Summary: Avahi Python bindings
538 Summary(pl.UTF-8): Wiązania Avahi dla Pythona
539 Group: Development/Languages/Python
540 Requires: %{name}-libs = %{version}-%{release}
541 Requires: python-dbus >= 0.71
543 %description -n python-avahi
544 Avahi Python bindings.
546 %description -n python-avahi -l pl.UTF-8
547 Wiązania Avahi dla Pythona.
549 %package -n dotnet-avahi
550 Summary: Avahi MONO bindings
551 Summary(pl.UTF-8): Wiązania Avahi dla MONO
553 Requires: %{name}-libs = %{version}-%{release}
555 %description -n dotnet-avahi
558 %description -n dotnet-avahi -l pl.UTF-8
559 Wiązania Avahi dla MONO.
561 %package -n dotnet-avahi-devel
562 Summary: Development files for MONO Avahi bindings
563 Summary(pl.UTF-8): Pliki rozwojowe wiązań Avahi dla MONO
564 Group: Development/Libraries
565 Requires: dotnet-avahi = %{version}-%{release}
566 Requires: monodoc >= 2.6
568 %description -n dotnet-avahi-devel
569 Development files for MONO Avahi bindings.
571 %description -n dotnet-avahi-devel -l pl.UTF-8
572 Pliki rozwojowe wiązań Avahi dla MONO.
574 %package -n dotnet-avahi-ui
575 Summary: Avahi UI MONO bindings
576 Summary(pl.UTF-8): Wiązania Avahi UI dla MONO
578 Requires: %{name}-ui = %{version}-%{release}
579 Requires: dotnet-avahi = %{version}-%{release}
581 %description -n dotnet-avahi-ui
582 Avahi UI MONO bindings.
584 %description -n dotnet-avahi-ui -l pl.UTF-8
585 Wiązania Avahi UI dla MONO.
587 %package -n dotnet-avahi-ui-devel
588 Summary: Development files for MONO Avahi UI bindings
589 Summary(pl.UTF-8): Pliki rozwojowe wiązań Avahi UI dla MONO
590 Group: X11/Development/Libraries
591 Requires: dotnet-avahi-ui = %{version}-%{release}
592 Requires: monodoc >= 2.6
594 %description -n dotnet-avahi-ui-devel
595 Development files for MONO Avahi UI bindings.
597 %description -n dotnet-avahi-ui-devel -l pl.UTF-8
598 Pliki rozwojowe wiązań Avahi UI dla MONO.
601 Summary: Miniature web server
602 Summary(pl.UTF-8): Miniaturowy serwer WWW
605 %description bookmarks
606 A Python based miniature web server that browses for mDNS/DNS-SD
607 services of type '_http._tcp' (i.e. web sites) and makes them
608 available as HTML links on http://localhost:8080/.
610 %description bookmarks -l pl.UTF-8
611 Napisany w Pythonie miniaturowy serwer WWW, pozwalający na
612 przeglądanie usług typu '_http._tcp' (np. stron WWW) i udostępniający
613 je jako odnośniki HTML na http://localhost:8080/.
616 Summary: Avahi Zeroconf browser
617 Summary(pl.UTF-8): Przeglądarka Zeroconf Avahi
619 Requires: python-avahi = %{version}-%{release}
620 Requires: python-pygtk-glade >= 2:2.9.6
622 %description discover
623 A tool for enumerating all available services on the local LAN
624 (python-pygtk implementation).
626 %description discover -l pl.UTF-8
627 Narzędzie wymieniające wszystkie dostępne usługi w sieci lokalnej LAN
628 (implementacja w python-pygtk).
630 %package discover-standalone
631 Summary: Avahi Zeroconf browser
632 Summary(pl.UTF-8): Przeglądarka Zeroconf Avahi
634 Requires: %{name}-glib = %{version}-%{release}
636 %description discover-standalone
637 GTK+ tool for enumerating all available services on the local LAN.
639 %description discover-standalone -l pl.UTF-8
640 Narzędzie GTK+ wymieniające wszystkie dostępne usługi w sieci lokalnej
644 Summary: Avahi CLI utilities
645 Summary(pl.UTF-8): Narzędzia CLI Avahi
649 Command line utilities using avahi-client.
651 %description utils -l pl.UTF-8
652 Narzędzia linii poleceń korzystające z avahi-client.
667 %{__aclocal} -I common
672 --disable-silent-rules \
673 --enable-compat-libdns_sd \
674 --enable-compat-howl \
676 %{!?with_apidocs:--disable-doxygen-doc} \
677 %{!?with_gtk:--disable-gtk} \
678 %{!?with_gtk3:--disable-gtk3} \
679 %{!?with_pygtk:--disable-pygtk} \
680 %{!?with_qt3:--disable-qt3} \
681 %{!?with_qt4:--disable-qt4} \
682 %{!?with_dotnet:--disable-mono} \
683 %{!?with_dotnet:--disable-monodoc} \
684 --with-systemdsystemunitdir=%{systemdunitdir} \
685 --with-avahi-priv-access-group=adm \
686 --with-autoipd-user=avahi \
687 --with-autoipd-group=avahi
691 rm -rf $RPM_BUILD_ROOT
692 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d,/etc/init}
695 DESTDIR=$RPM_BUILD_ROOT \
696 pythondir=%{py_sitedir}
698 install -p %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
699 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
701 cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/init/avahi-daemon.conf
702 cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/init/avahi-dnsconfd.conf
704 ln -sf %{_includedir}/avahi-compat-libdns_sd/dns_sd.h \
705 $RPM_BUILD_ROOT%{_includedir}/dns_sd.h
707 ln -sf %{_pkgconfigdir}/avahi-compat-howl.pc \
708 $RPM_BUILD_ROOT%{_pkgconfigdir}/howl.pc
710 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
711 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
714 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/avahi-{browse-domains,publish-address,publish-service,resolve-address,resolve-host-name}.1
715 %{?with_gtk:%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/bvnc.1}
716 echo '.so avahi-browse.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-browse-domains.1
717 echo '.so avahi-publish.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-publish-address.1
718 echo '.so avahi-publish.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-publish-service.1
719 echo '.so avahi-resolve.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-resolve-address.1
720 echo '.so avahi-resolve.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-resolve-host-name.1
721 echo '.so bssh.1' > $RPM_BUILD_ROOT%{_mandir}/man1/bvnc.1
722 echo '.so bssh.1' > $RPM_BUILD_ROOT%{_mandir}/man1/bshell.1
724 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
729 rm -rf $RPM_BUILD_ROOT
732 %groupadd -g 165 -r -f avahi
733 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
736 %groupadd -g 165 -r -f avahi
737 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
740 /sbin/chkconfig --add %{name}-daemon
741 %service %{name}-daemon restart
742 /sbin/chkconfig --add %{name}-dnsconfd
743 %service %{name}-dnsconfd restart
746 if [ "$1" = "0" ]; then
747 %service -q %{name}-dnsconfd stop
748 /sbin/chkconfig --del %{name}-dnsconfd
749 %service -q %{name}-daemon stop
750 /sbin/chkconfig --del %{name}-daemon
754 if [ "$1" = "0" ]; then
760 if [ "$1" = "0" ]; then
766 %upstart_post avahi-daemon
767 %upstart_post avahi-dnsconfd
770 %upstart_postun avahi-daemon
771 %upstart_postun avahi-dnsconfd
774 %systemd_post avahi-daemon.service avahi-dnsconfd.service avahi-daemon.socket
777 %systemd_preun avahi-daemon.service avahi-dnsconfd.service avahi-daemon.socket
782 %post libs -p /sbin/ldconfig
783 %postun libs -p /sbin/ldconfig
785 %post ui -p /sbin/ldconfig
786 %postun ui -p /sbin/ldconfig
788 %post ui-gtk3 -p /sbin/ldconfig
789 %postun ui-gtk3 -p /sbin/ldconfig
791 %post compat-libdns_sd -p /sbin/ldconfig
792 %postun compat-libdns_sd -p /sbin/ldconfig
794 %post compat-howl -p /sbin/ldconfig
795 %postun compat-howl -p /sbin/ldconfig
797 %post glib -p /sbin/ldconfig
798 %postun glib -p /sbin/ldconfig
800 %post gobject -p /sbin/ldconfig
801 %postun gobject -p /sbin/ldconfig
803 %post qt -p /sbin/ldconfig
804 %postun qt -p /sbin/ldconfig
806 %post Qt -p /sbin/ldconfig
807 %postun Qt -p /sbin/ldconfig
810 %defattr(644,root,root,755)
811 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
813 %dir %{_sysconfdir}/avahi
814 %dir %{_sysconfdir}/avahi/services
815 %attr(755,root,root) %{_sysconfdir}/avahi/avahi-dnsconfd.action
816 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
817 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/hosts
818 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
819 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/sftp-ssh.service
820 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/*
822 %attr(755,root,root) %{_bindir}/avahi-set-host-name
824 %attr(755,root,root) %{_sbindir}/avahi-daemon
825 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
826 %dir %{_libdir}/%{name}
827 %{_libdir}/%{name}/service-types.db
828 #%%dir %{_datadir}/%{name}/introspection
829 #%%{_datadir}/%{name}/introspection/*.introspect
830 %{_datadir}/%{name}/avahi-service.dtd
831 %{_datadir}/%{name}/service-types
832 %{_datadir}/dbus-1/interfaces/org.freedesktop.Avahi.*.xml
834 %{_mandir}/man1/avahi-set-host-name.1*
835 %{_mandir}/man5/avahi-daemon.conf.5*
836 %{_mandir}/man5/avahi.hosts.5*
837 %{_mandir}/man5/avahi.service.5*
838 %{_mandir}/man8/avahi-daemon.8*
839 %{_mandir}/man8/avahi-dnsconfd.8*
840 %{_mandir}/man8/avahi-dnsconfd.action.8*
842 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
843 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
845 %if "%{pld_release}" != "ti"
847 %defattr(644,root,root,755)
848 %config(noreplace) %verify(not md5 mtime size) /etc/init/*.conf
852 %defattr(644,root,root,755)
853 %{systemdunitdir}/avahi-daemon.service
854 %{systemdunitdir}/avahi-daemon.socket
855 %{systemdunitdir}/avahi-dnsconfd.service
856 %{_datadir}/dbus-1/system-services/org.freedesktop.Avahi.service
859 %defattr(644,root,root,755)
860 %dir %{_sysconfdir}/avahi
861 %attr(755,root,root) %{_sysconfdir}/%{name}/avahi-autoipd.action
862 %config(noreplace) %verify(not md5 mtime size) /etc/dhclient-enter-hooks.d/avahi-autoipd
863 %config(noreplace) %verify(not md5 mtime size) /etc/dhclient-exit-hooks.d/avahi-autoipd
864 %attr(755,root,root) %{_sbindir}/avahi-autoipd
865 %{_mandir}/man8/avahi-autoipd.8*
866 %{_mandir}/man8/avahi-autoipd.action.8*
868 %files libs -f %{name}.lang
869 %defattr(644,root,root,755)
870 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
871 %attr(755,root,root) %ghost %{_libdir}/libavahi-client.so.3
872 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
873 %attr(755,root,root) %ghost %{_libdir}/libavahi-common.so.3
874 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
875 %attr(755,root,root) %ghost %{_libdir}/libavahi-core.so.7
876 # common for -discover*
877 %dir %{_datadir}/%{name}
878 %dir %{_datadir}/%{name}/interfaces
881 %defattr(644,root,root,755)
882 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
883 %attr(755,root,root) %{_libdir}/libavahi-client.so
884 %attr(755,root,root) %{_libdir}/libavahi-common.so
885 %attr(755,root,root) %{_libdir}/libavahi-core.so
886 %{_includedir}/avahi-client
887 %{_includedir}/avahi-common
888 %{_includedir}/avahi-core
889 %{_pkgconfigdir}/avahi-client.pc
890 %{_pkgconfigdir}/avahi-core.pc
893 %defattr(644,root,root,755)
894 %{_libdir}/libavahi-client.a
895 %{_libdir}/libavahi-common.a
896 %{_libdir}/libavahi-core.a
900 %defattr(644,root,root,755)
901 %attr(755,root,root) %{_libdir}/libavahi-ui.so.*.*.*
902 %attr(755,root,root) %ghost %{_libdir}/libavahi-ui.so.0
904 %attr(755,root,root) %{_bindir}/bshell
905 %attr(755,root,root) %{_bindir}/bssh
906 %attr(755,root,root) %{_bindir}/bvnc
907 %{_mandir}/man1/bshell.1*
908 %{_mandir}/man1/bssh.1*
909 %{_mandir}/man1/bvnc.1*
910 %{_desktopdir}/bssh.desktop
911 %{_desktopdir}/bvnc.desktop
915 %defattr(644,root,root,755)
916 %attr(755,root,root) %{_libdir}/libavahi-ui.so
917 %{_pkgconfigdir}/avahi-ui.pc
920 %defattr(644,root,root,755)
921 %{_libdir}/libavahi-ui.a
924 %if %{with gtk} || %{with gtk3}
925 %files ui-devel-common
926 %defattr(644,root,root,755)
927 %{_includedir}/avahi-ui
932 %defattr(644,root,root,755)
933 %attr(755,root,root) %{_bindir}/bshell
934 %attr(755,root,root) %{_bindir}/bssh
935 %attr(755,root,root) %{_bindir}/bvnc
936 %attr(755,root,root) %{_libdir}/libavahi-ui-gtk3.so.*.*.*
937 %attr(755,root,root) %ghost %{_libdir}/libavahi-ui-gtk3.so.0
938 %{_mandir}/man1/bshell.1*
939 %{_mandir}/man1/bssh.1*
940 %{_mandir}/man1/bvnc.1*
941 %{_desktopdir}/bssh.desktop
942 %{_desktopdir}/bvnc.desktop
945 %defattr(644,root,root,755)
946 %attr(755,root,root) %{_libdir}/libavahi-ui-gtk3.so
947 %{_pkgconfigdir}/avahi-ui-gtk3.pc
949 %files ui-gtk3-static
950 %defattr(644,root,root,755)
951 %{_libdir}/libavahi-ui-gtk3.a
954 %files compat-libdns_sd
955 %defattr(644,root,root,755)
956 %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.*
957 %attr(755,root,root) %ghost %{_libdir}/libdns_sd.so.1
959 %files compat-libdns_sd-devel
960 %defattr(644,root,root,755)
961 %attr(755,root,root) %{_libdir}/libdns_sd.so
962 %{_includedir}/avahi-compat-libdns_sd
963 %{_includedir}/dns_sd.h
964 %{_pkgconfigdir}/avahi-compat-libdns_sd.pc
966 %files compat-libdns_sd-static
967 %defattr(644,root,root,755)
968 %{_libdir}/libdns_sd.a
971 %defattr(644,root,root,755)
972 %attr(755,root,root) %{_libdir}/libhowl.so.*.*.*
973 %attr(755,root,root) %ghost %{_libdir}/libhowl.so.0
975 %files compat-howl-devel
976 %defattr(644,root,root,755)
977 %attr(755,root,root) %{_libdir}/libhowl.so
978 %{_includedir}/avahi-compat-howl
979 %{_pkgconfigdir}/avahi-compat-howl.pc
980 %{_pkgconfigdir}/howl.pc
982 %files compat-howl-static
983 %defattr(644,root,root,755)
986 %files -n python-avahi
987 %defattr(644,root,root,755)
991 %files -n dotnet-avahi
992 %defattr(644,root,root,755)
993 %{_prefix}/lib/mono/gac/avahi-sharp
995 %files -n dotnet-avahi-devel
996 %defattr(644,root,root,755)
997 %{_prefix}/lib/mono/avahi-sharp
998 %{_prefix}/lib/monodoc/sources/avahi-sharp-docs.*
999 %{_pkgconfigdir}/avahi-sharp.pc
1001 %files -n dotnet-avahi-ui
1002 %defattr(644,root,root,755)
1003 %{_prefix}/lib/mono/gac/avahi-ui-sharp
1005 %files -n dotnet-avahi-ui-devel
1006 %defattr(644,root,root,755)
1007 %{_prefix}/lib/mono/avahi-ui-sharp
1008 %{_prefix}/lib/monodoc/sources/avahi-ui-sharp-docs.*
1009 %{_pkgconfigdir}/avahi-ui-sharp.pc
1013 %defattr(644,root,root,755)
1014 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
1015 %attr(755,root,root) %ghost %{_libdir}/libavahi-glib.so.1
1018 %defattr(644,root,root,755)
1019 %attr(755,root,root) %{_libdir}/libavahi-glib.so
1020 %{_includedir}/avahi-glib
1021 %{_pkgconfigdir}/avahi-glib.pc
1024 %defattr(644,root,root,755)
1025 %{_libdir}/libavahi-glib.a
1028 %defattr(644,root,root,755)
1029 %attr(755,root,root) %{_libdir}/libavahi-gobject.so.*.*.*
1030 %attr(755,root,root) %ghost %{_libdir}/libavahi-gobject.so.0
1031 %{_libdir}/girepository-1.0/Avahi-0.6.typelib
1032 %{_libdir}/girepository-1.0/AvahiCore-0.6.typelib
1034 %files gobject-devel
1035 %defattr(644,root,root,755)
1036 %attr(755,root,root) %{_libdir}/libavahi-gobject.so
1037 %{_includedir}/avahi-gobject
1038 %{_pkgconfigdir}/avahi-gobject.pc
1039 %{_datadir}/gir-1.0/Avahi-0.6.gir
1040 %{_datadir}/gir-1.0/AvahiCore-0.6.gir
1042 %files gobject-static
1043 %defattr(644,root,root,755)
1044 %{_libdir}/libavahi-gobject.a
1048 %defattr(644,root,root,755)
1049 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
1050 %attr(755,root,root) %ghost %{_libdir}/libavahi-qt3.so.1
1053 %defattr(644,root,root,755)
1054 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
1055 %{_includedir}/avahi-qt3
1056 %{_pkgconfigdir}/avahi-qt3.pc
1059 %defattr(644,root,root,755)
1060 %{_libdir}/libavahi-qt3.a
1065 %defattr(644,root,root,755)
1066 %attr(755,root,root) %{_libdir}/libavahi-qt4.so.*.*.*
1067 %attr(755,root,root) %ghost %{_libdir}/libavahi-qt4.so.1
1070 %defattr(644,root,root,755)
1071 %attr(755,root,root) %{_libdir}/libavahi-qt4.so
1072 %{_includedir}/avahi-qt4
1073 %{_pkgconfigdir}/avahi-qt4.pc
1076 %defattr(644,root,root,755)
1077 %{_libdir}/libavahi-qt4.a
1081 %defattr(644,root,root,755)
1082 %attr(755,root,root) %{_bindir}/avahi-bookmarks
1083 %{_mandir}/man1/avahi-bookmarks.1*
1087 %defattr(644,root,root,755)
1088 %attr(755,root,root) %{_bindir}/avahi-discover
1089 %{py_sitedir}/avahi_discover
1090 %{_datadir}/%{name}/interfaces/avahi-discover.ui
1091 %{_desktopdir}/avahi-discover.desktop
1092 %{_pixmapsdir}/avahi.png
1093 %{_mandir}/man1/avahi-discover.1*
1097 %files discover-standalone
1098 %defattr(644,root,root,755)
1099 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
1100 %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade
1104 %defattr(644,root,root,755)
1105 %attr(755,root,root) %{_bindir}/avahi-browse
1106 %attr(755,root,root) %{_bindir}/avahi-browse-domains
1107 %attr(755,root,root) %{_bindir}/avahi-publish
1108 %attr(755,root,root) %{_bindir}/avahi-publish-address
1109 %attr(755,root,root) %{_bindir}/avahi-publish-service
1110 %attr(755,root,root) %{_bindir}/avahi-resolve
1111 %attr(755,root,root) %{_bindir}/avahi-resolve-address
1112 %attr(755,root,root) %{_bindir}/avahi-resolve-host-name
1113 %{_mandir}/man1/avahi-browse.1*
1114 %{_mandir}/man1/avahi-browse-domains.1*
1115 %{_mandir}/man1/avahi-publish.1*
1116 %{_mandir}/man1/avahi-publish-address.1*
1117 %{_mandir}/man1/avahi-publish-service.1*
1118 %{_mandir}/man1/avahi-resolve.1*
1119 %{_mandir}/man1/avahi-resolve-address.1*
1120 %{_mandir}/man1/avahi-resolve-host-name.1*