2 # - finish with_apidocs
3 # - qt and Qt packages make file collisions on case insensitive filesystems,
4 # consider adding version suffix to either of the pckages
7 %bcond_with apidocs # build API documentation
8 %bcond_without dotnet # build without dotnet bindings
9 %bcond_without gtk # build without GTK+
10 %bcond_without gtk3 # build without GTK+3
11 %bcond_without pygtk # build without PyGTK
12 %bcond_without qt # build without (any) qt bindings
13 %bcond_without qt3 # build without qt3 bindings
14 %bcond_without qt4 # build without qt4 bindings
16 %ifnarch %{ix86} %{x8664} alpha arm hppa ia64 mips ppc s390 s390x sparc sparcv9
28 # see http://lists.pld-linux.org/mailman/pipermail/pld-devel-pl/2012-October/155984.html
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: 2f22745b8f7368ad5a0a3fddac343f2d
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 Patch7: 01_%{name}-daemon.conf.patch
54 Patch8: %{name}-core-reserve-space-for-record-data-when-size-estimate.patch
55 URL: http://avahi.org/
56 BuildRequires: autoconf >= 2.63
57 BuildRequires: automake >= 1:1.11
58 BuildRequires: dbus-devel >= 0.92
60 BuildRequires: doxygen
61 # for the 'dot' tool used by doxygen
62 BuildRequires: graphviz
64 BuildRequires: expat-devel
65 BuildRequires: gdbm-devel
66 BuildRequires: gettext-devel
67 BuildRequires: gobject-introspection-devel >= 0.9.5
69 BuildRequires: glib2-devel >= 1:2.12.2
70 BuildRequires: gtk+2-devel >= 2:2.14.0
73 BuildRequires: glib2-devel >= 1:2.28.0
74 BuildRequires: gtk+3-devel >= 3.0.0
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.626
98 Requires(post,preun): /sbin/chkconfig
99 Requires(post,preun,postun): systemd-units >= 38
100 Requires: %{name}-libs = %{version}-%{release}
101 Requires: dbus >= 0.92
102 Requires: libdaemon >= 0.14
103 Requires: rc-scripts >= 0.4.3
104 Requires: systemd-units >= 38
105 Suggests: nss_mdns >= 0.10-2
106 Provides: group(avahi)
107 Provides: user(avahi)
108 Obsoletes: avahi-systemd
109 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
112 Avahi is an implementation the DNS Service Discovery and Multicast DNS
113 specifications for Zeroconf Computing. It uses D-BUS for communication
114 between user applications and a system daemon.
116 %description -l pl.UTF-8
117 Avahi jest implementacją specyfikacji DNS Service Discovery i
118 Multicast DNS dla Zeroconf Computing. Używa D-BUSa dla komunikacji
119 pomiędzy programami użytkownika a demonem systemowym.
122 Summary: Upstart jobs description for Avahi daemons
123 Summary(pl.UTF-8): Opis zadań Upstart dla demonów Avahi
125 Requires: %{name} = %{version}-%{release}
126 Requires: upstart >= 0.6
127 Conflicts: syslog-ng-upstart < 3.2.4-1
130 Upstart jobs description for Avahi daemons.
132 %description upstart -l pl.UTF-8
133 Opis zadań Upstart dla demonów Avahi.
136 Summary: IPv4LL network address configuration daemon
137 Summary(pl.UTF-8): Demon configurujący adresy IPv4LL
138 Group: Networking/Daemons
139 Requires(postun): /usr/sbin/groupdel
140 Requires(postun): /usr/sbin/userdel
141 Requires(pre): /bin/id
142 Requires(pre): /usr/bin/getgid
143 Requires(pre): /usr/sbin/groupadd
144 Requires(pre): /usr/sbin/useradd
145 Provides: group(avahi)
146 Provides: user(avahi)
149 avahi-autoipd implements IPv4LL, "Dynamic Configuration of IPv4 Link-
150 Local Addresses" (IETF RFC3927), a protocol for automatic IP address
151 configuration from the link-local 169.254.0.0/16 range without the
152 need for a central server. It is primarily intended to be used in
153 ad-hoc networks which lack a DHCP server.
155 IPv4LL is part of the Zeroconf stack.
157 %description autoipd -l pl.UTF-8
158 avahi-autoipd jest implementacją IPv4LL, protokołu umożliwiającego
159 automatyczną konfigurację adresu z zakresu 169.254.0.0/16 bez potrzeby
160 użycia centralnego serwera. Jego głównym zastosowaniem są sieci
161 ad-hoc, w których brakuje serwera DHCP.
163 IPv4LL jest częścią stosu Zeroconf.
166 Summary: Avahi client, common and core libraries
167 Summary(pl.UTF-8): Biblioteki Avahi: klienta, wspólna i główna
171 Avahi client, common and core libraries.
173 %description libs -l pl.UTF-8
174 Biblioteki Avahi: klienta, wspólna i główna.
177 Summary: Header files for Avahi library
178 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi
179 Group: Development/Libraries
180 Requires: %{name}-libs = %{version}-%{release}
181 Requires: dbus-devel >= 0.92
182 Requires: expat-devel
185 This is the package containing the header files for Avahi library.
187 %description devel -l pl.UTF-8
188 Ten pakiet zawiera pliki nagłówkowe biblioteki Avahi.
191 Summary: Static Avahi library
192 Summary(pl.UTF-8): Statyczna biblioteka Avahi
193 Group: Development/Libraries
194 Requires: %{name}-devel = %{version}-%{release}
197 Static Avahi library.
199 %description static -l pl.UTF-8
200 Statyczna biblioteka Avahi.
203 Summary: Avahi UI library
204 Summary(pl.UTF-8): Biblioteka Avahi UI
206 Requires: %{name}-libs = %{version}-%{release}
207 Requires: gtk+2 >= 2:2.14.0
210 Common GTK+ UI support library for Avahi.
212 %description ui -l pl.UTF-8
213 Biblioteka wspólnego interfejsu użytkownika GTK+ dla Avahi.
216 Summary: Header files for Avahi UI library
217 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi UI
218 Group: X11/Development/Libraries
219 Requires: %{name}-devel = %{version}-%{release}
220 Requires: %{name}-ui = %{version}-%{release}
221 Requires: %{name}-ui-devel-common = %{version}-%{release}
222 Requires: gtk+2-devel >= 2:2.14.0
224 %description ui-devel
225 Header files for Avahi UI library.
227 %description ui-devel -l pl.UTF-8
228 Pliki nagłówkowe biblioteki Avahi UI.
231 Summary: Static Avahi UI library
232 Summary(pl.UTF-8): Statyczna biblioteka Avahi UI
233 Group: X11/Development/Libraries
234 Requires: %{name}-ui-devel = %{version}-%{release}
236 %description ui-static
237 Static Avahi UI library.
239 %description ui-static -l pl.UTF-8
240 Statyczna biblioteka Avahi UI.
242 %package ui-devel-common
243 Summary: Header files for Avahi UI library
244 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi UI
245 Group: X11/Development/Libraries
246 Requires: %{name}-devel = %{version}-%{release}
248 %description ui-devel-common
249 Header files for Avahi UI library.
251 %description ui-devel-common -l pl.UTF-8
252 Pliki nagłówkowe biblioteki Avahi GTK+ UI.
255 Summary: Avahi UI library - GTK+ 3.x version
256 Summary(pl.UTF-8): Biblioteka Avahi UI - wersja dla GTK+ 3.x
258 Requires: %{name}-libs = %{version}-%{release}
261 Common GTK+ 3.x UI support library for Avahi.
263 %description ui-gtk3 -l pl.UTF-8
264 Biblioteka wspólnego interfejsu użytkownika GTK+ 3.x dla Avahi.
266 %package ui-gtk3-devel
267 Summary: Header files for Avahi UI library - GTK+ 3.x version
268 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi UI - wersja dla GTK+ 3.x
269 Group: X11/Development/Libraries
270 Requires: %{name}-devel = %{version}-%{release}
271 Requires: %{name}-ui-devel-common = %{version}-%{release}
272 Requires: %{name}-ui-gtk3 = %{version}-%{release}
274 %description ui-gtk3-devel
275 Header files for Avahi GTK+ 3.x UI library.
277 %description ui-devel -l pl.UTF-8
278 Pliki nagłówkowe biblioteki Avahi GTK+ 3.x UI.
280 %package ui-gtk3-static
281 Summary: Static Avahi UI library - GTK+ 3.x version
282 Summary(pl.UTF-8): Statyczna biblioteka Avahi UI - wersja GTK+ 3.x
283 Group: X11/Development/Libraries
284 Requires: %{name}-ui-gtk3-devel = %{version}-%{release}
286 %description ui-gtk3-static
287 Static Avahi GTK+ 3.x UI library.
289 %description ui-gtk3-static -l pl.UTF-8
290 Statyczna biblioteka Avahi GTK+ 3.x UI.
292 %package compat-libdns_sd
293 Summary: Avahi Bonjour compat library
294 Summary(pl.UTF-8): Biblioteka Avahi zgodna z Bonjour
296 Requires: %{name}-libs = %{version}-%{release}
297 Provides: mdns-bonjour
298 Obsoletes: mDNSResponder-libs
300 %description compat-libdns_sd
301 Avahi Bonjour compat library.
303 %description compat-libdns_sd -l pl.UTF-8
304 Biblioteka Avahi zgodna z Bonjour.
306 %package compat-libdns_sd-devel
307 Summary: Header files for Avahi Bonjour compat library
308 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Bonjour
309 Group: Development/Libraries
310 Requires: %{name}-compat-libdns_sd = %{version}-%{release}
311 Requires: %{name}-devel = %{version}-%{release}
312 Provides: mdns-bonjour-devel
313 Obsoletes: mDNSResponder-devel
315 %description compat-libdns_sd-devel
316 Header files for Avahi Bonjour compat library.
318 %description compat-libdns_sd-devel -l pl.UTF-8
319 Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Bonjour.
321 %package compat-libdns_sd-static
322 Summary: Static Avahi Bonjour compat library
323 Summary(pl.UTF-8): Statyczna biblioteka Avahi zgodna z Bonjour
324 Group: Development/Libraries
325 Requires: %{name}-compat-libdns_sd-devel = %{version}-%{release}
326 Provides: mdns-bonjour-static
328 %description compat-libdns_sd-static
329 Static Avahi Bonjour compat library.
331 %description compat-libdns_sd-static -l pl.UTF-8
332 Statyczna biblioteka Avahi zgodna z Bonjour.
335 Summary: Avahi Howl compat library
336 Summary(pl.UTF-8): Biblioteka Avahi zgodna z Howl
338 Provides: mdns-howl-libs
341 %description compat-howl
342 Avahi Howl compat library.
344 %description compat-howl -l pl.UTF-8
345 Biblioteka Avahi zgodna z Howl.
347 %package compat-howl-devel
348 Summary: Header files for Avahi Howl compat library
349 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Howl
350 Group: Development/Libraries
351 Requires: %{name}-compat-howl = %{version}-%{release}
352 Requires: %{name}-devel = %{version}-%{release}
353 Provides: mdns-howl-devel
354 Obsoletes: howl-devel
356 %description compat-howl-devel
357 Header files for Avahi Howl compat library.
359 %description compat-howl-devel -l pl.UTF-8
360 Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Howl.
362 %package compat-howl-static
363 Summary: Static Avahi Howl compat library
364 Summary(pl.UTF-8): Statyczna biblioteka Avahi zgodna z Howl
365 Group: Development/Libraries
366 Requires: %{name}-compat-howl-devel = %{version}-%{release}
367 Provides: mdns-howl-static
368 Obsoletes: howl-static
370 %description compat-howl-static
371 Static Avahi Howl compat library.
373 %description compat-howl-static -l pl.UTF-8
374 Statyczna biblioteka Avahi zgodna z Howl.
377 Summary: Avahi GLib library bindings
378 Summary(pl.UTF-8): Wiązania Avahi dla bibioteki GLib
382 Avahi GLib library bindings.
384 %description glib -l pl.UTF-8
385 Wiązania Avahi dla bibioteki GLib.
388 Summary: Header files for Avahi GLib library bindings
389 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki GLib
390 Group: Development/Libraries
391 Requires: %{name}-devel = %{version}-%{release}
392 Requires: %{name}-glib = %{version}-%{release}
393 Requires: glib2-devel >= 1:2.12.2
395 %description glib-devel
396 This is the package containing the header files for Avahi-glib
399 %description glib-devel -l pl.UTF-8
400 Ten pakiet zawiera pliki nagłówkowe biblioteki Avahi-glib.
403 Summary: Static Avahi GLib library
404 Summary(pl.UTF-8): Statyczna biblioteka Avahi GLib
405 Group: Development/Libraries
406 Requires: %{name}-glib-devel = %{version}-%{release}
408 %description glib-static
409 Static Avahi GLib library.
411 %description glib-static -l pl.UTF-8
412 Statyczna biblioteka Avahi GLib.
415 Summary: Avahi GObject interface
416 Summary(pl.UTF-8): Interfejs GObject do Avahi
420 Avahi GObject interface.
422 %description gobject -l pl.UTF-8
423 Interfejs GObject do Avahi.
425 %package gobject-devel
426 Summary: Header files for Avahi GObject interface
427 Summary(pl.UTF-8): Pliki nagłówkowe interfejsu GObject do Avahi
428 Group: Development/Libraries
429 Requires: %{name}-devel = %{version}-%{release}
430 Requires: %{name}-gobject = %{version}-%{release}
431 Requires: glib2-devel >= 1:2.12.2
433 %description gobject-devel
434 This is the package containing the header files for Avahi GObject
437 %description gobject-devel -l pl.UTF-8
438 Ten pakiet zawiera pliki nagłówkowe interfejsu GObject do Avahi.
440 %package gobject-static
441 Summary: Static Avahi GObject library
442 Summary(pl.UTF-8): Statyczna biblioteka Avahi GObject
443 Group: Development/Libraries
444 Requires: %{name}-gobject-devel = %{version}-%{release}
446 %description gobject-static
447 Static Avahi GObject library.
449 %description gobject-static -l pl.UTF-8
450 Statyczna biblioteka Avahi GObject.
453 Summary: Avahi Qt 3 library bindings
454 Summary(pl.UTF-8): Wiązania Avahi dla biblioteki Qt 3
456 Requires: %{name}-libs = %{version}-%{release}
460 Avahi Qt 3 library bindings.
462 %description qt -l pl.UTF-8
463 Wiązania Avahi dla biblioteki Qt 3.
466 Summary: Header files for Avahi Qt 3 library bindings
467 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 3
468 Group: Development/Libraries
469 Requires: %{name}-devel = %{version}-%{release}
470 Requires: %{name}-qt = %{version}-%{release}
471 Requires: qt-devel >= 1:3.0
472 Obsoletes: avahi-qt3-devel
474 %description qt-devel
475 Header files for Avahi Qt 3 library bindings.
477 %description qt-devel -l pl.UTF-8
478 Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 3.
481 Summary: Static Avahi Qt 3 library
482 Summary(pl.UTF-8): Statyczna biblioteka Avahi Qt 3
483 Group: Development/Libraries
484 Requires: %{name}-qt-devel = %{version}-%{release}
485 Obsoletes: avahi-qt3-static
487 %description qt-static
488 Static Avahi Qt 3 library.
490 %description qt-static -l pl.UTF-8
491 Statyczna biblioteka Avahi Qt 3.
494 Summary: Avahi Qt 4 library bindings
495 Summary(pl.UTF-8): Wiązania Avahi dla biblioteki Qt 4
497 Requires: %{name}-libs = %{version}-%{release}
500 Avahi Qt 4 library bindings.
502 %description Qt -l pl.UTF-8
503 Wiązania Avahi dla biblioteki Qt 4.
506 Summary: Header files for Avahi Qt 4 library bindings
507 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 4
508 Group: Development/Libraries
509 Requires: %{name}-Qt = %{version}-%{release}
510 Requires: %{name}-devel = %{version}-%{release}
512 %description Qt-devel
513 Header files for Avahi Qt 4 library bindings.
515 %description Qt-devel -l pl.UTF-8
516 Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 4.
519 Summary: Static Avahi Qt 4 library
520 Summary(pl.UTF-8): Statyczna biblioteka Avahi Qt 4
521 Group: Development/Libraries
522 Requires: %{name}-Qt-devel = %{version}-%{release}
524 %description Qt-static
525 Static Avahi Qt 4 library.
527 %description Qt-static -l pl.UTF-8
528 Statyczna biblioteka Avahi Qt 4.
530 %package -n python-avahi
531 Summary: Avahi Python bindings
532 Summary(pl.UTF-8): Wiązania Avahi dla Pythona
533 Group: Development/Languages/Python
534 Requires: %{name}-libs = %{version}-%{release}
535 Requires: python-dbus >= 0.71
537 %description -n python-avahi
538 Avahi Python bindings.
540 %description -n python-avahi -l pl.UTF-8
541 Wiązania Avahi dla Pythona.
543 %package -n dotnet-avahi
544 Summary: Avahi MONO bindings
545 Summary(pl.UTF-8): Wiązania Avahi dla MONO
547 Requires: %{name}-libs = %{version}-%{release}
549 %description -n dotnet-avahi
552 %description -n dotnet-avahi -l pl.UTF-8
553 Wiązania Avahi dla MONO.
555 %package -n dotnet-avahi-devel
556 Summary: Development files for MONO Avahi bindings
557 Summary(pl.UTF-8): Pliki rozwojowe wiązań Avahi dla MONO
558 Group: Development/Libraries
559 Requires: dotnet-avahi = %{version}-%{release}
560 Requires: monodoc >= 2.6
562 %description -n dotnet-avahi-devel
563 Development files for MONO Avahi bindings.
565 %description -n dotnet-avahi-devel -l pl.UTF-8
566 Pliki rozwojowe wiązań Avahi dla MONO.
568 %package -n dotnet-avahi-ui
569 Summary: Avahi UI MONO bindings
570 Summary(pl.UTF-8): Wiązania Avahi UI dla MONO
572 Requires: %{name}-ui = %{version}-%{release}
573 Requires: dotnet-avahi = %{version}-%{release}
575 %description -n dotnet-avahi-ui
576 Avahi UI MONO bindings.
578 %description -n dotnet-avahi-ui -l pl.UTF-8
579 Wiązania Avahi UI dla MONO.
581 %package -n dotnet-avahi-ui-devel
582 Summary: Development files for MONO Avahi UI bindings
583 Summary(pl.UTF-8): Pliki rozwojowe wiązań Avahi UI dla MONO
584 Group: X11/Development/Libraries
585 Requires: dotnet-avahi-ui = %{version}-%{release}
586 Requires: monodoc >= 2.6
588 %description -n dotnet-avahi-ui-devel
589 Development files for MONO Avahi UI bindings.
591 %description -n dotnet-avahi-ui-devel -l pl.UTF-8
592 Pliki rozwojowe wiązań Avahi UI dla MONO.
595 Summary: Miniature web server
596 Summary(pl.UTF-8): Miniaturowy serwer WWW
599 %description bookmarks
600 A Python based miniature web server that browses for mDNS/DNS-SD
601 services of type '_http._tcp' (i.e. web sites) and makes them
602 available as HTML links on http://localhost:8080/.
604 %description bookmarks -l pl.UTF-8
605 Napisany w Pythonie miniaturowy serwer WWW, pozwalający na
606 przeglądanie usług typu '_http._tcp' (np. stron WWW) i udostępniający
607 je jako odnośniki HTML na http://localhost:8080/.
610 Summary: Avahi Zeroconf browser
611 Summary(pl.UTF-8): Przeglądarka Zeroconf Avahi
613 Requires: python-avahi = %{version}-%{release}
614 Requires: python-pygtk-glade >= 2:2.9.6
616 %description discover
617 A tool for enumerating all available services on the local LAN
618 (python-pygtk implementation).
620 %description discover -l pl.UTF-8
621 Narzędzie wymieniające wszystkie dostępne usługi w sieci lokalnej LAN
622 (implementacja w python-pygtk).
624 %package discover-standalone
625 Summary: Avahi Zeroconf browser
626 Summary(pl.UTF-8): Przeglądarka Zeroconf Avahi
628 Requires: %{name}-glib = %{version}-%{release}
630 %description discover-standalone
631 GTK+ tool for enumerating all available services on the local LAN.
633 %description discover-standalone -l pl.UTF-8
634 Narzędzie GTK+ wymieniające wszystkie dostępne usługi w sieci lokalnej
638 Summary: Avahi CLI utilities
639 Summary(pl.UTF-8): Narzędzia CLI Avahi
643 Command line utilities using avahi-client.
645 %description utils -l pl.UTF-8
646 Narzędzia linii poleceń korzystające z avahi-client.
663 %{__aclocal} -I common
668 --disable-stack-protector \
669 --disable-silent-rules \
670 --enable-compat-libdns_sd \
671 --enable-compat-howl \
673 %{!?with_apidocs:--disable-doxygen-doc} \
674 %{!?with_gtk:--disable-gtk} \
675 %{!?with_gtk3:--disable-gtk3} \
676 %{!?with_pygtk:--disable-pygtk} \
677 %{!?with_qt3:--disable-qt3} \
678 %{!?with_qt4:--disable-qt4} \
679 %{!?with_dotnet:--disable-mono} \
680 %{!?with_dotnet:--disable-monodoc} \
681 --with-systemdsystemunitdir=%{systemdunitdir} \
682 --with-avahi-priv-access-group=adm \
683 --with-autoipd-user=avahi \
684 --with-autoipd-group=avahi
688 rm -rf $RPM_BUILD_ROOT
689 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d,/etc/init}
692 DESTDIR=$RPM_BUILD_ROOT \
693 pythondir=%{py_sitedir}
695 install -p %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
696 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
698 cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/init/avahi-daemon.conf
699 cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/init/avahi-dnsconfd.conf
701 ln -sf %{_includedir}/avahi-compat-libdns_sd/dns_sd.h \
702 $RPM_BUILD_ROOT%{_includedir}/dns_sd.h
704 ln -sf %{_pkgconfigdir}/avahi-compat-howl.pc \
705 $RPM_BUILD_ROOT%{_pkgconfigdir}/howl.pc
707 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
708 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
711 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/avahi-{browse-domains,publish-address,publish-service,resolve-address,resolve-host-name}.1
712 %{?with_gtk:%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/bvnc.1}
713 echo '.so avahi-browse.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-browse-domains.1
714 echo '.so avahi-publish.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-publish-address.1
715 echo '.so avahi-publish.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-publish-service.1
716 echo '.so avahi-resolve.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-resolve-address.1
717 echo '.so avahi-resolve.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-resolve-host-name.1
718 echo '.so bssh.1' > $RPM_BUILD_ROOT%{_mandir}/man1/bvnc.1
719 echo '.so bssh.1' > $RPM_BUILD_ROOT%{_mandir}/man1/bshell.1
721 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
726 rm -rf $RPM_BUILD_ROOT
729 %groupadd -g 165 -r -f avahi
730 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
733 %groupadd -g 165 -r -f avahi
734 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
737 /sbin/chkconfig --add %{name}-daemon
738 %service %{name}-daemon restart
739 /sbin/chkconfig --add %{name}-dnsconfd
740 %service %{name}-dnsconfd restart
741 %systemd_post avahi-daemon.service avahi-dnsconfd.service avahi-daemon.socket
744 if [ "$1" = "0" ]; then
745 %service -q %{name}-dnsconfd stop
746 /sbin/chkconfig --del %{name}-dnsconfd
747 %service -q %{name}-daemon stop
748 /sbin/chkconfig --del %{name}-daemon
750 %systemd_preun avahi-daemon.service avahi-dnsconfd.service avahi-daemon.socket
753 if [ "$1" = "0" ]; then
759 %triggerpostun -- avahi < 0.6.30-7
760 %systemd_trigger avahi-daemon.service avahi-dnsconfd.service avahi-daemon.socket
763 if [ "$1" = "0" ]; then
769 %upstart_post avahi-daemon
770 %upstart_post avahi-dnsconfd
773 %upstart_postun avahi-daemon
774 %upstart_postun avahi-dnsconfd
776 %post libs -p /sbin/ldconfig
777 %postun libs -p /sbin/ldconfig
779 %post ui -p /sbin/ldconfig
780 %postun ui -p /sbin/ldconfig
782 %post ui-gtk3 -p /sbin/ldconfig
783 %postun ui-gtk3 -p /sbin/ldconfig
785 %post compat-libdns_sd -p /sbin/ldconfig
786 %postun compat-libdns_sd -p /sbin/ldconfig
788 %post compat-howl -p /sbin/ldconfig
789 %postun compat-howl -p /sbin/ldconfig
791 %post glib -p /sbin/ldconfig
792 %postun glib -p /sbin/ldconfig
794 %post gobject -p /sbin/ldconfig
795 %postun gobject -p /sbin/ldconfig
797 %post qt -p /sbin/ldconfig
798 %postun qt -p /sbin/ldconfig
800 %post Qt -p /sbin/ldconfig
801 %postun Qt -p /sbin/ldconfig
804 %defattr(644,root,root,755)
805 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
807 %dir %{_sysconfdir}/avahi
808 %dir %{_sysconfdir}/avahi/services
809 %attr(755,root,root) %{_sysconfdir}/avahi/avahi-dnsconfd.action
810 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
811 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/hosts
812 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
813 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/sftp-ssh.service
814 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/avahi-dbus.conf
816 %{systemdunitdir}/avahi-daemon.service
817 %{systemdunitdir}/avahi-daemon.socket
818 %{systemdunitdir}/avahi-dnsconfd.service
819 %{_datadir}/dbus-1/system-services/org.freedesktop.Avahi.service
821 %attr(755,root,root) %{_bindir}/avahi-set-host-name
823 %attr(755,root,root) %{_sbindir}/avahi-daemon
824 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
825 %dir %{_libdir}/%{name}
826 %{_libdir}/%{name}/service-types.db
827 %{_datadir}/%{name}/avahi-service.dtd
828 %{_datadir}/%{name}/service-types
829 %{_datadir}/dbus-1/interfaces/org.freedesktop.Avahi.*.xml
831 %{_mandir}/man1/avahi-set-host-name.1*
832 %{_mandir}/man5/avahi-daemon.conf.5*
833 %{_mandir}/man5/avahi.hosts.5*
834 %{_mandir}/man5/avahi.service.5*
835 %{_mandir}/man8/avahi-daemon.8*
836 %{_mandir}/man8/avahi-dnsconfd.8*
837 %{_mandir}/man8/avahi-dnsconfd.action.8*
839 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
840 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
842 %if "%{pld_release}" != "ti"
844 %defattr(644,root,root,755)
845 %config(noreplace) %verify(not md5 mtime size) /etc/init/*.conf
849 %defattr(644,root,root,755)
850 %dir %{_sysconfdir}/avahi
851 %attr(755,root,root) %{_sysconfdir}/%{name}/avahi-autoipd.action
852 %config(noreplace) %verify(not md5 mtime size) /etc/dhclient-enter-hooks.d/avahi-autoipd
853 %config(noreplace) %verify(not md5 mtime size) /etc/dhclient-exit-hooks.d/avahi-autoipd
854 %attr(755,root,root) %{_sbindir}/avahi-autoipd
855 %{_mandir}/man8/avahi-autoipd.8*
856 %{_mandir}/man8/avahi-autoipd.action.8*
858 %files libs -f %{name}.lang
859 %defattr(644,root,root,755)
860 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
861 %attr(755,root,root) %ghost %{_libdir}/libavahi-client.so.3
862 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
863 %attr(755,root,root) %ghost %{_libdir}/libavahi-common.so.3
864 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
865 %attr(755,root,root) %ghost %{_libdir}/libavahi-core.so.7
866 # common for -discover*
867 %dir %{_datadir}/%{name}
868 %dir %{_datadir}/%{name}/interfaces
871 %defattr(644,root,root,755)
872 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
873 %attr(755,root,root) %{_libdir}/libavahi-client.so
874 %attr(755,root,root) %{_libdir}/libavahi-common.so
875 %attr(755,root,root) %{_libdir}/libavahi-core.so
876 %{_includedir}/avahi-client
877 %{_includedir}/avahi-common
878 %{_includedir}/avahi-core
879 %{_pkgconfigdir}/avahi-client.pc
880 %{_pkgconfigdir}/avahi-core.pc
883 %defattr(644,root,root,755)
884 %{_libdir}/libavahi-client.a
885 %{_libdir}/libavahi-common.a
886 %{_libdir}/libavahi-core.a
890 %defattr(644,root,root,755)
891 %attr(755,root,root) %{_libdir}/libavahi-ui.so.*.*.*
892 %attr(755,root,root) %ghost %{_libdir}/libavahi-ui.so.0
894 %attr(755,root,root) %{_bindir}/bshell
895 %attr(755,root,root) %{_bindir}/bssh
896 %attr(755,root,root) %{_bindir}/bvnc
897 %{_mandir}/man1/bshell.1*
898 %{_mandir}/man1/bssh.1*
899 %{_mandir}/man1/bvnc.1*
900 %{_desktopdir}/bssh.desktop
901 %{_desktopdir}/bvnc.desktop
905 %defattr(644,root,root,755)
906 %attr(755,root,root) %{_libdir}/libavahi-ui.so
907 %{_pkgconfigdir}/avahi-ui.pc
910 %defattr(644,root,root,755)
911 %{_libdir}/libavahi-ui.a
914 %if %{with gtk} || %{with gtk3}
915 %files ui-devel-common
916 %defattr(644,root,root,755)
917 %{_includedir}/avahi-ui
922 %defattr(644,root,root,755)
923 %attr(755,root,root) %{_bindir}/bshell
924 %attr(755,root,root) %{_bindir}/bssh
925 %attr(755,root,root) %{_bindir}/bvnc
926 %attr(755,root,root) %{_libdir}/libavahi-ui-gtk3.so.*.*.*
927 %attr(755,root,root) %ghost %{_libdir}/libavahi-ui-gtk3.so.0
928 %{_mandir}/man1/bshell.1*
929 %{_mandir}/man1/bssh.1*
930 %{_mandir}/man1/bvnc.1*
931 %{_desktopdir}/bssh.desktop
932 %{_desktopdir}/bvnc.desktop
935 %defattr(644,root,root,755)
936 %attr(755,root,root) %{_libdir}/libavahi-ui-gtk3.so
937 %{_pkgconfigdir}/avahi-ui-gtk3.pc
939 %files ui-gtk3-static
940 %defattr(644,root,root,755)
941 %{_libdir}/libavahi-ui-gtk3.a
944 %files compat-libdns_sd
945 %defattr(644,root,root,755)
946 %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.*
947 %attr(755,root,root) %ghost %{_libdir}/libdns_sd.so.1
949 %files compat-libdns_sd-devel
950 %defattr(644,root,root,755)
951 %attr(755,root,root) %{_libdir}/libdns_sd.so
952 %{_includedir}/avahi-compat-libdns_sd
953 %{_includedir}/dns_sd.h
954 %{_pkgconfigdir}/avahi-compat-libdns_sd.pc
956 %files compat-libdns_sd-static
957 %defattr(644,root,root,755)
958 %{_libdir}/libdns_sd.a
961 %defattr(644,root,root,755)
962 %attr(755,root,root) %{_libdir}/libhowl.so.*.*.*
963 %attr(755,root,root) %ghost %{_libdir}/libhowl.so.0
965 %files compat-howl-devel
966 %defattr(644,root,root,755)
967 %attr(755,root,root) %{_libdir}/libhowl.so
968 %{_includedir}/avahi-compat-howl
969 %{_pkgconfigdir}/avahi-compat-howl.pc
970 %{_pkgconfigdir}/howl.pc
972 %files compat-howl-static
973 %defattr(644,root,root,755)
976 %files -n python-avahi
977 %defattr(644,root,root,755)
981 %files -n dotnet-avahi
982 %defattr(644,root,root,755)
983 %{_prefix}/lib/mono/gac/avahi-sharp
985 %files -n dotnet-avahi-devel
986 %defattr(644,root,root,755)
987 %{_prefix}/lib/mono/avahi-sharp
988 %{_prefix}/lib/monodoc/sources/avahi-sharp-docs.*
989 %{_pkgconfigdir}/avahi-sharp.pc
991 %files -n dotnet-avahi-ui
992 %defattr(644,root,root,755)
993 %{_prefix}/lib/mono/gac/avahi-ui-sharp
995 %files -n dotnet-avahi-ui-devel
996 %defattr(644,root,root,755)
997 %{_prefix}/lib/mono/avahi-ui-sharp
998 %{_prefix}/lib/monodoc/sources/avahi-ui-sharp-docs.*
999 %{_pkgconfigdir}/avahi-ui-sharp.pc
1003 %defattr(644,root,root,755)
1004 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
1005 %attr(755,root,root) %ghost %{_libdir}/libavahi-glib.so.1
1008 %defattr(644,root,root,755)
1009 %attr(755,root,root) %{_libdir}/libavahi-glib.so
1010 %{_includedir}/avahi-glib
1011 %{_pkgconfigdir}/avahi-glib.pc
1014 %defattr(644,root,root,755)
1015 %{_libdir}/libavahi-glib.a
1018 %defattr(644,root,root,755)
1019 %attr(755,root,root) %{_libdir}/libavahi-gobject.so.*.*.*
1020 %attr(755,root,root) %ghost %{_libdir}/libavahi-gobject.so.0
1021 %{_libdir}/girepository-1.0/Avahi-0.6.typelib
1022 %{_libdir}/girepository-1.0/AvahiCore-0.6.typelib
1024 %files gobject-devel
1025 %defattr(644,root,root,755)
1026 %attr(755,root,root) %{_libdir}/libavahi-gobject.so
1027 %{_includedir}/avahi-gobject
1028 %{_pkgconfigdir}/avahi-gobject.pc
1029 %{_datadir}/gir-1.0/Avahi-0.6.gir
1030 %{_datadir}/gir-1.0/AvahiCore-0.6.gir
1032 %files gobject-static
1033 %defattr(644,root,root,755)
1034 %{_libdir}/libavahi-gobject.a
1038 %defattr(644,root,root,755)
1039 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
1040 %attr(755,root,root) %ghost %{_libdir}/libavahi-qt3.so.1
1043 %defattr(644,root,root,755)
1044 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
1045 %{_includedir}/avahi-qt3
1046 %{_pkgconfigdir}/avahi-qt3.pc
1049 %defattr(644,root,root,755)
1050 %{_libdir}/libavahi-qt3.a
1055 %defattr(644,root,root,755)
1056 %attr(755,root,root) %{_libdir}/libavahi-qt4.so.*.*.*
1057 %attr(755,root,root) %ghost %{_libdir}/libavahi-qt4.so.1
1060 %defattr(644,root,root,755)
1061 %attr(755,root,root) %{_libdir}/libavahi-qt4.so
1062 %{_includedir}/avahi-qt4
1063 %{_pkgconfigdir}/avahi-qt4.pc
1066 %defattr(644,root,root,755)
1067 %{_libdir}/libavahi-qt4.a
1071 %defattr(644,root,root,755)
1072 %attr(755,root,root) %{_bindir}/avahi-bookmarks
1073 %{_mandir}/man1/avahi-bookmarks.1*
1077 %defattr(644,root,root,755)
1078 %attr(755,root,root) %{_bindir}/avahi-discover
1079 %{py_sitedir}/avahi_discover
1080 %{_datadir}/%{name}/interfaces/avahi-discover.ui
1081 %{_desktopdir}/avahi-discover.desktop
1082 %{_pixmapsdir}/avahi.png
1083 %{_mandir}/man1/avahi-discover.1*
1087 %files discover-standalone
1088 %defattr(644,root,root,755)
1089 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
1090 %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade
1094 %defattr(644,root,root,755)
1095 %attr(755,root,root) %{_bindir}/avahi-browse
1096 %attr(755,root,root) %{_bindir}/avahi-browse-domains
1097 %attr(755,root,root) %{_bindir}/avahi-publish
1098 %attr(755,root,root) %{_bindir}/avahi-publish-address
1099 %attr(755,root,root) %{_bindir}/avahi-publish-service
1100 %attr(755,root,root) %{_bindir}/avahi-resolve
1101 %attr(755,root,root) %{_bindir}/avahi-resolve-address
1102 %attr(755,root,root) %{_bindir}/avahi-resolve-host-name
1103 %{_mandir}/man1/avahi-browse.1*
1104 %{_mandir}/man1/avahi-browse-domains.1*
1105 %{_mandir}/man1/avahi-publish.1*
1106 %{_mandir}/man1/avahi-publish-address.1*
1107 %{_mandir}/man1/avahi-publish-service.1*
1108 %{_mandir}/man1/avahi-resolve.1*
1109 %{_mandir}/man1/avahi-resolve-address.1*
1110 %{_mandir}/man1/avahi-resolve-host-name.1*