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 Patch0: %{name}-desktop.patch
45 Patch1: %{name}-glade.patch
46 Patch2: %{name}-destdir.patch
47 Patch3: %{name}-mono-dir.patch
48 Patch4: nss-mdns-package.patch
49 Patch5: %{name}-dhclient_hooks.patch
50 Patch6: %{name}-autoipd-sbin_ip.patch
51 Patch7: 01_%{name}-daemon.conf.patch
52 Patch8: %{name}-core-reserve-space-for-record-data-when-size-estimate.patch
53 Patch9: %{name}-gtk3.patch
54 URL: http://avahi.org/
55 BuildRequires: autoconf >= 2.63
56 BuildRequires: automake >= 1:1.11
57 BuildRequires: dbus-devel >= 0.92
59 BuildRequires: doxygen
60 # for the 'dot' tool used by doxygen
61 BuildRequires: graphviz
63 BuildRequires: expat-devel
64 BuildRequires: gdbm-devel
65 BuildRequires: gettext-tools
66 BuildRequires: gobject-introspection-devel >= 0.9.5
68 BuildRequires: glib2-devel >= 1:2.12.2
69 BuildRequires: gtk+2-devel >= 2:2.14.0
72 BuildRequires: glib2-devel >= 1:2.28.0
73 BuildRequires: gtk+3-devel >= 3.0.0
75 BuildRequires: intltool >= 0.35
76 BuildRequires: libcap-devel
77 BuildRequires: libdaemon-devel >= 0.14
78 BuildRequires: libtool
80 BuildRequires: dotnet-gtk-sharp2-devel >= 2.10
81 BuildRequires: mono-csharp
82 BuildRequires: monodoc >= 2.6
84 BuildRequires: pkgconfig
85 BuildRequires: python >= 1:2.4
86 BuildRequires: python-dbus >= 0.71
87 %{?with_pygtk:BuildRequires: python-pygtk-devel >= 2:2.9.6}
89 BuildRequires: qt-devel >= 1:3.0
92 BuildRequires: QtCore-devel >= 4.0.0
93 BuildRequires: qt4-build
95 BuildRequires: rpm-pythonprov
96 BuildRequires: rpmbuild(macros) >= 1.626
97 Requires(post,preun): /sbin/chkconfig
98 Requires(post,preun,postun): systemd-units >= 38
99 Requires: %{name}-libs = %{version}-%{release}
100 Requires: dbus >= 0.92
101 Requires: libdaemon >= 0.14
102 Requires: rc-scripts >= 0.4.3
103 Requires: systemd-units >= 38
104 Suggests: nss_mdns >= 0.10-2
105 Provides: group(avahi)
106 Provides: user(avahi)
107 Obsoletes: avahi-systemd
108 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
111 Avahi is an implementation the DNS Service Discovery and Multicast DNS
112 specifications for Zeroconf Computing. It uses D-BUS for communication
113 between user applications and a system daemon.
115 %description -l pl.UTF-8
116 Avahi jest implementacją specyfikacji DNS Service Discovery i
117 Multicast DNS dla Zeroconf Computing. Używa D-BUSa dla komunikacji
118 pomiędzy programami użytkownika a demonem systemowym.
121 Summary: IPv4LL network address configuration daemon
122 Summary(pl.UTF-8): Demon configurujący adresy IPv4LL
123 Group: Networking/Daemons
124 Requires(postun): /usr/sbin/groupdel
125 Requires(postun): /usr/sbin/userdel
126 Requires(pre): /bin/id
127 Requires(pre): /usr/bin/getgid
128 Requires(pre): /usr/sbin/groupadd
129 Requires(pre): /usr/sbin/useradd
130 Provides: group(avahi)
131 Provides: user(avahi)
134 avahi-autoipd implements IPv4LL, "Dynamic Configuration of IPv4 Link-
135 Local Addresses" (IETF RFC3927), a protocol for automatic IP address
136 configuration from the link-local 169.254.0.0/16 range without the
137 need for a central server. It is primarily intended to be used in
138 ad-hoc networks which lack a DHCP server.
140 IPv4LL is part of the Zeroconf stack.
142 %description autoipd -l pl.UTF-8
143 avahi-autoipd jest implementacją IPv4LL, protokołu umożliwiającego
144 automatyczną konfigurację adresu z zakresu 169.254.0.0/16 bez potrzeby
145 użycia centralnego serwera. Jego głównym zastosowaniem są sieci
146 ad-hoc, w których brakuje serwera DHCP.
148 IPv4LL jest częścią stosu Zeroconf.
151 Summary: Avahi client, common and core libraries
152 Summary(pl.UTF-8): Biblioteki Avahi: klienta, wspólna i główna
156 Avahi client, common and core libraries.
158 %description libs -l pl.UTF-8
159 Biblioteki Avahi: klienta, wspólna i główna.
162 Summary: Header files for Avahi library
163 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi
164 Group: Development/Libraries
165 Requires: %{name}-libs = %{version}-%{release}
166 Requires: dbus-devel >= 0.92
167 Requires: expat-devel
170 This is the package containing the header files for Avahi library.
172 %description devel -l pl.UTF-8
173 Ten pakiet zawiera pliki nagłówkowe biblioteki Avahi.
176 Summary: Static Avahi library
177 Summary(pl.UTF-8): Statyczna biblioteka Avahi
178 Group: Development/Libraries
179 Requires: %{name}-devel = %{version}-%{release}
182 Static Avahi library.
184 %description static -l pl.UTF-8
185 Statyczna biblioteka Avahi.
188 Summary: Avahi UI library
189 Summary(pl.UTF-8): Biblioteka Avahi UI
191 Requires: %{name}-libs = %{version}-%{release}
192 Requires: gtk+2 >= 2:2.14.0
195 Common GTK+ UI support library for Avahi.
197 %description ui -l pl.UTF-8
198 Biblioteka wspólnego interfejsu użytkownika GTK+ dla Avahi.
201 Summary: Header files for Avahi UI library
202 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi UI
203 Group: X11/Development/Libraries
204 Requires: %{name}-devel = %{version}-%{release}
205 Requires: %{name}-ui = %{version}-%{release}
206 Requires: %{name}-ui-devel-common = %{version}-%{release}
207 Requires: gtk+2-devel >= 2:2.14.0
209 %description ui-devel
210 Header files for Avahi UI library.
212 %description ui-devel -l pl.UTF-8
213 Pliki nagłówkowe biblioteki Avahi UI.
216 Summary: Static Avahi UI library
217 Summary(pl.UTF-8): Statyczna biblioteka Avahi UI
218 Group: X11/Development/Libraries
219 Requires: %{name}-ui-devel = %{version}-%{release}
221 %description ui-static
222 Static Avahi UI library.
224 %description ui-static -l pl.UTF-8
225 Statyczna biblioteka Avahi UI.
227 %package ui-devel-common
228 Summary: Header files for Avahi UI library
229 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi UI
230 Group: X11/Development/Libraries
231 Requires: %{name}-devel = %{version}-%{release}
233 %description ui-devel-common
234 Header files for Avahi UI library.
236 %description ui-devel-common -l pl.UTF-8
237 Pliki nagłówkowe biblioteki Avahi GTK+ UI.
240 Summary: Avahi UI library - GTK+ 3.x version
241 Summary(pl.UTF-8): Biblioteka Avahi UI - wersja dla GTK+ 3.x
243 Requires: %{name}-libs = %{version}-%{release}
246 Common GTK+ 3.x UI support library for Avahi.
248 %description ui-gtk3 -l pl.UTF-8
249 Biblioteka wspólnego interfejsu użytkownika GTK+ 3.x dla Avahi.
251 %package ui-gtk3-devel
252 Summary: Header files for Avahi UI library - GTK+ 3.x version
253 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi UI - wersja dla GTK+ 3.x
254 Group: X11/Development/Libraries
255 Requires: %{name}-devel = %{version}-%{release}
256 Requires: %{name}-ui-devel-common = %{version}-%{release}
257 Requires: %{name}-ui-gtk3 = %{version}-%{release}
259 %description ui-gtk3-devel
260 Header files for Avahi GTK+ 3.x UI library.
262 %description ui-devel -l pl.UTF-8
263 Pliki nagłówkowe biblioteki Avahi GTK+ 3.x UI.
265 %package ui-gtk3-static
266 Summary: Static Avahi UI library - GTK+ 3.x version
267 Summary(pl.UTF-8): Statyczna biblioteka Avahi UI - wersja GTK+ 3.x
268 Group: X11/Development/Libraries
269 Requires: %{name}-ui-gtk3-devel = %{version}-%{release}
271 %description ui-gtk3-static
272 Static Avahi GTK+ 3.x UI library.
274 %description ui-gtk3-static -l pl.UTF-8
275 Statyczna biblioteka Avahi GTK+ 3.x UI.
277 %package compat-libdns_sd
278 Summary: Avahi Bonjour compat library
279 Summary(pl.UTF-8): Biblioteka Avahi zgodna z Bonjour
281 Requires: %{name}-libs = %{version}-%{release}
282 Provides: mdns-bonjour
283 Obsoletes: mDNSResponder-libs
285 %description compat-libdns_sd
286 Avahi Bonjour compat library.
288 %description compat-libdns_sd -l pl.UTF-8
289 Biblioteka Avahi zgodna z Bonjour.
291 %package compat-libdns_sd-devel
292 Summary: Header files for Avahi Bonjour compat library
293 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Bonjour
294 Group: Development/Libraries
295 Requires: %{name}-compat-libdns_sd = %{version}-%{release}
296 Requires: %{name}-devel = %{version}-%{release}
297 Provides: mdns-bonjour-devel
298 Obsoletes: mDNSResponder-devel
300 %description compat-libdns_sd-devel
301 Header files for Avahi Bonjour compat library.
303 %description compat-libdns_sd-devel -l pl.UTF-8
304 Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Bonjour.
306 %package compat-libdns_sd-static
307 Summary: Static Avahi Bonjour compat library
308 Summary(pl.UTF-8): Statyczna biblioteka Avahi zgodna z Bonjour
309 Group: Development/Libraries
310 Requires: %{name}-compat-libdns_sd-devel = %{version}-%{release}
311 Provides: mdns-bonjour-static
313 %description compat-libdns_sd-static
314 Static Avahi Bonjour compat library.
316 %description compat-libdns_sd-static -l pl.UTF-8
317 Statyczna biblioteka Avahi zgodna z Bonjour.
320 Summary: Avahi Howl compat library
321 Summary(pl.UTF-8): Biblioteka Avahi zgodna z Howl
323 Provides: mdns-howl-libs
326 %description compat-howl
327 Avahi Howl compat library.
329 %description compat-howl -l pl.UTF-8
330 Biblioteka Avahi zgodna z Howl.
332 %package compat-howl-devel
333 Summary: Header files for Avahi Howl compat library
334 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Howl
335 Group: Development/Libraries
336 Requires: %{name}-compat-howl = %{version}-%{release}
337 Requires: %{name}-devel = %{version}-%{release}
338 Provides: mdns-howl-devel
339 Obsoletes: howl-devel
341 %description compat-howl-devel
342 Header files for Avahi Howl compat library.
344 %description compat-howl-devel -l pl.UTF-8
345 Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Howl.
347 %package compat-howl-static
348 Summary: Static Avahi Howl compat library
349 Summary(pl.UTF-8): Statyczna biblioteka Avahi zgodna z Howl
350 Group: Development/Libraries
351 Requires: %{name}-compat-howl-devel = %{version}-%{release}
352 Provides: mdns-howl-static
353 Obsoletes: howl-static
355 %description compat-howl-static
356 Static Avahi Howl compat library.
358 %description compat-howl-static -l pl.UTF-8
359 Statyczna biblioteka Avahi zgodna z Howl.
362 Summary: Avahi GLib library bindings
363 Summary(pl.UTF-8): Wiązania Avahi dla bibioteki GLib
367 Avahi GLib library bindings.
369 %description glib -l pl.UTF-8
370 Wiązania Avahi dla bibioteki GLib.
373 Summary: Header files for Avahi GLib library bindings
374 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki GLib
375 Group: Development/Libraries
376 Requires: %{name}-devel = %{version}-%{release}
377 Requires: %{name}-glib = %{version}-%{release}
378 Requires: glib2-devel >= 1:2.12.2
380 %description glib-devel
381 This is the package containing the header files for Avahi-glib
384 %description glib-devel -l pl.UTF-8
385 Ten pakiet zawiera pliki nagłówkowe biblioteki Avahi-glib.
388 Summary: Static Avahi GLib library
389 Summary(pl.UTF-8): Statyczna biblioteka Avahi GLib
390 Group: Development/Libraries
391 Requires: %{name}-glib-devel = %{version}-%{release}
393 %description glib-static
394 Static Avahi GLib library.
396 %description glib-static -l pl.UTF-8
397 Statyczna biblioteka Avahi GLib.
400 Summary: Avahi GObject interface
401 Summary(pl.UTF-8): Interfejs GObject do Avahi
405 Avahi GObject interface.
407 %description gobject -l pl.UTF-8
408 Interfejs GObject do Avahi.
410 %package gobject-devel
411 Summary: Header files for Avahi GObject interface
412 Summary(pl.UTF-8): Pliki nagłówkowe interfejsu GObject do Avahi
413 Group: Development/Libraries
414 Requires: %{name}-devel = %{version}-%{release}
415 Requires: %{name}-gobject = %{version}-%{release}
416 Requires: glib2-devel >= 1:2.12.2
418 %description gobject-devel
419 This is the package containing the header files for Avahi GObject
422 %description gobject-devel -l pl.UTF-8
423 Ten pakiet zawiera pliki nagłówkowe interfejsu GObject do Avahi.
425 %package gobject-static
426 Summary: Static Avahi GObject library
427 Summary(pl.UTF-8): Statyczna biblioteka Avahi GObject
428 Group: Development/Libraries
429 Requires: %{name}-gobject-devel = %{version}-%{release}
431 %description gobject-static
432 Static Avahi GObject library.
434 %description gobject-static -l pl.UTF-8
435 Statyczna biblioteka Avahi GObject.
438 Summary: Avahi Qt 3 library bindings
439 Summary(pl.UTF-8): Wiązania Avahi dla biblioteki Qt 3
441 Requires: %{name}-libs = %{version}-%{release}
445 Avahi Qt 3 library bindings.
447 %description qt -l pl.UTF-8
448 Wiązania Avahi dla biblioteki Qt 3.
451 Summary: Header files for Avahi Qt 3 library bindings
452 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 3
453 Group: Development/Libraries
454 Requires: %{name}-devel = %{version}-%{release}
455 Requires: %{name}-qt = %{version}-%{release}
456 Requires: qt-devel >= 1:3.0
457 Obsoletes: avahi-qt3-devel
459 %description qt-devel
460 Header files for Avahi Qt 3 library bindings.
462 %description qt-devel -l pl.UTF-8
463 Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 3.
466 Summary: Static Avahi Qt 3 library
467 Summary(pl.UTF-8): Statyczna biblioteka Avahi Qt 3
468 Group: Development/Libraries
469 Requires: %{name}-qt-devel = %{version}-%{release}
470 Obsoletes: avahi-qt3-static
472 %description qt-static
473 Static Avahi Qt 3 library.
475 %description qt-static -l pl.UTF-8
476 Statyczna biblioteka Avahi Qt 3.
479 Summary: Avahi Qt 4 library bindings
480 Summary(pl.UTF-8): Wiązania Avahi dla biblioteki Qt 4
482 Requires: %{name}-libs = %{version}-%{release}
485 Avahi Qt 4 library bindings.
487 %description Qt -l pl.UTF-8
488 Wiązania Avahi dla biblioteki Qt 4.
491 Summary: Header files for Avahi Qt 4 library bindings
492 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 4
493 Group: Development/Libraries
494 Requires: %{name}-Qt = %{version}-%{release}
495 Requires: %{name}-devel = %{version}-%{release}
497 %description Qt-devel
498 Header files for Avahi Qt 4 library bindings.
500 %description Qt-devel -l pl.UTF-8
501 Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 4.
504 Summary: Static Avahi Qt 4 library
505 Summary(pl.UTF-8): Statyczna biblioteka Avahi Qt 4
506 Group: Development/Libraries
507 Requires: %{name}-Qt-devel = %{version}-%{release}
509 %description Qt-static
510 Static Avahi Qt 4 library.
512 %description Qt-static -l pl.UTF-8
513 Statyczna biblioteka Avahi Qt 4.
515 %package -n python-avahi
516 Summary: Avahi Python bindings
517 Summary(pl.UTF-8): Wiązania Avahi dla Pythona
518 Group: Development/Languages/Python
519 Requires: %{name}-libs = %{version}-%{release}
520 Requires: python-dbus >= 0.71
522 %description -n python-avahi
523 Avahi Python bindings.
525 %description -n python-avahi -l pl.UTF-8
526 Wiązania Avahi dla Pythona.
528 %package -n dotnet-avahi
529 Summary: Avahi MONO bindings
530 Summary(pl.UTF-8): Wiązania Avahi dla MONO
532 Requires: %{name}-libs = %{version}-%{release}
534 %description -n dotnet-avahi
537 %description -n dotnet-avahi -l pl.UTF-8
538 Wiązania Avahi dla MONO.
540 %package -n dotnet-avahi-devel
541 Summary: Development files for MONO Avahi bindings
542 Summary(pl.UTF-8): Pliki rozwojowe wiązań Avahi dla MONO
543 Group: Development/Libraries
544 Requires: dotnet-avahi = %{version}-%{release}
545 Requires: monodoc >= 2.6
547 %description -n dotnet-avahi-devel
548 Development files for MONO Avahi bindings.
550 %description -n dotnet-avahi-devel -l pl.UTF-8
551 Pliki rozwojowe wiązań Avahi dla MONO.
553 %package -n dotnet-avahi-ui
554 Summary: Avahi UI MONO bindings
555 Summary(pl.UTF-8): Wiązania Avahi UI dla MONO
557 Requires: %{name}-ui = %{version}-%{release}
558 Requires: dotnet-avahi = %{version}-%{release}
560 %description -n dotnet-avahi-ui
561 Avahi UI MONO bindings.
563 %description -n dotnet-avahi-ui -l pl.UTF-8
564 Wiązania Avahi UI dla MONO.
566 %package -n dotnet-avahi-ui-devel
567 Summary: Development files for MONO Avahi UI bindings
568 Summary(pl.UTF-8): Pliki rozwojowe wiązań Avahi UI dla MONO
569 Group: X11/Development/Libraries
570 Requires: dotnet-avahi-ui = %{version}-%{release}
571 Requires: monodoc >= 2.6
573 %description -n dotnet-avahi-ui-devel
574 Development files for MONO Avahi UI bindings.
576 %description -n dotnet-avahi-ui-devel -l pl.UTF-8
577 Pliki rozwojowe wiązań Avahi UI dla MONO.
580 Summary: Miniature web server
581 Summary(pl.UTF-8): Miniaturowy serwer WWW
584 %description bookmarks
585 A Python based miniature web server that browses for mDNS/DNS-SD
586 services of type '_http._tcp' (i.e. web sites) and makes them
587 available as HTML links on http://localhost:8080/.
589 %description bookmarks -l pl.UTF-8
590 Napisany w Pythonie miniaturowy serwer WWW, pozwalający na
591 przeglądanie usług typu '_http._tcp' (np. stron WWW) i udostępniający
592 je jako odnośniki HTML na http://localhost:8080/.
595 Summary: Avahi Zeroconf browser
596 Summary(pl.UTF-8): Przeglądarka Zeroconf Avahi
598 Requires: python-avahi = %{version}-%{release}
599 Requires: python-pygtk-glade >= 2:2.9.6
601 %description discover
602 A tool for enumerating all available services on the local LAN
603 (python-pygtk implementation).
605 %description discover -l pl.UTF-8
606 Narzędzie wymieniające wszystkie dostępne usługi w sieci lokalnej LAN
607 (implementacja w python-pygtk).
609 %package discover-standalone
610 Summary: Avahi Zeroconf browser
611 Summary(pl.UTF-8): Przeglądarka Zeroconf Avahi
613 Requires: %{name}-glib = %{version}-%{release}
615 %description discover-standalone
616 GTK+ tool for enumerating all available services on the local LAN.
618 %description discover-standalone -l pl.UTF-8
619 Narzędzie GTK+ wymieniające wszystkie dostępne usługi w sieci lokalnej
623 Summary: Avahi CLI utilities
624 Summary(pl.UTF-8): Narzędzia CLI Avahi
628 Command line utilities using avahi-client.
630 %description utils -l pl.UTF-8
631 Narzędzia linii poleceń korzystające z avahi-client.
649 %{__aclocal} -I common
654 --disable-stack-protector \
655 --disable-silent-rules \
656 --enable-compat-libdns_sd \
657 --enable-compat-howl \
659 %{!?with_apidocs:--disable-doxygen-doc} \
660 %{!?with_gtk:--disable-gtk} \
661 %{!?with_gtk3:--disable-gtk3} \
662 %{!?with_pygtk:--disable-pygtk} \
663 %{!?with_qt3:--disable-qt3} \
664 %{!?with_qt4:--disable-qt4} \
665 %{!?with_dotnet:--disable-mono} \
666 %{!?with_dotnet:--disable-monodoc} \
667 --with-systemdsystemunitdir=%{systemdunitdir} \
668 --with-avahi-priv-access-group=adm \
669 --with-autoipd-user=avahi \
670 --with-autoipd-group=avahi
674 rm -rf $RPM_BUILD_ROOT
675 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d}
678 DESTDIR=$RPM_BUILD_ROOT \
679 pythondir=%{py_sitedir}
681 install -p %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
682 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
684 ln -sf %{_includedir}/avahi-compat-libdns_sd/dns_sd.h \
685 $RPM_BUILD_ROOT%{_includedir}/dns_sd.h
687 ln -sf %{_pkgconfigdir}/avahi-compat-howl.pc \
688 $RPM_BUILD_ROOT%{_pkgconfigdir}/howl.pc
690 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
691 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
694 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/avahi-{browse-domains,publish-address,publish-service,resolve-address,resolve-host-name}.1
695 %{?with_gtk:%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/bvnc.1}
696 echo '.so avahi-browse.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-browse-domains.1
697 echo '.so avahi-publish.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-publish-address.1
698 echo '.so avahi-publish.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-publish-service.1
699 echo '.so avahi-resolve.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-resolve-address.1
700 echo '.so avahi-resolve.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-resolve-host-name.1
702 echo '.so bssh.1' > $RPM_BUILD_ROOT%{_mandir}/man1/bvnc.1
703 echo '.so bssh.1' > $RPM_BUILD_ROOT%{_mandir}/man1/bshell.1
706 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
711 rm -rf $RPM_BUILD_ROOT
714 %groupadd -g 165 -r -f avahi
715 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
718 %groupadd -g 165 -r -f avahi
719 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
722 /sbin/chkconfig --add %{name}-daemon
723 %service %{name}-daemon restart
724 /sbin/chkconfig --add %{name}-dnsconfd
725 %service %{name}-dnsconfd restart
726 %systemd_post avahi-daemon.service avahi-dnsconfd.service avahi-daemon.socket
729 if [ "$1" = "0" ]; then
730 %service -q %{name}-dnsconfd stop
731 /sbin/chkconfig --del %{name}-dnsconfd
732 %service -q %{name}-daemon stop
733 /sbin/chkconfig --del %{name}-daemon
735 %systemd_preun avahi-daemon.service avahi-dnsconfd.service avahi-daemon.socket
738 if [ "$1" = "0" ]; then
744 %triggerpostun -- avahi < 0.6.30-7
745 %systemd_trigger avahi-daemon.service avahi-dnsconfd.service avahi-daemon.socket
748 if [ "$1" = "0" ]; then
753 %post libs -p /sbin/ldconfig
754 %postun libs -p /sbin/ldconfig
756 %post ui -p /sbin/ldconfig
757 %postun ui -p /sbin/ldconfig
759 %post ui-gtk3 -p /sbin/ldconfig
760 %postun ui-gtk3 -p /sbin/ldconfig
762 %post compat-libdns_sd -p /sbin/ldconfig
763 %postun compat-libdns_sd -p /sbin/ldconfig
765 %post compat-howl -p /sbin/ldconfig
766 %postun compat-howl -p /sbin/ldconfig
768 %post glib -p /sbin/ldconfig
769 %postun glib -p /sbin/ldconfig
771 %post gobject -p /sbin/ldconfig
772 %postun gobject -p /sbin/ldconfig
774 %post qt -p /sbin/ldconfig
775 %postun qt -p /sbin/ldconfig
777 %post Qt -p /sbin/ldconfig
778 %postun Qt -p /sbin/ldconfig
781 %defattr(644,root,root,755)
782 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
784 %dir %{_sysconfdir}/avahi
785 %dir %{_sysconfdir}/avahi/services
786 %attr(755,root,root) %{_sysconfdir}/avahi/avahi-dnsconfd.action
787 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
788 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/hosts
789 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
790 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/sftp-ssh.service
791 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/avahi-dbus.conf
793 %{systemdunitdir}/avahi-daemon.service
794 %{systemdunitdir}/avahi-daemon.socket
795 %{systemdunitdir}/avahi-dnsconfd.service
796 %{_datadir}/dbus-1/system-services/org.freedesktop.Avahi.service
798 %attr(755,root,root) %{_bindir}/avahi-set-host-name
800 %attr(755,root,root) %{_sbindir}/avahi-daemon
801 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
802 %dir %{_libdir}/%{name}
803 %{_libdir}/%{name}/service-types.db
804 %{_datadir}/%{name}/avahi-service.dtd
805 %{_datadir}/%{name}/service-types
806 %{_datadir}/dbus-1/interfaces/org.freedesktop.Avahi.*.xml
808 %{_mandir}/man1/avahi-set-host-name.1*
809 %{_mandir}/man5/avahi-daemon.conf.5*
810 %{_mandir}/man5/avahi.hosts.5*
811 %{_mandir}/man5/avahi.service.5*
812 %{_mandir}/man8/avahi-daemon.8*
813 %{_mandir}/man8/avahi-dnsconfd.8*
814 %{_mandir}/man8/avahi-dnsconfd.action.8*
816 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
817 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
820 %defattr(644,root,root,755)
821 %dir %{_sysconfdir}/avahi
822 %attr(755,root,root) %{_sysconfdir}/%{name}/avahi-autoipd.action
823 %config(noreplace) %verify(not md5 mtime size) /etc/dhclient-enter-hooks.d/avahi-autoipd
824 %config(noreplace) %verify(not md5 mtime size) /etc/dhclient-exit-hooks.d/avahi-autoipd
825 %attr(755,root,root) %{_sbindir}/avahi-autoipd
826 %{_mandir}/man8/avahi-autoipd.8*
827 %{_mandir}/man8/avahi-autoipd.action.8*
829 %files libs -f %{name}.lang
830 %defattr(644,root,root,755)
831 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
832 %attr(755,root,root) %ghost %{_libdir}/libavahi-client.so.3
833 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
834 %attr(755,root,root) %ghost %{_libdir}/libavahi-common.so.3
835 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
836 %attr(755,root,root) %ghost %{_libdir}/libavahi-core.so.7
837 # common for -discover*
838 %dir %{_datadir}/%{name}
839 %dir %{_datadir}/%{name}/interfaces
842 %defattr(644,root,root,755)
843 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
844 %attr(755,root,root) %{_libdir}/libavahi-client.so
845 %attr(755,root,root) %{_libdir}/libavahi-common.so
846 %attr(755,root,root) %{_libdir}/libavahi-core.so
847 %{_includedir}/avahi-client
848 %{_includedir}/avahi-common
849 %{_includedir}/avahi-core
850 %{_pkgconfigdir}/avahi-client.pc
851 %{_pkgconfigdir}/avahi-core.pc
854 %defattr(644,root,root,755)
855 %{_libdir}/libavahi-client.a
856 %{_libdir}/libavahi-common.a
857 %{_libdir}/libavahi-core.a
861 %defattr(644,root,root,755)
862 %attr(755,root,root) %{_libdir}/libavahi-ui.so.*.*.*
863 %attr(755,root,root) %ghost %{_libdir}/libavahi-ui.so.0
865 %attr(755,root,root) %{_bindir}/bshell
866 %attr(755,root,root) %{_bindir}/bssh
867 %attr(755,root,root) %{_bindir}/bvnc
868 %{_mandir}/man1/bshell.1*
869 %{_mandir}/man1/bssh.1*
870 %{_mandir}/man1/bvnc.1*
871 %{_desktopdir}/bssh.desktop
872 %{_desktopdir}/bvnc.desktop
876 %defattr(644,root,root,755)
877 %attr(755,root,root) %{_libdir}/libavahi-ui.so
878 %{_pkgconfigdir}/avahi-ui.pc
881 %defattr(644,root,root,755)
882 %{_libdir}/libavahi-ui.a
885 %if %{with gtk} || %{with gtk3}
886 %files ui-devel-common
887 %defattr(644,root,root,755)
888 %{_includedir}/avahi-ui
893 %defattr(644,root,root,755)
894 %attr(755,root,root) %{_bindir}/bshell
895 %attr(755,root,root) %{_bindir}/bssh
896 %attr(755,root,root) %{_bindir}/bvnc
897 %attr(755,root,root) %{_libdir}/libavahi-ui-gtk3.so.*.*.*
898 %attr(755,root,root) %ghost %{_libdir}/libavahi-ui-gtk3.so.0
899 %{_mandir}/man1/bshell.1*
900 %{_mandir}/man1/bssh.1*
901 %{_mandir}/man1/bvnc.1*
902 %{_desktopdir}/bssh.desktop
903 %{_desktopdir}/bvnc.desktop
906 %defattr(644,root,root,755)
907 %attr(755,root,root) %{_libdir}/libavahi-ui-gtk3.so
908 %{_pkgconfigdir}/avahi-ui-gtk3.pc
910 %files ui-gtk3-static
911 %defattr(644,root,root,755)
912 %{_libdir}/libavahi-ui-gtk3.a
915 %files compat-libdns_sd
916 %defattr(644,root,root,755)
917 %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.*
918 %attr(755,root,root) %ghost %{_libdir}/libdns_sd.so.1
920 %files compat-libdns_sd-devel
921 %defattr(644,root,root,755)
922 %attr(755,root,root) %{_libdir}/libdns_sd.so
923 %{_includedir}/avahi-compat-libdns_sd
924 %{_includedir}/dns_sd.h
925 %{_pkgconfigdir}/avahi-compat-libdns_sd.pc
927 %files compat-libdns_sd-static
928 %defattr(644,root,root,755)
929 %{_libdir}/libdns_sd.a
932 %defattr(644,root,root,755)
933 %attr(755,root,root) %{_libdir}/libhowl.so.*.*.*
934 %attr(755,root,root) %ghost %{_libdir}/libhowl.so.0
936 %files compat-howl-devel
937 %defattr(644,root,root,755)
938 %attr(755,root,root) %{_libdir}/libhowl.so
939 %{_includedir}/avahi-compat-howl
940 %{_pkgconfigdir}/avahi-compat-howl.pc
941 %{_pkgconfigdir}/howl.pc
943 %files compat-howl-static
944 %defattr(644,root,root,755)
947 %files -n python-avahi
948 %defattr(644,root,root,755)
952 %files -n dotnet-avahi
953 %defattr(644,root,root,755)
954 %{_prefix}/lib/mono/gac/avahi-sharp
956 %files -n dotnet-avahi-devel
957 %defattr(644,root,root,755)
958 %{_prefix}/lib/mono/avahi-sharp
959 %{_prefix}/lib/monodoc/sources/avahi-sharp-docs.*
960 %{_pkgconfigdir}/avahi-sharp.pc
962 %files -n dotnet-avahi-ui
963 %defattr(644,root,root,755)
964 %{_prefix}/lib/mono/gac/avahi-ui-sharp
966 %files -n dotnet-avahi-ui-devel
967 %defattr(644,root,root,755)
968 %{_prefix}/lib/mono/avahi-ui-sharp
969 %{_prefix}/lib/monodoc/sources/avahi-ui-sharp-docs.*
970 %{_pkgconfigdir}/avahi-ui-sharp.pc
974 %defattr(644,root,root,755)
975 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
976 %attr(755,root,root) %ghost %{_libdir}/libavahi-glib.so.1
979 %defattr(644,root,root,755)
980 %attr(755,root,root) %{_libdir}/libavahi-glib.so
981 %{_includedir}/avahi-glib
982 %{_pkgconfigdir}/avahi-glib.pc
985 %defattr(644,root,root,755)
986 %{_libdir}/libavahi-glib.a
989 %defattr(644,root,root,755)
990 %attr(755,root,root) %{_libdir}/libavahi-gobject.so.*.*.*
991 %attr(755,root,root) %ghost %{_libdir}/libavahi-gobject.so.0
992 %{_libdir}/girepository-1.0/Avahi-0.6.typelib
993 %{_libdir}/girepository-1.0/AvahiCore-0.6.typelib
996 %defattr(644,root,root,755)
997 %attr(755,root,root) %{_libdir}/libavahi-gobject.so
998 %{_includedir}/avahi-gobject
999 %{_pkgconfigdir}/avahi-gobject.pc
1000 %{_datadir}/gir-1.0/Avahi-0.6.gir
1001 %{_datadir}/gir-1.0/AvahiCore-0.6.gir
1003 %files gobject-static
1004 %defattr(644,root,root,755)
1005 %{_libdir}/libavahi-gobject.a
1009 %defattr(644,root,root,755)
1010 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
1011 %attr(755,root,root) %ghost %{_libdir}/libavahi-qt3.so.1
1014 %defattr(644,root,root,755)
1015 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
1016 %{_includedir}/avahi-qt3
1017 %{_pkgconfigdir}/avahi-qt3.pc
1020 %defattr(644,root,root,755)
1021 %{_libdir}/libavahi-qt3.a
1026 %defattr(644,root,root,755)
1027 %attr(755,root,root) %{_libdir}/libavahi-qt4.so.*.*.*
1028 %attr(755,root,root) %ghost %{_libdir}/libavahi-qt4.so.1
1031 %defattr(644,root,root,755)
1032 %attr(755,root,root) %{_libdir}/libavahi-qt4.so
1033 %{_includedir}/avahi-qt4
1034 %{_pkgconfigdir}/avahi-qt4.pc
1037 %defattr(644,root,root,755)
1038 %{_libdir}/libavahi-qt4.a
1042 %defattr(644,root,root,755)
1043 %attr(755,root,root) %{_bindir}/avahi-bookmarks
1044 %{_mandir}/man1/avahi-bookmarks.1*
1048 %defattr(644,root,root,755)
1049 %attr(755,root,root) %{_bindir}/avahi-discover
1050 %{py_sitedir}/avahi_discover
1051 %{_datadir}/%{name}/interfaces/avahi-discover.ui
1052 %{_desktopdir}/avahi-discover.desktop
1053 %{_pixmapsdir}/avahi.png
1054 %{_mandir}/man1/avahi-discover.1*
1058 %files discover-standalone
1059 %defattr(644,root,root,755)
1060 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
1061 %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade
1065 %defattr(644,root,root,755)
1066 %attr(755,root,root) %{_bindir}/avahi-browse
1067 %attr(755,root,root) %{_bindir}/avahi-browse-domains
1068 %attr(755,root,root) %{_bindir}/avahi-publish
1069 %attr(755,root,root) %{_bindir}/avahi-publish-address
1070 %attr(755,root,root) %{_bindir}/avahi-publish-service
1071 %attr(755,root,root) %{_bindir}/avahi-resolve
1072 %attr(755,root,root) %{_bindir}/avahi-resolve-address
1073 %attr(755,root,root) %{_bindir}/avahi-resolve-host-name
1074 %{_mandir}/man1/avahi-browse.1*
1075 %{_mandir}/man1/avahi-browse-domains.1*
1076 %{_mandir}/man1/avahi-publish.1*
1077 %{_mandir}/man1/avahi-publish-address.1*
1078 %{_mandir}/man1/avahi-publish-service.1*
1079 %{_mandir}/man1/avahi-resolve.1*
1080 %{_mandir}/man1/avahi-resolve-address.1*
1081 %{_mandir}/man1/avahi-resolve-host-name.1*