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 packages
5 # (or both, -qt3 and -qt4 would be consistent and make place for future -qt5)
8 %bcond_with apidocs # build API documentation
9 %bcond_without dotnet # build without dotnet bindings
10 %bcond_without gtk # build without GTK+
11 %bcond_without gtk3 # build without GTK+3
12 %bcond_without pygtk # build without PyGTK
13 %bcond_without qt # build without (any) qt bindings
14 %bcond_without qt3 # build without qt3 bindings
15 %bcond_without qt4 # build without qt4 bindings
17 %ifnarch %{ix86} %{x8664} alpha arm hppa ia64 mips ppc s390 s390x sparc sparcv9
29 # see http://lists.pld-linux.org/mailman/pipermail/pld-devel-pl/2012-October/155984.html
32 %{?with_dotnet:%include /usr/lib/rpm/macros.mono}
33 Summary: Free mDNS/DNS-SD/Zeroconf implementation
34 Summary(pl.UTF-8): Wolna implementacja mDNS/DNS-SD/Zeroconf
39 Group: Applications/Networking
40 Source0: https://github.com/lathiat/avahi/archive/v%{version}.tar.gz
41 # Source0-md5: cf4c062467098b42106ca2a9c0c39fa5
42 Source1: %{name}-daemon
43 Source2: %{name}-dnsconfd
45 Patch0: %{name}-desktop.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-tools
64 BuildRequires: glib2-devel >= 1:2.12.2
65 BuildRequires: gobject-introspection-devel >= 0.9.5
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.6
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 >= 4.0.0
93 BuildRequires: rpm-pythonprov
94 BuildRequires: rpmbuild(macros) >= 1.626
95 BuildRequires: xmltoman
96 Requires(post,preun): /sbin/chkconfig
97 Requires(post,preun,postun): systemd-units >= 38
98 Requires: %{name}-libs = %{version}-%{release}
99 Requires: dbus >= 0.92
100 Requires: libdaemon >= 0.14
101 Requires: rc-scripts >= 0.4.3
102 Requires: systemd-units >= 38
103 Suggests: nss_mdns >= 0.10-2
104 Provides: group(avahi)
105 Provides: user(avahi)
106 Obsoletes: avahi-systemd
107 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
110 Avahi is an implementation the DNS Service Discovery and Multicast DNS
111 specifications for Zeroconf Computing. It uses D-BUS for communication
112 between user applications and a system daemon.
114 %description -l pl.UTF-8
115 Avahi jest implementacją specyfikacji DNS Service Discovery i
116 Multicast DNS dla Zeroconf Computing. Używa D-BUSa dla komunikacji
117 pomiędzy programami użytkownika a demonem systemowym.
120 Summary: IPv4LL network address configuration daemon
121 Summary(pl.UTF-8): Demon configurujący adresy IPv4LL
122 Group: Networking/Daemons
123 Requires(postun): /usr/sbin/groupdel
124 Requires(postun): /usr/sbin/userdel
125 Requires(pre): /bin/id
126 Requires(pre): /usr/bin/getgid
127 Requires(pre): /usr/sbin/groupadd
128 Requires(pre): /usr/sbin/useradd
129 Provides: group(avahi)
130 Provides: user(avahi)
133 avahi-autoipd implements IPv4LL, "Dynamic Configuration of IPv4 Link-
134 Local Addresses" (IETF RFC3927), a protocol for automatic IP address
135 configuration from the link-local 169.254.0.0/16 range without the
136 need for a central server. It is primarily intended to be used in
137 ad-hoc networks which lack a DHCP server.
139 IPv4LL is part of the Zeroconf stack.
141 %description autoipd -l pl.UTF-8
142 avahi-autoipd jest implementacją IPv4LL, protokołu umożliwiającego
143 automatyczną konfigurację adresu z zakresu 169.254.0.0/16 bez potrzeby
144 użycia centralnego serwera. Jego głównym zastosowaniem są sieci
145 ad-hoc, w których brakuje serwera DHCP.
147 IPv4LL jest częścią stosu Zeroconf.
150 Summary: Avahi client, common and core libraries
151 Summary(pl.UTF-8): Biblioteki Avahi: klienta, wspólna i główna
155 Avahi client, common and core libraries.
157 %description libs -l pl.UTF-8
158 Biblioteki Avahi: klienta, wspólna i główna.
161 Summary: Header files for Avahi library
162 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi
163 Group: Development/Libraries
164 Requires: %{name}-libs = %{version}-%{release}
165 Requires: dbus-devel >= 0.92
166 Requires: expat-devel
169 This is the package containing the header files for Avahi library.
171 %description devel -l pl.UTF-8
172 Ten pakiet zawiera pliki nagłówkowe biblioteki Avahi.
175 Summary: Static Avahi library
176 Summary(pl.UTF-8): Statyczna biblioteka Avahi
177 Group: Development/Libraries
178 Requires: %{name}-devel = %{version}-%{release}
181 Static Avahi library.
183 %description static -l pl.UTF-8
184 Statyczna biblioteka Avahi.
187 Summary: Avahi UI library
188 Summary(pl.UTF-8): Biblioteka Avahi UI
190 Requires: %{name}-libs = %{version}-%{release}
191 Requires: gtk+2 >= 2:2.14.0
194 Common GTK+ UI support library for Avahi.
196 %description ui -l pl.UTF-8
197 Biblioteka wspólnego interfejsu użytkownika GTK+ dla Avahi.
200 Summary: Header files for Avahi UI library
201 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi UI
202 Group: X11/Development/Libraries
203 Requires: %{name}-devel = %{version}-%{release}
204 Requires: %{name}-ui = %{version}-%{release}
205 Requires: %{name}-ui-devel-common = %{version}-%{release}
206 Requires: gtk+2-devel >= 2:2.14.0
208 %description ui-devel
209 Header files for Avahi UI library.
211 %description ui-devel -l pl.UTF-8
212 Pliki nagłówkowe biblioteki Avahi UI.
215 Summary: Static Avahi UI library
216 Summary(pl.UTF-8): Statyczna biblioteka Avahi UI
217 Group: X11/Development/Libraries
218 Requires: %{name}-ui-devel = %{version}-%{release}
220 %description ui-static
221 Static Avahi UI library.
223 %description ui-static -l pl.UTF-8
224 Statyczna biblioteka Avahi UI.
226 %package ui-devel-common
227 Summary: Header files for Avahi UI library
228 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi UI
229 Group: X11/Development/Libraries
230 Requires: %{name}-devel = %{version}-%{release}
232 %description ui-devel-common
233 Header files for Avahi UI library.
235 %description ui-devel-common -l pl.UTF-8
236 Pliki nagłówkowe biblioteki Avahi GTK+ UI.
239 Summary: Avahi UI library - GTK+ 3.x version
240 Summary(pl.UTF-8): Biblioteka Avahi UI - wersja dla GTK+ 3.x
242 Requires: %{name}-libs = %{version}-%{release}
245 Common GTK+ 3.x UI support library for Avahi.
247 %description ui-gtk3 -l pl.UTF-8
248 Biblioteka wspólnego interfejsu użytkownika GTK+ 3.x dla Avahi.
250 %package ui-gtk3-devel
251 Summary: Header files for Avahi UI library - GTK+ 3.x version
252 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi UI - wersja dla GTK+ 3.x
253 Group: X11/Development/Libraries
254 Requires: %{name}-devel = %{version}-%{release}
255 Requires: %{name}-ui-devel-common = %{version}-%{release}
256 Requires: %{name}-ui-gtk3 = %{version}-%{release}
258 %description ui-gtk3-devel
259 Header files for Avahi GTK+ 3.x UI library.
261 %description ui-devel -l pl.UTF-8
262 Pliki nagłówkowe biblioteki Avahi GTK+ 3.x UI.
264 %package ui-gtk3-static
265 Summary: Static Avahi UI library - GTK+ 3.x version
266 Summary(pl.UTF-8): Statyczna biblioteka Avahi UI - wersja GTK+ 3.x
267 Group: X11/Development/Libraries
268 Requires: %{name}-ui-gtk3-devel = %{version}-%{release}
270 %description ui-gtk3-static
271 Static Avahi GTK+ 3.x UI library.
273 %description ui-gtk3-static -l pl.UTF-8
274 Statyczna biblioteka Avahi GTK+ 3.x UI.
276 %package compat-libdns_sd
277 Summary: Avahi Bonjour compat library
278 Summary(pl.UTF-8): Biblioteka Avahi zgodna z Bonjour
280 Requires: %{name}-libs = %{version}-%{release}
281 Provides: mdns-bonjour
282 Obsoletes: mDNSResponder-libs
284 %description compat-libdns_sd
285 Avahi Bonjour compat library.
287 %description compat-libdns_sd -l pl.UTF-8
288 Biblioteka Avahi zgodna z Bonjour.
290 %package compat-libdns_sd-devel
291 Summary: Header files for Avahi Bonjour compat library
292 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Bonjour
293 Group: Development/Libraries
294 Requires: %{name}-compat-libdns_sd = %{version}-%{release}
295 Requires: %{name}-devel = %{version}-%{release}
296 Provides: mdns-bonjour-devel
297 Obsoletes: mDNSResponder-devel
299 %description compat-libdns_sd-devel
300 Header files for Avahi Bonjour compat library.
302 %description compat-libdns_sd-devel -l pl.UTF-8
303 Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Bonjour.
305 %package compat-libdns_sd-static
306 Summary: Static Avahi Bonjour compat library
307 Summary(pl.UTF-8): Statyczna biblioteka Avahi zgodna z Bonjour
308 Group: Development/Libraries
309 Requires: %{name}-compat-libdns_sd-devel = %{version}-%{release}
310 Provides: mdns-bonjour-static
312 %description compat-libdns_sd-static
313 Static Avahi Bonjour compat library.
315 %description compat-libdns_sd-static -l pl.UTF-8
316 Statyczna biblioteka Avahi zgodna z Bonjour.
319 Summary: Avahi Howl compat library
320 Summary(pl.UTF-8): Biblioteka Avahi zgodna z Howl
322 Provides: mdns-howl-libs
325 %description compat-howl
326 Avahi Howl compat library.
328 %description compat-howl -l pl.UTF-8
329 Biblioteka Avahi zgodna z Howl.
331 %package compat-howl-devel
332 Summary: Header files for Avahi Howl compat library
333 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Howl
334 Group: Development/Libraries
335 Requires: %{name}-compat-howl = %{version}-%{release}
336 Requires: %{name}-devel = %{version}-%{release}
337 Provides: mdns-howl-devel
338 Obsoletes: howl-devel
340 %description compat-howl-devel
341 Header files for Avahi Howl compat library.
343 %description compat-howl-devel -l pl.UTF-8
344 Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Howl.
346 %package compat-howl-static
347 Summary: Static Avahi Howl compat library
348 Summary(pl.UTF-8): Statyczna biblioteka Avahi zgodna z Howl
349 Group: Development/Libraries
350 Requires: %{name}-compat-howl-devel = %{version}-%{release}
351 Provides: mdns-howl-static
352 Obsoletes: howl-static
354 %description compat-howl-static
355 Static Avahi Howl compat library.
357 %description compat-howl-static -l pl.UTF-8
358 Statyczna biblioteka Avahi zgodna z Howl.
361 Summary: Avahi GLib library bindings
362 Summary(pl.UTF-8): Wiązania Avahi dla bibioteki GLib
364 Requires: glib2 >= 1:2.12.2
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
403 Requires: glib2 >= 1:2.12.2
406 Avahi GObject interface.
408 %description gobject -l pl.UTF-8
409 Interfejs GObject do Avahi.
411 %package gobject-devel
412 Summary: Header files for Avahi GObject interface
413 Summary(pl.UTF-8): Pliki nagłówkowe interfejsu GObject do Avahi
414 Group: Development/Libraries
415 Requires: %{name}-devel = %{version}-%{release}
416 Requires: %{name}-gobject = %{version}-%{release}
417 Requires: glib2-devel >= 1:2.12.2
419 %description gobject-devel
420 This is the package containing the header files for Avahi GObject
423 %description gobject-devel -l pl.UTF-8
424 Ten pakiet zawiera pliki nagłówkowe interfejsu GObject do Avahi.
426 %package gobject-static
427 Summary: Static Avahi GObject library
428 Summary(pl.UTF-8): Statyczna biblioteka Avahi GObject
429 Group: Development/Libraries
430 Requires: %{name}-gobject-devel = %{version}-%{release}
432 %description gobject-static
433 Static Avahi GObject library.
435 %description gobject-static -l pl.UTF-8
436 Statyczna biblioteka Avahi GObject.
439 Summary: Avahi Qt 3 library bindings
440 Summary(pl.UTF-8): Wiązania Avahi dla biblioteki Qt 3
442 Requires: %{name}-libs = %{version}-%{release}
446 Avahi Qt 3 library bindings.
448 %description qt -l pl.UTF-8
449 Wiązania Avahi dla biblioteki Qt 3.
452 Summary: Header files for Avahi Qt 3 library bindings
453 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 3
454 Group: Development/Libraries
455 Requires: %{name}-devel = %{version}-%{release}
456 Requires: %{name}-qt = %{version}-%{release}
457 Requires: qt-devel >= 1:3.0
458 Obsoletes: avahi-qt3-devel
460 %description qt-devel
461 Header files for Avahi Qt 3 library bindings.
463 %description qt-devel -l pl.UTF-8
464 Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 3.
467 Summary: Static Avahi Qt 3 library
468 Summary(pl.UTF-8): Statyczna biblioteka Avahi Qt 3
469 Group: Development/Libraries
470 Requires: %{name}-qt-devel = %{version}-%{release}
471 Obsoletes: avahi-qt3-static
473 %description qt-static
474 Static Avahi Qt 3 library.
476 %description qt-static -l pl.UTF-8
477 Statyczna biblioteka Avahi Qt 3.
480 Summary: Avahi Qt 4 library bindings
481 Summary(pl.UTF-8): Wiązania Avahi dla biblioteki Qt 4
483 Requires: %{name}-libs = %{version}-%{release}
486 Avahi Qt 4 library bindings.
488 %description Qt -l pl.UTF-8
489 Wiązania Avahi dla biblioteki Qt 4.
492 Summary: Header files for Avahi Qt 4 library bindings
493 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 4
494 Group: Development/Libraries
495 Requires: %{name}-Qt = %{version}-%{release}
496 Requires: %{name}-devel = %{version}-%{release}
498 %description Qt-devel
499 Header files for Avahi Qt 4 library bindings.
501 %description Qt-devel -l pl.UTF-8
502 Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 4.
505 Summary: Static Avahi Qt 4 library
506 Summary(pl.UTF-8): Statyczna biblioteka Avahi Qt 4
507 Group: Development/Libraries
508 Requires: %{name}-Qt-devel = %{version}-%{release}
510 %description Qt-static
511 Static Avahi Qt 4 library.
513 %description Qt-static -l pl.UTF-8
514 Statyczna biblioteka Avahi Qt 4.
516 %package -n python-avahi
517 Summary: Avahi Python bindings
518 Summary(pl.UTF-8): Wiązania Avahi dla Pythona
519 Group: Development/Languages/Python
520 Requires: %{name}-libs = %{version}-%{release}
521 Requires: python-dbus >= 0.71
523 %description -n python-avahi
524 Avahi Python bindings.
526 %description -n python-avahi -l pl.UTF-8
527 Wiązania Avahi dla Pythona.
529 %package -n dotnet-avahi
530 Summary: Avahi MONO bindings
531 Summary(pl.UTF-8): Wiązania Avahi dla MONO
533 Requires: %{name}-libs = %{version}-%{release}
535 %description -n dotnet-avahi
538 %description -n dotnet-avahi -l pl.UTF-8
539 Wiązania Avahi dla MONO.
541 %package -n dotnet-avahi-devel
542 Summary: Development files for MONO Avahi bindings
543 Summary(pl.UTF-8): Pliki rozwojowe wiązań Avahi dla MONO
544 Group: Development/Libraries
545 Requires: dotnet-avahi = %{version}-%{release}
546 Requires: monodoc >= 2.6
548 %description -n dotnet-avahi-devel
549 Development files for MONO Avahi bindings.
551 %description -n dotnet-avahi-devel -l pl.UTF-8
552 Pliki rozwojowe wiązań Avahi dla MONO.
554 %package -n dotnet-avahi-ui
555 Summary: Avahi UI MONO bindings
556 Summary(pl.UTF-8): Wiązania Avahi UI dla MONO
558 Requires: %{name}-ui = %{version}-%{release}
559 Requires: dotnet-avahi = %{version}-%{release}
561 %description -n dotnet-avahi-ui
562 Avahi UI MONO bindings.
564 %description -n dotnet-avahi-ui -l pl.UTF-8
565 Wiązania Avahi UI dla MONO.
567 %package -n dotnet-avahi-ui-devel
568 Summary: Development files for MONO Avahi UI bindings
569 Summary(pl.UTF-8): Pliki rozwojowe wiązań Avahi UI dla MONO
570 Group: X11/Development/Libraries
571 Requires: dotnet-avahi-ui = %{version}-%{release}
572 Requires: monodoc >= 2.6
574 %description -n dotnet-avahi-ui-devel
575 Development files for MONO Avahi UI bindings.
577 %description -n dotnet-avahi-ui-devel -l pl.UTF-8
578 Pliki rozwojowe wiązań Avahi UI dla MONO.
581 Summary: Miniature web server
582 Summary(pl.UTF-8): Miniaturowy serwer WWW
585 %description bookmarks
586 A Python based miniature web server that browses for mDNS/DNS-SD
587 services of type '_http._tcp' (i.e. web sites) and makes them
588 available as HTML links on http://localhost:8080/.
590 %description bookmarks -l pl.UTF-8
591 Napisany w Pythonie miniaturowy serwer WWW, pozwalający na
592 przeglądanie usług typu '_http._tcp' (np. stron WWW) i udostępniający
593 je jako odnośniki HTML na http://localhost:8080/.
596 Summary: Avahi Zeroconf browser
597 Summary(pl.UTF-8): Przeglądarka Zeroconf Avahi
599 Requires: python-avahi = %{version}-%{release}
600 Requires: python-pygtk-glade >= 2:2.9.6
602 %description discover
603 A tool for enumerating all available services on the local LAN
604 (python-pygtk implementation).
606 %description discover -l pl.UTF-8
607 Narzędzie wymieniające wszystkie dostępne usługi w sieci lokalnej LAN
608 (implementacja w python-pygtk).
610 %package discover-standalone
611 Summary: Avahi Zeroconf browser
612 Summary(pl.UTF-8): Przeglądarka Zeroconf Avahi
614 Requires: %{name}-glib = %{version}-%{release}
616 %description discover-standalone
617 GTK+ tool for enumerating all available services on the local LAN.
619 %description discover-standalone -l pl.UTF-8
620 Narzędzie GTK+ wymieniające wszystkie dostępne usługi w sieci lokalnej
624 Summary: Avahi CLI utilities
625 Summary(pl.UTF-8): Narzędzia CLI Avahi
629 Command line utilities using avahi-client.
631 %description utils -l pl.UTF-8
632 Narzędzia linii poleceń korzystające z avahi-client.
647 %{__aclocal} -I common
652 --disable-stack-protector \
653 --disable-silent-rules \
654 --enable-compat-libdns_sd \
655 --enable-compat-howl \
657 %{!?with_apidocs:--disable-doxygen-doc} \
658 %{!?with_gtk:--disable-gtk} \
659 %{!?with_gtk3:--disable-gtk3} \
660 %{!?with_pygtk:--disable-pygtk} \
661 %{!?with_qt3:--disable-qt3} \
662 %{!?with_qt4:--disable-qt4} \
663 %{!?with_dotnet:--disable-mono} \
664 %{!?with_dotnet:--disable-monodoc} \
665 --with-systemdsystemunitdir=%{systemdunitdir} \
666 --with-avahi-priv-access-group=adm \
667 --with-autoipd-user=avahi \
668 --with-autoipd-group=avahi
672 rm -rf $RPM_BUILD_ROOT
673 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d}
676 DESTDIR=$RPM_BUILD_ROOT \
677 pythondir=%{py_sitedir}
679 install -p %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
680 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
682 ln -sf %{_includedir}/avahi-compat-libdns_sd/dns_sd.h \
683 $RPM_BUILD_ROOT%{_includedir}/dns_sd.h
685 ln -sf %{_pkgconfigdir}/avahi-compat-howl.pc \
686 $RPM_BUILD_ROOT%{_pkgconfigdir}/howl.pc
688 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
689 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
692 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/avahi-{browse-domains,publish-address,publish-service,resolve-address,resolve-host-name}.1
693 %{?with_gtk:%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/bvnc.1}
694 echo '.so avahi-browse.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-browse-domains.1
695 echo '.so avahi-publish.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-publish-address.1
696 echo '.so avahi-publish.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-publish-service.1
697 echo '.so avahi-resolve.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-resolve-address.1
698 echo '.so avahi-resolve.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-resolve-host-name.1
700 echo '.so bssh.1' > $RPM_BUILD_ROOT%{_mandir}/man1/bvnc.1
701 echo '.so bssh.1' > $RPM_BUILD_ROOT%{_mandir}/man1/bshell.1
704 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
709 rm -rf $RPM_BUILD_ROOT
712 %groupadd -g 165 -r -f avahi
713 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
716 %groupadd -g 165 -r -f avahi
717 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
720 /sbin/chkconfig --add %{name}-daemon
721 %service %{name}-daemon restart
722 /sbin/chkconfig --add %{name}-dnsconfd
723 %service %{name}-dnsconfd restart
724 %systemd_post avahi-daemon.service avahi-dnsconfd.service avahi-daemon.socket
727 if [ "$1" = "0" ]; then
728 %service -q %{name}-dnsconfd stop
729 /sbin/chkconfig --del %{name}-dnsconfd
730 %service -q %{name}-daemon stop
731 /sbin/chkconfig --del %{name}-daemon
733 %systemd_preun avahi-daemon.service avahi-dnsconfd.service avahi-daemon.socket
736 if [ "$1" = "0" ]; then
742 %triggerpostun -- avahi < 0.6.30-7
743 %systemd_trigger avahi-daemon.service avahi-dnsconfd.service avahi-daemon.socket
746 if [ "$1" = "0" ]; then
751 %post libs -p /sbin/ldconfig
752 %postun libs -p /sbin/ldconfig
754 %post ui -p /sbin/ldconfig
755 %postun ui -p /sbin/ldconfig
757 %post ui-gtk3 -p /sbin/ldconfig
758 %postun ui-gtk3 -p /sbin/ldconfig
760 %post compat-libdns_sd -p /sbin/ldconfig
761 %postun compat-libdns_sd -p /sbin/ldconfig
763 %post compat-howl -p /sbin/ldconfig
764 %postun compat-howl -p /sbin/ldconfig
766 %post glib -p /sbin/ldconfig
767 %postun glib -p /sbin/ldconfig
769 %post gobject -p /sbin/ldconfig
770 %postun gobject -p /sbin/ldconfig
772 %post qt -p /sbin/ldconfig
773 %postun qt -p /sbin/ldconfig
775 %post Qt -p /sbin/ldconfig
776 %postun Qt -p /sbin/ldconfig
779 %defattr(644,root,root,755)
780 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
782 %dir %{_sysconfdir}/avahi
783 %dir %{_sysconfdir}/avahi/services
784 %attr(755,root,root) %{_sysconfdir}/avahi/avahi-dnsconfd.action
785 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
786 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/hosts
787 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
788 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/sftp-ssh.service
789 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/avahi-dbus.conf
791 %{systemdunitdir}/avahi-daemon.service
792 %{systemdunitdir}/avahi-daemon.socket
793 %{systemdunitdir}/avahi-dnsconfd.service
794 %{_datadir}/dbus-1/system-services/org.freedesktop.Avahi.service
796 %attr(755,root,root) %{_bindir}/avahi-set-host-name
798 %attr(755,root,root) %{_sbindir}/avahi-daemon
799 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
800 %dir %{_libdir}/%{name}
801 %{_libdir}/%{name}/service-types.db
802 %{_datadir}/%{name}/avahi-service.dtd
803 %{_datadir}/dbus-1/interfaces/org.freedesktop.Avahi.*.xml
805 %{_mandir}/man1/avahi-set-host-name.1*
806 %{_mandir}/man5/avahi-daemon.conf.5*
807 %{_mandir}/man5/avahi.hosts.5*
808 %{_mandir}/man5/avahi.service.5*
809 %{_mandir}/man8/avahi-daemon.8*
810 %{_mandir}/man8/avahi-dnsconfd.8*
811 %{_mandir}/man8/avahi-dnsconfd.action.8*
813 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
814 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
817 %defattr(644,root,root,755)
818 %dir %{_sysconfdir}/avahi
819 %attr(755,root,root) %{_sysconfdir}/%{name}/avahi-autoipd.action
820 %config(noreplace) %verify(not md5 mtime size) /etc/dhclient-enter-hooks.d/avahi-autoipd
821 %config(noreplace) %verify(not md5 mtime size) /etc/dhclient-exit-hooks.d/avahi-autoipd
822 %attr(755,root,root) %{_sbindir}/avahi-autoipd
823 %{_mandir}/man8/avahi-autoipd.8*
824 %{_mandir}/man8/avahi-autoipd.action.8*
826 %files libs -f %{name}.lang
827 %defattr(644,root,root,755)
828 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
829 %attr(755,root,root) %ghost %{_libdir}/libavahi-client.so.3
830 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
831 %attr(755,root,root) %ghost %{_libdir}/libavahi-common.so.3
832 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
833 %attr(755,root,root) %ghost %{_libdir}/libavahi-core.so.7
834 # common for -discover*
835 %dir %{_datadir}/%{name}
836 %dir %{_datadir}/%{name}/interfaces
839 %defattr(644,root,root,755)
840 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
841 %attr(755,root,root) %{_libdir}/libavahi-client.so
842 %attr(755,root,root) %{_libdir}/libavahi-common.so
843 %attr(755,root,root) %{_libdir}/libavahi-core.so
844 %{_includedir}/avahi-client
845 %{_includedir}/avahi-common
846 %{_includedir}/avahi-core
847 %{_pkgconfigdir}/avahi-client.pc
848 %{_pkgconfigdir}/avahi-core.pc
851 %defattr(644,root,root,755)
852 %{_libdir}/libavahi-client.a
853 %{_libdir}/libavahi-common.a
854 %{_libdir}/libavahi-core.a
858 %defattr(644,root,root,755)
859 %attr(755,root,root) %{_libdir}/libavahi-ui.so.*.*.*
860 %attr(755,root,root) %ghost %{_libdir}/libavahi-ui.so.0
862 %attr(755,root,root) %{_bindir}/bshell
863 %attr(755,root,root) %{_bindir}/bssh
864 %attr(755,root,root) %{_bindir}/bvnc
865 %{_mandir}/man1/bshell.1*
866 %{_mandir}/man1/bssh.1*
867 %{_mandir}/man1/bvnc.1*
868 %{_desktopdir}/bssh.desktop
869 %{_desktopdir}/bvnc.desktop
873 %defattr(644,root,root,755)
874 %attr(755,root,root) %{_libdir}/libavahi-ui.so
875 %{_pkgconfigdir}/avahi-ui.pc
878 %defattr(644,root,root,755)
879 %{_libdir}/libavahi-ui.a
882 %if %{with gtk} || %{with gtk3}
883 %files ui-devel-common
884 %defattr(644,root,root,755)
885 %{_includedir}/avahi-ui
890 %defattr(644,root,root,755)
891 %attr(755,root,root) %{_bindir}/bshell
892 %attr(755,root,root) %{_bindir}/bssh
893 %attr(755,root,root) %{_bindir}/bvnc
894 %attr(755,root,root) %{_libdir}/libavahi-ui-gtk3.so.*.*.*
895 %attr(755,root,root) %ghost %{_libdir}/libavahi-ui-gtk3.so.0
896 %{_mandir}/man1/bshell.1*
897 %{_mandir}/man1/bssh.1*
898 %{_mandir}/man1/bvnc.1*
899 %{_desktopdir}/bssh.desktop
900 %{_desktopdir}/bvnc.desktop
903 %defattr(644,root,root,755)
904 %attr(755,root,root) %{_libdir}/libavahi-ui-gtk3.so
905 %{_pkgconfigdir}/avahi-ui-gtk3.pc
907 %files ui-gtk3-static
908 %defattr(644,root,root,755)
909 %{_libdir}/libavahi-ui-gtk3.a
912 %files compat-libdns_sd
913 %defattr(644,root,root,755)
914 %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.*
915 %attr(755,root,root) %ghost %{_libdir}/libdns_sd.so.1
917 %files compat-libdns_sd-devel
918 %defattr(644,root,root,755)
919 %attr(755,root,root) %{_libdir}/libdns_sd.so
920 %{_includedir}/avahi-compat-libdns_sd
921 %{_includedir}/dns_sd.h
922 %{_pkgconfigdir}/avahi-compat-libdns_sd.pc
924 %files compat-libdns_sd-static
925 %defattr(644,root,root,755)
926 %{_libdir}/libdns_sd.a
929 %defattr(644,root,root,755)
930 %attr(755,root,root) %{_libdir}/libhowl.so.*.*.*
931 %attr(755,root,root) %ghost %{_libdir}/libhowl.so.0
933 %files compat-howl-devel
934 %defattr(644,root,root,755)
935 %attr(755,root,root) %{_libdir}/libhowl.so
936 %{_includedir}/avahi-compat-howl
937 %{_pkgconfigdir}/avahi-compat-howl.pc
938 %{_pkgconfigdir}/howl.pc
940 %files compat-howl-static
941 %defattr(644,root,root,755)
944 %files -n python-avahi
945 %defattr(644,root,root,755)
949 %files -n dotnet-avahi
950 %defattr(644,root,root,755)
951 %{_prefix}/lib/mono/gac/avahi-sharp
953 %files -n dotnet-avahi-devel
954 %defattr(644,root,root,755)
955 %{_prefix}/lib/mono/avahi-sharp
956 %{_prefix}/lib/monodoc/sources/avahi-sharp-docs.*
957 %{_pkgconfigdir}/avahi-sharp.pc
959 %files -n dotnet-avahi-ui
960 %defattr(644,root,root,755)
961 %{_prefix}/lib/mono/gac/avahi-ui-sharp
963 %files -n dotnet-avahi-ui-devel
964 %defattr(644,root,root,755)
965 %{_prefix}/lib/mono/avahi-ui-sharp
966 %{_prefix}/lib/monodoc/sources/avahi-ui-sharp-docs.*
967 %{_pkgconfigdir}/avahi-ui-sharp.pc
971 %defattr(644,root,root,755)
972 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
973 %attr(755,root,root) %ghost %{_libdir}/libavahi-glib.so.1
976 %defattr(644,root,root,755)
977 %attr(755,root,root) %{_libdir}/libavahi-glib.so
978 %{_includedir}/avahi-glib
979 %{_pkgconfigdir}/avahi-glib.pc
982 %defattr(644,root,root,755)
983 %{_libdir}/libavahi-glib.a
986 %defattr(644,root,root,755)
987 %attr(755,root,root) %{_libdir}/libavahi-gobject.so.*.*.*
988 %attr(755,root,root) %ghost %{_libdir}/libavahi-gobject.so.0
989 %{_libdir}/girepository-1.0/Avahi-0.6.typelib
990 %{_libdir}/girepository-1.0/AvahiCore-0.6.typelib
993 %defattr(644,root,root,755)
994 %attr(755,root,root) %{_libdir}/libavahi-gobject.so
995 %{_includedir}/avahi-gobject
996 %{_pkgconfigdir}/avahi-gobject.pc
997 %{_datadir}/gir-1.0/Avahi-0.6.gir
998 %{_datadir}/gir-1.0/AvahiCore-0.6.gir
1000 %files gobject-static
1001 %defattr(644,root,root,755)
1002 %{_libdir}/libavahi-gobject.a
1006 %defattr(644,root,root,755)
1007 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
1008 %attr(755,root,root) %ghost %{_libdir}/libavahi-qt3.so.1
1011 %defattr(644,root,root,755)
1012 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
1013 %{_includedir}/avahi-qt3
1014 %{_pkgconfigdir}/avahi-qt3.pc
1017 %defattr(644,root,root,755)
1018 %{_libdir}/libavahi-qt3.a
1023 %defattr(644,root,root,755)
1024 %attr(755,root,root) %{_libdir}/libavahi-qt4.so.*.*.*
1025 %attr(755,root,root) %ghost %{_libdir}/libavahi-qt4.so.1
1028 %defattr(644,root,root,755)
1029 %attr(755,root,root) %{_libdir}/libavahi-qt4.so
1030 %{_includedir}/avahi-qt4
1031 %{_pkgconfigdir}/avahi-qt4.pc
1034 %defattr(644,root,root,755)
1035 %{_libdir}/libavahi-qt4.a
1039 %defattr(644,root,root,755)
1040 %attr(755,root,root) %{_bindir}/avahi-bookmarks
1041 %{_mandir}/man1/avahi-bookmarks.1*
1045 %defattr(644,root,root,755)
1046 %attr(755,root,root) %{_bindir}/avahi-discover
1047 %{py_sitedir}/avahi_discover
1048 %{_datadir}/%{name}/interfaces/avahi-discover.ui
1049 %{_desktopdir}/avahi-discover.desktop
1050 %{_pixmapsdir}/avahi.png
1051 %{_mandir}/man1/avahi-discover.1*
1055 %files discover-standalone
1056 %defattr(644,root,root,755)
1057 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
1061 %defattr(644,root,root,755)
1062 %attr(755,root,root) %{_bindir}/avahi-browse
1063 %attr(755,root,root) %{_bindir}/avahi-browse-domains
1064 %attr(755,root,root) %{_bindir}/avahi-publish
1065 %attr(755,root,root) %{_bindir}/avahi-publish-address
1066 %attr(755,root,root) %{_bindir}/avahi-publish-service
1067 %attr(755,root,root) %{_bindir}/avahi-resolve
1068 %attr(755,root,root) %{_bindir}/avahi-resolve-address
1069 %attr(755,root,root) %{_bindir}/avahi-resolve-host-name
1070 %{_mandir}/man1/avahi-browse.1*
1071 %{_mandir}/man1/avahi-browse-domains.1*
1072 %{_mandir}/man1/avahi-publish.1*
1073 %{_mandir}/man1/avahi-publish-address.1*
1074 %{_mandir}/man1/avahi-publish-service.1*
1075 %{_mandir}/man1/avahi-resolve.1*
1076 %{_mandir}/man1/avahi-resolve-address.1*
1077 %{_mandir}/man1/avahi-resolve-host-name.1*