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 #Source0Download: https://github.com/lathiat/avahi/releases
41 #FIXME: when updating, use release tarballs: https://github.com/lathiat/avahi/releases/download/v%{version}/%{name}-%{version}.tar.gz
42 Source0: https://github.com/lathiat/avahi/archive/v%{version}.tar.gz
43 # Source0-md5: cf4c062467098b42106ca2a9c0c39fa5
44 Source1: %{name}-daemon
45 Source2: %{name}-dnsconfd
47 Patch0: %{name}-desktop.patch
49 Patch2: %{name}-destdir.patch
50 Patch3: %{name}-mono-dir.patch
51 Patch4: nss-mdns-package.patch
52 Patch5: %{name}-dhclient_hooks.patch
53 Patch6: %{name}-autoipd-sbin_ip.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: glib2-devel >= 1:2.12.2
67 BuildRequires: gobject-introspection-devel >= 0.9.5
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.6
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 >= 4.0.0
95 BuildRequires: rpm-pythonprov
96 BuildRequires: rpmbuild(macros) >= 1.626
97 BuildRequires: xmltoman
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: IPv4LL network address configuration daemon
123 Summary(pl.UTF-8): Demon configurujący adresy IPv4LL
124 Group: Networking/Daemons
125 Requires(postun): /usr/sbin/groupdel
126 Requires(postun): /usr/sbin/userdel
127 Requires(pre): /bin/id
128 Requires(pre): /usr/bin/getgid
129 Requires(pre): /usr/sbin/groupadd
130 Requires(pre): /usr/sbin/useradd
131 Provides: group(avahi)
132 Provides: user(avahi)
135 avahi-autoipd implements IPv4LL, "Dynamic Configuration of IPv4 Link-
136 Local Addresses" (IETF RFC3927), a protocol for automatic IP address
137 configuration from the link-local 169.254.0.0/16 range without the
138 need for a central server. It is primarily intended to be used in
139 ad-hoc networks which lack a DHCP server.
141 IPv4LL is part of the Zeroconf stack.
143 %description autoipd -l pl.UTF-8
144 avahi-autoipd jest implementacją IPv4LL, protokołu umożliwiającego
145 automatyczną konfigurację adresu z zakresu 169.254.0.0/16 bez potrzeby
146 użycia centralnego serwera. Jego głównym zastosowaniem są sieci
147 ad-hoc, w których brakuje serwera DHCP.
149 IPv4LL jest częścią stosu Zeroconf.
152 Summary: Avahi client, common and core libraries
153 Summary(pl.UTF-8): Biblioteki Avahi: klienta, wspólna i główna
157 Avahi client, common and core libraries.
159 %description libs -l pl.UTF-8
160 Biblioteki Avahi: klienta, wspólna i główna.
163 Summary: Header files for Avahi library
164 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi
165 Group: Development/Libraries
166 Requires: %{name}-libs = %{version}-%{release}
167 Requires: dbus-devel >= 0.92
168 Requires: expat-devel
171 This is the package containing the header files for Avahi library.
173 %description devel -l pl.UTF-8
174 Ten pakiet zawiera pliki nagłówkowe biblioteki Avahi.
177 Summary: Static Avahi library
178 Summary(pl.UTF-8): Statyczna biblioteka Avahi
179 Group: Development/Libraries
180 Requires: %{name}-devel = %{version}-%{release}
183 Static Avahi library.
185 %description static -l pl.UTF-8
186 Statyczna biblioteka Avahi.
189 Summary: Avahi UI library
190 Summary(pl.UTF-8): Biblioteka Avahi UI
192 Requires: %{name}-libs = %{version}-%{release}
193 Requires: gtk+2 >= 2:2.14.0
196 Common GTK+ UI support library for Avahi.
198 %description ui -l pl.UTF-8
199 Biblioteka wspólnego interfejsu użytkownika GTK+ dla Avahi.
202 Summary: Header files for Avahi UI library
203 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi UI
204 Group: X11/Development/Libraries
205 Requires: %{name}-devel = %{version}-%{release}
206 Requires: %{name}-ui = %{version}-%{release}
207 Requires: %{name}-ui-devel-common = %{version}-%{release}
208 Requires: gtk+2-devel >= 2:2.14.0
210 %description ui-devel
211 Header files for Avahi UI library.
213 %description ui-devel -l pl.UTF-8
214 Pliki nagłówkowe biblioteki Avahi UI.
217 Summary: Static Avahi UI library
218 Summary(pl.UTF-8): Statyczna biblioteka Avahi UI
219 Group: X11/Development/Libraries
220 Requires: %{name}-ui-devel = %{version}-%{release}
222 %description ui-static
223 Static Avahi UI library.
225 %description ui-static -l pl.UTF-8
226 Statyczna biblioteka Avahi UI.
228 %package ui-devel-common
229 Summary: Header files for Avahi UI library
230 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi UI
231 Group: X11/Development/Libraries
232 Requires: %{name}-devel = %{version}-%{release}
234 %description ui-devel-common
235 Header files for Avahi UI library.
237 %description ui-devel-common -l pl.UTF-8
238 Pliki nagłówkowe biblioteki Avahi GTK+ UI.
241 Summary: Avahi UI library - GTK+ 3.x version
242 Summary(pl.UTF-8): Biblioteka Avahi UI - wersja dla GTK+ 3.x
244 Requires: %{name}-libs = %{version}-%{release}
247 Common GTK+ 3.x UI support library for Avahi.
249 %description ui-gtk3 -l pl.UTF-8
250 Biblioteka wspólnego interfejsu użytkownika GTK+ 3.x dla Avahi.
252 %package ui-gtk3-devel
253 Summary: Header files for Avahi UI library - GTK+ 3.x version
254 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi UI - wersja dla GTK+ 3.x
255 Group: X11/Development/Libraries
256 Requires: %{name}-devel = %{version}-%{release}
257 Requires: %{name}-ui-devel-common = %{version}-%{release}
258 Requires: %{name}-ui-gtk3 = %{version}-%{release}
260 %description ui-gtk3-devel
261 Header files for Avahi GTK+ 3.x UI library.
263 %description ui-devel -l pl.UTF-8
264 Pliki nagłówkowe biblioteki Avahi GTK+ 3.x UI.
266 %package ui-gtk3-static
267 Summary: Static Avahi UI library - GTK+ 3.x version
268 Summary(pl.UTF-8): Statyczna biblioteka Avahi UI - wersja GTK+ 3.x
269 Group: X11/Development/Libraries
270 Requires: %{name}-ui-gtk3-devel = %{version}-%{release}
272 %description ui-gtk3-static
273 Static Avahi GTK+ 3.x UI library.
275 %description ui-gtk3-static -l pl.UTF-8
276 Statyczna biblioteka Avahi GTK+ 3.x UI.
278 %package compat-libdns_sd
279 Summary: Avahi Bonjour compat library
280 Summary(pl.UTF-8): Biblioteka Avahi zgodna z Bonjour
282 Requires: %{name}-libs = %{version}-%{release}
283 Provides: mdns-bonjour
284 Obsoletes: mDNSResponder-libs
286 %description compat-libdns_sd
287 Avahi Bonjour compat library.
289 %description compat-libdns_sd -l pl.UTF-8
290 Biblioteka Avahi zgodna z Bonjour.
292 %package compat-libdns_sd-devel
293 Summary: Header files for Avahi Bonjour compat library
294 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Bonjour
295 Group: Development/Libraries
296 Requires: %{name}-compat-libdns_sd = %{version}-%{release}
297 Requires: %{name}-devel = %{version}-%{release}
298 Provides: mdns-bonjour-devel
299 Obsoletes: mDNSResponder-devel
301 %description compat-libdns_sd-devel
302 Header files for Avahi Bonjour compat library.
304 %description compat-libdns_sd-devel -l pl.UTF-8
305 Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Bonjour.
307 %package compat-libdns_sd-static
308 Summary: Static Avahi Bonjour compat library
309 Summary(pl.UTF-8): Statyczna biblioteka Avahi zgodna z Bonjour
310 Group: Development/Libraries
311 Requires: %{name}-compat-libdns_sd-devel = %{version}-%{release}
312 Provides: mdns-bonjour-static
314 %description compat-libdns_sd-static
315 Static Avahi Bonjour compat library.
317 %description compat-libdns_sd-static -l pl.UTF-8
318 Statyczna biblioteka Avahi zgodna z Bonjour.
321 Summary: Avahi Howl compat library
322 Summary(pl.UTF-8): Biblioteka Avahi zgodna z Howl
324 Provides: mdns-howl-libs
327 %description compat-howl
328 Avahi Howl compat library.
330 %description compat-howl -l pl.UTF-8
331 Biblioteka Avahi zgodna z Howl.
333 %package compat-howl-devel
334 Summary: Header files for Avahi Howl compat library
335 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Howl
336 Group: Development/Libraries
337 Requires: %{name}-compat-howl = %{version}-%{release}
338 Requires: %{name}-devel = %{version}-%{release}
339 Provides: mdns-howl-devel
340 Obsoletes: howl-devel
342 %description compat-howl-devel
343 Header files for Avahi Howl compat library.
345 %description compat-howl-devel -l pl.UTF-8
346 Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Howl.
348 %package compat-howl-static
349 Summary: Static Avahi Howl compat library
350 Summary(pl.UTF-8): Statyczna biblioteka Avahi zgodna z Howl
351 Group: Development/Libraries
352 Requires: %{name}-compat-howl-devel = %{version}-%{release}
353 Provides: mdns-howl-static
354 Obsoletes: howl-static
356 %description compat-howl-static
357 Static Avahi Howl compat library.
359 %description compat-howl-static -l pl.UTF-8
360 Statyczna biblioteka Avahi zgodna z Howl.
363 Summary: Avahi GLib library bindings
364 Summary(pl.UTF-8): Wiązania Avahi dla bibioteki GLib
366 Requires: glib2 >= 1:2.12.2
369 Avahi GLib library bindings.
371 %description glib -l pl.UTF-8
372 Wiązania Avahi dla bibioteki GLib.
375 Summary: Header files for Avahi GLib library bindings
376 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki GLib
377 Group: Development/Libraries
378 Requires: %{name}-devel = %{version}-%{release}
379 Requires: %{name}-glib = %{version}-%{release}
380 Requires: glib2-devel >= 1:2.12.2
382 %description glib-devel
383 This is the package containing the header files for Avahi-glib
386 %description glib-devel -l pl.UTF-8
387 Ten pakiet zawiera pliki nagłówkowe biblioteki Avahi-glib.
390 Summary: Static Avahi GLib library
391 Summary(pl.UTF-8): Statyczna biblioteka Avahi GLib
392 Group: Development/Libraries
393 Requires: %{name}-glib-devel = %{version}-%{release}
395 %description glib-static
396 Static Avahi GLib library.
398 %description glib-static -l pl.UTF-8
399 Statyczna biblioteka Avahi GLib.
402 Summary: Avahi GObject interface
403 Summary(pl.UTF-8): Interfejs GObject do Avahi
405 Requires: glib2 >= 1:2.12.2
408 Avahi GObject interface.
410 %description gobject -l pl.UTF-8
411 Interfejs GObject do Avahi.
413 %package gobject-devel
414 Summary: Header files for Avahi GObject interface
415 Summary(pl.UTF-8): Pliki nagłówkowe interfejsu GObject do Avahi
416 Group: Development/Libraries
417 Requires: %{name}-devel = %{version}-%{release}
418 Requires: %{name}-gobject = %{version}-%{release}
419 Requires: glib2-devel >= 1:2.12.2
421 %description gobject-devel
422 This is the package containing the header files for Avahi GObject
425 %description gobject-devel -l pl.UTF-8
426 Ten pakiet zawiera pliki nagłówkowe interfejsu GObject do Avahi.
428 %package gobject-static
429 Summary: Static Avahi GObject library
430 Summary(pl.UTF-8): Statyczna biblioteka Avahi GObject
431 Group: Development/Libraries
432 Requires: %{name}-gobject-devel = %{version}-%{release}
434 %description gobject-static
435 Static Avahi GObject library.
437 %description gobject-static -l pl.UTF-8
438 Statyczna biblioteka Avahi GObject.
441 Summary: Avahi Qt 3 library bindings
442 Summary(pl.UTF-8): Wiązania Avahi dla biblioteki Qt 3
444 Requires: %{name}-libs = %{version}-%{release}
448 Avahi Qt 3 library bindings.
450 %description qt -l pl.UTF-8
451 Wiązania Avahi dla biblioteki Qt 3.
454 Summary: Header files for Avahi Qt 3 library bindings
455 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 3
456 Group: Development/Libraries
457 Requires: %{name}-devel = %{version}-%{release}
458 Requires: %{name}-qt = %{version}-%{release}
459 Requires: qt-devel >= 1:3.0
460 Obsoletes: avahi-qt3-devel
462 %description qt-devel
463 Header files for Avahi Qt 3 library bindings.
465 %description qt-devel -l pl.UTF-8
466 Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 3.
469 Summary: Static Avahi Qt 3 library
470 Summary(pl.UTF-8): Statyczna biblioteka Avahi Qt 3
471 Group: Development/Libraries
472 Requires: %{name}-qt-devel = %{version}-%{release}
473 Obsoletes: avahi-qt3-static
475 %description qt-static
476 Static Avahi Qt 3 library.
478 %description qt-static -l pl.UTF-8
479 Statyczna biblioteka Avahi Qt 3.
482 Summary: Avahi Qt 4 library bindings
483 Summary(pl.UTF-8): Wiązania Avahi dla biblioteki Qt 4
485 Requires: %{name}-libs = %{version}-%{release}
488 Avahi Qt 4 library bindings.
490 %description Qt -l pl.UTF-8
491 Wiązania Avahi dla biblioteki Qt 4.
494 Summary: Header files for Avahi Qt 4 library bindings
495 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 4
496 Group: Development/Libraries
497 Requires: %{name}-Qt = %{version}-%{release}
498 Requires: %{name}-devel = %{version}-%{release}
500 %description Qt-devel
501 Header files for Avahi Qt 4 library bindings.
503 %description Qt-devel -l pl.UTF-8
504 Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 4.
507 Summary: Static Avahi Qt 4 library
508 Summary(pl.UTF-8): Statyczna biblioteka Avahi Qt 4
509 Group: Development/Libraries
510 Requires: %{name}-Qt-devel = %{version}-%{release}
512 %description Qt-static
513 Static Avahi Qt 4 library.
515 %description Qt-static -l pl.UTF-8
516 Statyczna biblioteka Avahi Qt 4.
518 %package -n python-avahi
519 Summary: Avahi Python bindings
520 Summary(pl.UTF-8): Wiązania Avahi dla Pythona
521 Group: Development/Languages/Python
522 Requires: %{name}-libs = %{version}-%{release}
523 Requires: python-dbus >= 0.71
525 %description -n python-avahi
526 Avahi Python bindings.
528 %description -n python-avahi -l pl.UTF-8
529 Wiązania Avahi dla Pythona.
531 %package -n dotnet-avahi
532 Summary: Avahi MONO bindings
533 Summary(pl.UTF-8): Wiązania Avahi dla MONO
535 Requires: %{name}-libs = %{version}-%{release}
537 %description -n dotnet-avahi
540 %description -n dotnet-avahi -l pl.UTF-8
541 Wiązania Avahi dla MONO.
543 %package -n dotnet-avahi-devel
544 Summary: Development files for MONO Avahi bindings
545 Summary(pl.UTF-8): Pliki rozwojowe wiązań Avahi dla MONO
546 Group: Development/Libraries
547 Requires: dotnet-avahi = %{version}-%{release}
548 Requires: monodoc >= 2.6
550 %description -n dotnet-avahi-devel
551 Development files for MONO Avahi bindings.
553 %description -n dotnet-avahi-devel -l pl.UTF-8
554 Pliki rozwojowe wiązań Avahi dla MONO.
556 %package -n dotnet-avahi-ui
557 Summary: Avahi UI MONO bindings
558 Summary(pl.UTF-8): Wiązania Avahi UI dla MONO
560 Requires: %{name}-ui = %{version}-%{release}
561 Requires: dotnet-avahi = %{version}-%{release}
563 %description -n dotnet-avahi-ui
564 Avahi UI MONO bindings.
566 %description -n dotnet-avahi-ui -l pl.UTF-8
567 Wiązania Avahi UI dla MONO.
569 %package -n dotnet-avahi-ui-devel
570 Summary: Development files for MONO Avahi UI bindings
571 Summary(pl.UTF-8): Pliki rozwojowe wiązań Avahi UI dla MONO
572 Group: X11/Development/Libraries
573 Requires: dotnet-avahi-ui = %{version}-%{release}
574 Requires: monodoc >= 2.6
576 %description -n dotnet-avahi-ui-devel
577 Development files for MONO Avahi UI bindings.
579 %description -n dotnet-avahi-ui-devel -l pl.UTF-8
580 Pliki rozwojowe wiązań Avahi UI dla MONO.
583 Summary: Miniature web server
584 Summary(pl.UTF-8): Miniaturowy serwer WWW
587 %description bookmarks
588 A Python based miniature web server that browses for mDNS/DNS-SD
589 services of type '_http._tcp' (i.e. web sites) and makes them
590 available as HTML links on http://localhost:8080/.
592 %description bookmarks -l pl.UTF-8
593 Napisany w Pythonie miniaturowy serwer WWW, pozwalający na
594 przeglądanie usług typu '_http._tcp' (np. stron WWW) i udostępniający
595 je jako odnośniki HTML na http://localhost:8080/.
598 Summary: Avahi Zeroconf browser
599 Summary(pl.UTF-8): Przeglądarka Zeroconf Avahi
601 Requires: python-avahi = %{version}-%{release}
602 Requires: python-pygtk-glade >= 2:2.9.6
604 %description discover
605 A tool for enumerating all available services on the local LAN
606 (python-pygtk implementation).
608 %description discover -l pl.UTF-8
609 Narzędzie wymieniające wszystkie dostępne usługi w sieci lokalnej LAN
610 (implementacja w python-pygtk).
612 %package discover-standalone
613 Summary: Avahi Zeroconf browser
614 Summary(pl.UTF-8): Przeglądarka Zeroconf Avahi
616 Requires: %{name}-glib = %{version}-%{release}
618 %description discover-standalone
619 GTK+ tool for enumerating all available services on the local LAN.
621 %description discover-standalone -l pl.UTF-8
622 Narzędzie GTK+ wymieniające wszystkie dostępne usługi w sieci lokalnej
626 Summary: Avahi CLI utilities
627 Summary(pl.UTF-8): Narzędzia CLI Avahi
631 Command line utilities using avahi-client.
633 %description utils -l pl.UTF-8
634 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}/dbus-1/interfaces/org.freedesktop.Avahi.*.xml
807 %{_mandir}/man1/avahi-set-host-name.1*
808 %{_mandir}/man5/avahi-daemon.conf.5*
809 %{_mandir}/man5/avahi.hosts.5*
810 %{_mandir}/man5/avahi.service.5*
811 %{_mandir}/man8/avahi-daemon.8*
812 %{_mandir}/man8/avahi-dnsconfd.8*
813 %{_mandir}/man8/avahi-dnsconfd.action.8*
815 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
816 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
819 %defattr(644,root,root,755)
820 %dir %{_sysconfdir}/avahi
821 %attr(755,root,root) %{_sysconfdir}/%{name}/avahi-autoipd.action
822 %config(noreplace) %verify(not md5 mtime size) /etc/dhclient-enter-hooks.d/avahi-autoipd
823 %config(noreplace) %verify(not md5 mtime size) /etc/dhclient-exit-hooks.d/avahi-autoipd
824 %attr(755,root,root) %{_sbindir}/avahi-autoipd
825 %{_mandir}/man8/avahi-autoipd.8*
826 %{_mandir}/man8/avahi-autoipd.action.8*
828 %files libs -f %{name}.lang
829 %defattr(644,root,root,755)
830 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
831 %attr(755,root,root) %ghost %{_libdir}/libavahi-client.so.3
832 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
833 %attr(755,root,root) %ghost %{_libdir}/libavahi-common.so.3
834 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
835 %attr(755,root,root) %ghost %{_libdir}/libavahi-core.so.7
836 # common for -discover*
837 %dir %{_datadir}/%{name}
838 %dir %{_datadir}/%{name}/interfaces
841 %defattr(644,root,root,755)
842 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
843 %attr(755,root,root) %{_libdir}/libavahi-client.so
844 %attr(755,root,root) %{_libdir}/libavahi-common.so
845 %attr(755,root,root) %{_libdir}/libavahi-core.so
846 %{_includedir}/avahi-client
847 %{_includedir}/avahi-common
848 %{_includedir}/avahi-core
849 %{_pkgconfigdir}/avahi-client.pc
850 %{_pkgconfigdir}/avahi-core.pc
853 %defattr(644,root,root,755)
854 %{_libdir}/libavahi-client.a
855 %{_libdir}/libavahi-common.a
856 %{_libdir}/libavahi-core.a
860 %defattr(644,root,root,755)
861 %attr(755,root,root) %{_libdir}/libavahi-ui.so.*.*.*
862 %attr(755,root,root) %ghost %{_libdir}/libavahi-ui.so.0
864 %attr(755,root,root) %{_bindir}/bshell
865 %attr(755,root,root) %{_bindir}/bssh
866 %attr(755,root,root) %{_bindir}/bvnc
867 %{_mandir}/man1/bshell.1*
868 %{_mandir}/man1/bssh.1*
869 %{_mandir}/man1/bvnc.1*
870 %{_desktopdir}/bssh.desktop
871 %{_desktopdir}/bvnc.desktop
875 %defattr(644,root,root,755)
876 %attr(755,root,root) %{_libdir}/libavahi-ui.so
877 %{_pkgconfigdir}/avahi-ui.pc
880 %defattr(644,root,root,755)
881 %{_libdir}/libavahi-ui.a
884 %if %{with gtk} || %{with gtk3}
885 %files ui-devel-common
886 %defattr(644,root,root,755)
887 %{_includedir}/avahi-ui
892 %defattr(644,root,root,755)
893 %attr(755,root,root) %{_bindir}/bshell
894 %attr(755,root,root) %{_bindir}/bssh
895 %attr(755,root,root) %{_bindir}/bvnc
896 %attr(755,root,root) %{_libdir}/libavahi-ui-gtk3.so.*.*.*
897 %attr(755,root,root) %ghost %{_libdir}/libavahi-ui-gtk3.so.0
898 %{_mandir}/man1/bshell.1*
899 %{_mandir}/man1/bssh.1*
900 %{_mandir}/man1/bvnc.1*
901 %{_desktopdir}/bssh.desktop
902 %{_desktopdir}/bvnc.desktop
905 %defattr(644,root,root,755)
906 %attr(755,root,root) %{_libdir}/libavahi-ui-gtk3.so
907 %{_pkgconfigdir}/avahi-ui-gtk3.pc
909 %files ui-gtk3-static
910 %defattr(644,root,root,755)
911 %{_libdir}/libavahi-ui-gtk3.a
914 %files compat-libdns_sd
915 %defattr(644,root,root,755)
916 %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.*
917 %attr(755,root,root) %ghost %{_libdir}/libdns_sd.so.1
919 %files compat-libdns_sd-devel
920 %defattr(644,root,root,755)
921 %attr(755,root,root) %{_libdir}/libdns_sd.so
922 %{_includedir}/avahi-compat-libdns_sd
923 %{_includedir}/dns_sd.h
924 %{_pkgconfigdir}/avahi-compat-libdns_sd.pc
926 %files compat-libdns_sd-static
927 %defattr(644,root,root,755)
928 %{_libdir}/libdns_sd.a
931 %defattr(644,root,root,755)
932 %attr(755,root,root) %{_libdir}/libhowl.so.*.*.*
933 %attr(755,root,root) %ghost %{_libdir}/libhowl.so.0
935 %files compat-howl-devel
936 %defattr(644,root,root,755)
937 %attr(755,root,root) %{_libdir}/libhowl.so
938 %{_includedir}/avahi-compat-howl
939 %{_pkgconfigdir}/avahi-compat-howl.pc
940 %{_pkgconfigdir}/howl.pc
942 %files compat-howl-static
943 %defattr(644,root,root,755)
946 %files -n python-avahi
947 %defattr(644,root,root,755)
951 %files -n dotnet-avahi
952 %defattr(644,root,root,755)
953 %{_prefix}/lib/mono/gac/avahi-sharp
955 %files -n dotnet-avahi-devel
956 %defattr(644,root,root,755)
957 %{_prefix}/lib/mono/avahi-sharp
958 %{_prefix}/lib/monodoc/sources/avahi-sharp-docs.*
959 %{_pkgconfigdir}/avahi-sharp.pc
961 %files -n dotnet-avahi-ui
962 %defattr(644,root,root,755)
963 %{_prefix}/lib/mono/gac/avahi-ui-sharp
965 %files -n dotnet-avahi-ui-devel
966 %defattr(644,root,root,755)
967 %{_prefix}/lib/mono/avahi-ui-sharp
968 %{_prefix}/lib/monodoc/sources/avahi-ui-sharp-docs.*
969 %{_pkgconfigdir}/avahi-ui-sharp.pc
973 %defattr(644,root,root,755)
974 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
975 %attr(755,root,root) %ghost %{_libdir}/libavahi-glib.so.1
978 %defattr(644,root,root,755)
979 %attr(755,root,root) %{_libdir}/libavahi-glib.so
980 %{_includedir}/avahi-glib
981 %{_pkgconfigdir}/avahi-glib.pc
984 %defattr(644,root,root,755)
985 %{_libdir}/libavahi-glib.a
988 %defattr(644,root,root,755)
989 %attr(755,root,root) %{_libdir}/libavahi-gobject.so.*.*.*
990 %attr(755,root,root) %ghost %{_libdir}/libavahi-gobject.so.0
991 %{_libdir}/girepository-1.0/Avahi-0.6.typelib
992 %{_libdir}/girepository-1.0/AvahiCore-0.6.typelib
995 %defattr(644,root,root,755)
996 %attr(755,root,root) %{_libdir}/libavahi-gobject.so
997 %{_includedir}/avahi-gobject
998 %{_pkgconfigdir}/avahi-gobject.pc
999 %{_datadir}/gir-1.0/Avahi-0.6.gir
1000 %{_datadir}/gir-1.0/AvahiCore-0.6.gir
1002 %files gobject-static
1003 %defattr(644,root,root,755)
1004 %{_libdir}/libavahi-gobject.a
1008 %defattr(644,root,root,755)
1009 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
1010 %attr(755,root,root) %ghost %{_libdir}/libavahi-qt3.so.1
1013 %defattr(644,root,root,755)
1014 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
1015 %{_includedir}/avahi-qt3
1016 %{_pkgconfigdir}/avahi-qt3.pc
1019 %defattr(644,root,root,755)
1020 %{_libdir}/libavahi-qt3.a
1025 %defattr(644,root,root,755)
1026 %attr(755,root,root) %{_libdir}/libavahi-qt4.so.*.*.*
1027 %attr(755,root,root) %ghost %{_libdir}/libavahi-qt4.so.1
1030 %defattr(644,root,root,755)
1031 %attr(755,root,root) %{_libdir}/libavahi-qt4.so
1032 %{_includedir}/avahi-qt4
1033 %{_pkgconfigdir}/avahi-qt4.pc
1036 %defattr(644,root,root,755)
1037 %{_libdir}/libavahi-qt4.a
1041 %defattr(644,root,root,755)
1042 %attr(755,root,root) %{_bindir}/avahi-bookmarks
1043 %{_mandir}/man1/avahi-bookmarks.1*
1047 %defattr(644,root,root,755)
1048 %attr(755,root,root) %{_bindir}/avahi-discover
1049 %{py_sitedir}/avahi_discover
1050 %{_datadir}/%{name}/interfaces/avahi-discover.ui
1051 %{_desktopdir}/avahi-discover.desktop
1052 %{_pixmapsdir}/avahi.png
1053 %{_mandir}/man1/avahi-discover.1*
1057 %files discover-standalone
1058 %defattr(644,root,root,755)
1059 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
1063 %defattr(644,root,root,755)
1064 %attr(755,root,root) %{_bindir}/avahi-browse
1065 %attr(755,root,root) %{_bindir}/avahi-browse-domains
1066 %attr(755,root,root) %{_bindir}/avahi-publish
1067 %attr(755,root,root) %{_bindir}/avahi-publish-address
1068 %attr(755,root,root) %{_bindir}/avahi-publish-service
1069 %attr(755,root,root) %{_bindir}/avahi-resolve
1070 %attr(755,root,root) %{_bindir}/avahi-resolve-address
1071 %attr(755,root,root) %{_bindir}/avahi-resolve-host-name
1072 %{_mandir}/man1/avahi-browse.1*
1073 %{_mandir}/man1/avahi-browse-domains.1*
1074 %{_mandir}/man1/avahi-publish.1*
1075 %{_mandir}/man1/avahi-publish-address.1*
1076 %{_mandir}/man1/avahi-publish-service.1*
1077 %{_mandir}/man1/avahi-resolve.1*
1078 %{_mandir}/man1/avahi-resolve-address.1*
1079 %{_mandir}/man1/avahi-resolve-host-name.1*