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 %{?with_dotnet:%include /usr/lib/rpm/macros.mono}
29 Summary: Free mDNS/DNS-SD/Zeroconf implementation
30 Summary(pl.UTF-8): Wolna implementacja mDNS/DNS-SD/Zeroconf
36 Source0: http://avahi.org/download/%{name}-%{version}.tar.gz
37 # Source0-md5: 2f22745b8f7368ad5a0a3fddac343f2d
38 Source1: %{name}-daemon
39 Source2: %{name}-dnsconfd
41 Source4: %{name}-daemon.upstart
42 Source5: %{name}-dnsconfd.upstart
43 Patch0: %{name}-desktop.patch
44 Patch1: %{name}-glade.patch
45 Patch2: %{name}-destdir.patch
46 Patch3: %{name}-mono-dir.patch
47 Patch4: nss-mdns-package.patch
48 Patch5: %{name}-dhclient_hooks.patch
49 Patch6: %{name}-autoipd-sbin_ip.patch
50 URL: http://avahi.org/
51 BuildRequires: autoconf >= 2.63
52 BuildRequires: automake >= 1:1.11
53 BuildRequires: dbus-devel >= 0.92
55 BuildRequires: doxygen
56 # for the 'dot' tool used by doxygen
57 BuildRequires: graphviz
59 BuildRequires: expat-devel
60 BuildRequires: gdbm-devel
61 BuildRequires: gettext-devel
62 BuildRequires: gobject-introspection-devel >= 0.9.5
64 BuildRequires: glib2-devel >= 1:2.12.2
65 BuildRequires: gtk+2-devel >= 2:2.14.0
68 BuildRequires: glib2-devel >= 1:2.28.0
69 BuildRequires: gtk+3-devel >= 3.0.0
71 BuildRequires: intltool >= 0.35
72 BuildRequires: libcap-devel
73 BuildRequires: libdaemon-devel >= 0.14
74 BuildRequires: libtool
76 BuildRequires: dotnet-gtk-sharp2-devel >= 2.10
77 BuildRequires: mono-csharp
78 BuildRequires: monodoc >= 2.6
80 BuildRequires: pkgconfig
81 BuildRequires: python >= 1:2.4
82 BuildRequires: python-dbus >= 0.71
83 %{?with_pygtk:BuildRequires: python-pygtk-devel >= 2:2.9.6}
85 BuildRequires: qt-devel >= 1:3.0
88 BuildRequires: QtCore-devel >= 4.0.0
89 BuildRequires: qt4-build
91 BuildRequires: rpm-pythonprov
92 BuildRequires: rpmbuild(macros) >= 1.626
93 Requires(post,preun): /sbin/chkconfig
94 Requires(post,preun,postun): systemd-units >= 38
95 Requires: %{name}-libs = %{version}-%{release}
96 Requires: dbus >= 0.92
97 Requires: libdaemon >= 0.14
98 Requires: rc-scripts >= 0.4.3
99 Requires: systemd-units >= 38
100 Suggests: nss_mdns >= 0.10-2
101 Provides: group(avahi)
102 Provides: user(avahi)
103 Obsoletes: avahi-systemd
104 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
107 Avahi is an implementation the DNS Service Discovery and Multicast DNS
108 specifications for Zeroconf Computing. It uses D-BUS for communication
109 between user applications and a system daemon.
111 %description -l pl.UTF-8
112 Avahi jest implementacją specyfikacji DNS Service Discovery i
113 Multicast DNS dla Zeroconf Computing. Używa D-BUSa dla komunikacji
114 pomiędzy programami użytkownika a demonem systemowym.
117 Summary: Upstart jobs description for Avahi daemons
118 Summary(pl.UTF-8): Opis zadań Upstart dla demonów Avahi
120 Requires: %{name} = %{version}-%{release}
121 Requires: upstart >= 0.6
122 Conflicts: syslog-ng-upstart < 3.2.4-1
125 Upstart jobs description for Avahi daemons.
127 %description upstart -l pl.UTF-8
128 Opis zadań Upstart dla demonów Avahi.
131 Summary: IPv4LL network address configuration daemon
132 Summary(pl.UTF-8): Demon configurujący adresy IPv4LL
133 Group: Networking/Daemons
134 Requires(postun): /usr/sbin/groupdel
135 Requires(postun): /usr/sbin/userdel
136 Requires(pre): /bin/id
137 Requires(pre): /usr/bin/getgid
138 Requires(pre): /usr/sbin/groupadd
139 Requires(pre): /usr/sbin/useradd
140 Provides: group(avahi)
141 Provides: user(avahi)
144 avahi-autoipd implements IPv4LL, "Dynamic Configuration of IPv4 Link-
145 Local Addresses" (IETF RFC3927), a protocol for automatic IP address
146 configuration from the link-local 169.254.0.0/16 range without the
147 need for a central server. It is primarily intended to be used in
148 ad-hoc networks which lack a DHCP server.
150 IPv4LL is part of the Zeroconf stack.
152 %description autoipd -l pl.UTF-8
153 avahi-autoipd jest implementacją IPv4LL, protokołu umożliwiającego
154 automatyczną konfigurację adresu z zakresu 169.254.0.0/16 bez potrzeby
155 użycia centralnego serwera. Jego głównym zastosowaniem są sieci
156 ad-hoc, w których brakuje serwera DHCP.
158 IPv4LL jest częścią stosu Zeroconf.
161 Summary: Avahi client, common and core libraries
162 Summary(pl.UTF-8): Biblioteki Avahi: klienta, wspólna i główna
166 Avahi client, common and core libraries.
168 %description libs -l pl.UTF-8
169 Biblioteki Avahi: klienta, wspólna i główna.
172 Summary: Header files for Avahi library
173 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi
174 Group: Development/Libraries
175 Requires: %{name}-libs = %{version}-%{release}
176 Requires: dbus-devel >= 0.92
177 Requires: expat-devel
180 This is the package containing the header files for Avahi library.
182 %description devel -l pl.UTF-8
183 Ten pakiet zawiera pliki nagłówkowe biblioteki Avahi.
186 Summary: Static Avahi library
187 Summary(pl.UTF-8): Statyczna biblioteka Avahi
188 Group: Development/Libraries
189 Requires: %{name}-devel = %{version}-%{release}
192 Static Avahi library.
194 %description static -l pl.UTF-8
195 Statyczna biblioteka Avahi.
198 Summary: Avahi UI library
199 Summary(pl.UTF-8): Biblioteka Avahi UI
201 Requires: %{name}-libs = %{version}-%{release}
202 Requires: gtk+2 >= 2:2.14.0
205 Common GTK+ UI support library for Avahi.
207 %description ui -l pl.UTF-8
208 Biblioteka wspólnego interfejsu użytkownika GTK+ dla Avahi.
211 Summary: Header files for Avahi UI library
212 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi UI
213 Group: X11/Development/Libraries
214 Requires: %{name}-devel = %{version}-%{release}
215 Requires: %{name}-ui = %{version}-%{release}
216 Requires: %{name}-ui-devel-common = %{version}-%{release}
217 Requires: gtk+2-devel >= 2:2.14.0
219 %description ui-devel
220 Header files for Avahi UI library.
222 %description ui-devel -l pl.UTF-8
223 Pliki nagłówkowe biblioteki Avahi UI.
226 Summary: Static Avahi UI library
227 Summary(pl.UTF-8): Statyczna biblioteka Avahi UI
228 Group: X11/Development/Libraries
229 Requires: %{name}-ui-devel = %{version}-%{release}
231 %description ui-static
232 Static Avahi UI library.
234 %description ui-static -l pl.UTF-8
235 Statyczna biblioteka Avahi UI.
237 %package ui-devel-common
238 Summary: Header files for Avahi UI library
239 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi UI
240 Group: X11/Development/Libraries
241 Requires: %{name}-devel = %{version}-%{release}
243 %description ui-devel-common
244 Header files for Avahi UI library.
246 %description ui-devel-common -l pl.UTF-8
247 Pliki nagłówkowe biblioteki Avahi GTK+ UI.
250 Summary: Avahi UI library - GTK+ 3.x version
251 Summary(pl.UTF-8): Biblioteka Avahi UI - wersja dla GTK+ 3.x
253 Requires: %{name}-libs = %{version}-%{release}
256 Common GTK+ 3.x UI support library for Avahi.
258 %description ui-gtk3 -l pl.UTF-8
259 Biblioteka wspólnego interfejsu użytkownika GTK+ 3.x dla Avahi.
261 %package ui-gtk3-devel
262 Summary: Header files for Avahi UI library - GTK+ 3.x version
263 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi UI - wersja dla GTK+ 3.x
264 Group: X11/Development/Libraries
265 Requires: %{name}-devel = %{version}-%{release}
266 Requires: %{name}-ui-devel-common = %{version}-%{release}
267 Requires: %{name}-ui-gtk3 = %{version}-%{release}
269 %description ui-gtk3-devel
270 Header files for Avahi GTK+ 3.x UI library.
272 %description ui-devel -l pl.UTF-8
273 Pliki nagłówkowe biblioteki Avahi GTK+ 3.x UI.
275 %package ui-gtk3-static
276 Summary: Static Avahi UI library - GTK+ 3.x version
277 Summary(pl.UTF-8): Statyczna biblioteka Avahi UI - wersja GTK+ 3.x
278 Group: X11/Development/Libraries
279 Requires: %{name}-ui-gtk3-devel = %{version}-%{release}
281 %description ui-gtk3-static
282 Static Avahi GTK+ 3.x UI library.
284 %description ui-gtk3-static -l pl.UTF-8
285 Statyczna biblioteka Avahi GTK+ 3.x UI.
287 %package compat-libdns_sd
288 Summary: Avahi Bonjour compat library
289 Summary(pl.UTF-8): Biblioteka Avahi zgodna z Bonjour
291 Provides: mdns-bonjour
292 Obsoletes: mDNSResponder-libs
294 %description compat-libdns_sd
295 Avahi Bonjour compat library.
297 %description compat-libdns_sd -l pl.UTF-8
298 Biblioteka Avahi zgodna z Bonjour.
300 %package compat-libdns_sd-devel
301 Summary: Header files for Avahi Bonjour compat library
302 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Bonjour
303 Group: Development/Libraries
304 Requires: %{name}-compat-libdns_sd = %{version}-%{release}
305 Requires: %{name}-devel = %{version}-%{release}
306 Provides: mdns-bonjour-devel
307 Obsoletes: mDNSResponder-devel
309 %description compat-libdns_sd-devel
310 Header files for Avahi Bonjour compat library.
312 %description compat-libdns_sd-devel -l pl.UTF-8
313 Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Bonjour.
315 %package compat-libdns_sd-static
316 Summary: Static Avahi Bonjour compat library
317 Summary(pl.UTF-8): Statyczna biblioteka Avahi zgodna z Bonjour
318 Group: Development/Libraries
319 Requires: %{name}-compat-libdns_sd-devel = %{version}-%{release}
320 Provides: mdns-bonjour-static
322 %description compat-libdns_sd-static
323 Static Avahi Bonjour compat library.
325 %description compat-libdns_sd-static -l pl.UTF-8
326 Statyczna biblioteka Avahi zgodna z Bonjour.
329 Summary: Avahi Howl compat library
330 Summary(pl.UTF-8): Biblioteka Avahi zgodna z Howl
332 Provides: mdns-howl-libs
335 %description compat-howl
336 Avahi Howl compat library.
338 %description compat-howl -l pl.UTF-8
339 Biblioteka Avahi zgodna z Howl.
341 %package compat-howl-devel
342 Summary: Header files for Avahi Howl compat library
343 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Howl
344 Group: Development/Libraries
345 Requires: %{name}-compat-howl = %{version}-%{release}
346 Requires: %{name}-devel = %{version}-%{release}
347 Provides: mdns-howl-devel
348 Obsoletes: howl-devel
350 %description compat-howl-devel
351 Header files for Avahi Howl compat library.
353 %description compat-howl-devel -l pl.UTF-8
354 Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Howl.
356 %package compat-howl-static
357 Summary: Static Avahi Howl compat library
358 Summary(pl.UTF-8): Statyczna biblioteka Avahi zgodna z Howl
359 Group: Development/Libraries
360 Requires: %{name}-compat-howl-devel = %{version}-%{release}
361 Provides: mdns-howl-static
362 Obsoletes: howl-static
364 %description compat-howl-static
365 Static Avahi Howl compat library.
367 %description compat-howl-static -l pl.UTF-8
368 Statyczna biblioteka Avahi zgodna z Howl.
371 Summary: Avahi GLib library bindings
372 Summary(pl.UTF-8): Wiązania Avahi dla bibioteki GLib
376 Avahi GLib library bindings.
378 %description glib -l pl.UTF-8
379 Wiązania Avahi dla bibioteki GLib.
382 Summary: Header files for Avahi GLib library bindings
383 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki GLib
384 Group: Development/Libraries
385 Requires: %{name}-devel = %{version}-%{release}
386 Requires: %{name}-glib = %{version}-%{release}
387 Requires: glib2-devel >= 1:2.12.2
389 %description glib-devel
390 This is the package containing the header files for Avahi-glib
393 %description glib-devel -l pl.UTF-8
394 Ten pakiet zawiera pliki nagłówkowe biblioteki Avahi-glib.
397 Summary: Static Avahi GLib library
398 Summary(pl.UTF-8): Statyczna biblioteka Avahi GLib
399 Group: Development/Libraries
400 Requires: %{name}-glib-devel = %{version}-%{release}
402 %description glib-static
403 Static Avahi GLib library.
405 %description glib-static -l pl.UTF-8
406 Statyczna biblioteka Avahi GLib.
409 Summary: Avahi GObject interface
410 Summary(pl.UTF-8): Interfejs GObject do Avahi
414 Avahi GObject interface.
416 %description gobject -l pl.UTF-8
417 Interfejs GObject do Avahi.
419 %package gobject-devel
420 Summary: Header files for Avahi GObject interface
421 Summary(pl.UTF-8): Pliki nagłówkowe interfejsu GObject do Avahi
422 Group: Development/Libraries
423 Requires: %{name}-devel = %{version}-%{release}
424 Requires: %{name}-gobject = %{version}-%{release}
425 Requires: glib2-devel >= 1:2.12.2
427 %description gobject-devel
428 This is the package containing the header files for Avahi GObject
431 %description gobject-devel -l pl.UTF-8
432 Ten pakiet zawiera pliki nagłówkowe interfejsu GObject do Avahi.
434 %package gobject-static
435 Summary: Static Avahi GObject library
436 Summary(pl.UTF-8): Statyczna biblioteka Avahi GObject
437 Group: Development/Libraries
438 Requires: %{name}-gobject-devel = %{version}-%{release}
440 %description gobject-static
441 Static Avahi GObject library.
443 %description gobject-static -l pl.UTF-8
444 Statyczna biblioteka Avahi GObject.
447 Summary: Avahi Qt 3 library bindings
448 Summary(pl.UTF-8): Wiązania Avahi dla biblioteki Qt 3
450 Requires: %{name}-libs = %{version}-%{release}
454 Avahi Qt 3 library bindings.
456 %description qt -l pl.UTF-8
457 Wiązania Avahi dla biblioteki Qt 3.
460 Summary: Header files for Avahi Qt 3 library bindings
461 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 3
462 Group: Development/Libraries
463 Requires: %{name}-devel = %{version}-%{release}
464 Requires: %{name}-qt = %{version}-%{release}
465 Requires: qt-devel >= 1:3.0
466 Obsoletes: avahi-qt3-devel
468 %description qt-devel
469 Header files for Avahi Qt 3 library bindings.
471 %description qt-devel -l pl.UTF-8
472 Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 3.
475 Summary: Static Avahi Qt 3 library
476 Summary(pl.UTF-8): Statyczna biblioteka Avahi Qt 3
477 Group: Development/Libraries
478 Requires: %{name}-qt-devel = %{version}-%{release}
479 Obsoletes: avahi-qt3-static
481 %description qt-static
482 Static Avahi Qt 3 library.
484 %description qt-static -l pl.UTF-8
485 Statyczna biblioteka Avahi Qt 3.
488 Summary: Avahi Qt 4 library bindings
489 Summary(pl.UTF-8): Wiązania Avahi dla biblioteki Qt 4
491 Requires: %{name}-libs = %{version}-%{release}
494 Avahi Qt 4 library bindings.
496 %description Qt -l pl.UTF-8
497 Wiązania Avahi dla biblioteki Qt 4.
500 Summary: Header files for Avahi Qt 4 library bindings
501 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 4
502 Group: Development/Libraries
503 Requires: %{name}-Qt = %{version}-%{release}
504 Requires: %{name}-devel = %{version}-%{release}
506 %description Qt-devel
507 Header files for Avahi Qt 4 library bindings.
509 %description Qt-devel -l pl.UTF-8
510 Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 4.
513 Summary: Static Avahi Qt 4 library
514 Summary(pl.UTF-8): Statyczna biblioteka Avahi Qt 4
515 Group: Development/Libraries
516 Requires: %{name}-Qt-devel = %{version}-%{release}
518 %description Qt-static
519 Static Avahi Qt 4 library.
521 %description Qt-static -l pl.UTF-8
522 Statyczna biblioteka Avahi Qt 4.
524 %package -n python-avahi
525 Summary: Avahi Python bindings
526 Summary(pl.UTF-8): Wiązania Avahi dla Pythona
527 Group: Development/Languages/Python
528 Requires: %{name}-libs = %{version}-%{release}
529 Requires: python-dbus >= 0.71
531 %description -n python-avahi
532 Avahi Python bindings.
534 %description -n python-avahi -l pl.UTF-8
535 Wiązania Avahi dla Pythona.
537 %package -n dotnet-avahi
538 Summary: Avahi MONO bindings
539 Summary(pl.UTF-8): Wiązania Avahi dla MONO
541 Requires: %{name}-libs = %{version}-%{release}
543 %description -n dotnet-avahi
546 %description -n dotnet-avahi -l pl.UTF-8
547 Wiązania Avahi dla MONO.
549 %package -n dotnet-avahi-devel
550 Summary: Development files for MONO Avahi bindings
551 Summary(pl.UTF-8): Pliki rozwojowe wiązań Avahi dla MONO
552 Group: Development/Libraries
553 Requires: dotnet-avahi = %{version}-%{release}
554 Requires: monodoc >= 2.6
556 %description -n dotnet-avahi-devel
557 Development files for MONO Avahi bindings.
559 %description -n dotnet-avahi-devel -l pl.UTF-8
560 Pliki rozwojowe wiązań Avahi dla MONO.
562 %package -n dotnet-avahi-ui
563 Summary: Avahi UI MONO bindings
564 Summary(pl.UTF-8): Wiązania Avahi UI dla MONO
566 Requires: %{name}-ui = %{version}-%{release}
567 Requires: dotnet-avahi = %{version}-%{release}
569 %description -n dotnet-avahi-ui
570 Avahi UI MONO bindings.
572 %description -n dotnet-avahi-ui -l pl.UTF-8
573 Wiązania Avahi UI dla MONO.
575 %package -n dotnet-avahi-ui-devel
576 Summary: Development files for MONO Avahi UI bindings
577 Summary(pl.UTF-8): Pliki rozwojowe wiązań Avahi UI dla MONO
578 Group: X11/Development/Libraries
579 Requires: dotnet-avahi-ui = %{version}-%{release}
580 Requires: monodoc >= 2.6
582 %description -n dotnet-avahi-ui-devel
583 Development files for MONO Avahi UI bindings.
585 %description -n dotnet-avahi-ui-devel -l pl.UTF-8
586 Pliki rozwojowe wiązań Avahi UI dla MONO.
589 Summary: Miniature web server
590 Summary(pl.UTF-8): Miniaturowy serwer WWW
593 %description bookmarks
594 A Python based miniature web server that browses for mDNS/DNS-SD
595 services of type '_http._tcp' (i.e. web sites) and makes them
596 available as HTML links on http://localhost:8080/.
598 %description bookmarks -l pl.UTF-8
599 Napisany w Pythonie miniaturowy serwer WWW, pozwalający na
600 przeglądanie usług typu '_http._tcp' (np. stron WWW) i udostępniający
601 je jako odnośniki HTML na http://localhost:8080/.
604 Summary: Avahi Zeroconf browser
605 Summary(pl.UTF-8): Przeglądarka Zeroconf Avahi
607 Requires: python-avahi = %{version}-%{release}
608 Requires: python-pygtk-glade >= 2:2.9.6
610 %description discover
611 A tool for enumerating all available services on the local LAN
612 (python-pygtk implementation).
614 %description discover -l pl.UTF-8
615 Narzędzie wymieniające wszystkie dostępne usługi w sieci lokalnej LAN
616 (implementacja w python-pygtk).
618 %package discover-standalone
619 Summary: Avahi Zeroconf browser
620 Summary(pl.UTF-8): Przeglądarka Zeroconf Avahi
622 Requires: %{name}-glib = %{version}-%{release}
624 %description discover-standalone
625 GTK+ tool for enumerating all available services on the local LAN.
627 %description discover-standalone -l pl.UTF-8
628 Narzędzie GTK+ wymieniające wszystkie dostępne usługi w sieci lokalnej
632 Summary: Avahi CLI utilities
633 Summary(pl.UTF-8): Narzędzia CLI Avahi
637 Command line utilities using avahi-client.
639 %description utils -l pl.UTF-8
640 Narzędzia linii poleceń korzystające z avahi-client.
655 %{__aclocal} -I common
660 --disable-silent-rules \
661 --enable-compat-libdns_sd \
662 --enable-compat-howl \
664 %{!?with_apidocs:--disable-doxygen-doc} \
665 %{!?with_gtk:--disable-gtk} \
666 %{!?with_gtk3:--disable-gtk3} \
667 %{!?with_pygtk:--disable-pygtk} \
668 %{!?with_qt3:--disable-qt3} \
669 %{!?with_qt4:--disable-qt4} \
670 %{!?with_dotnet:--disable-mono} \
671 %{!?with_dotnet:--disable-monodoc} \
672 --with-systemdsystemunitdir=%{systemdunitdir} \
673 --with-avahi-priv-access-group=adm \
674 --with-autoipd-user=avahi \
675 --with-autoipd-group=avahi
679 rm -rf $RPM_BUILD_ROOT
680 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d,/etc/init}
683 DESTDIR=$RPM_BUILD_ROOT \
684 pythondir=%{py_sitedir}
686 install -p %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
687 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
689 cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/init/avahi-daemon.conf
690 cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/init/avahi-dnsconfd.conf
692 ln -sf %{_includedir}/avahi-compat-libdns_sd/dns_sd.h \
693 $RPM_BUILD_ROOT%{_includedir}/dns_sd.h
695 ln -sf %{_pkgconfigdir}/avahi-compat-howl.pc \
696 $RPM_BUILD_ROOT%{_pkgconfigdir}/howl.pc
698 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
699 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
702 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/avahi-{browse-domains,publish-address,publish-service,resolve-address,resolve-host-name}.1
703 %{?with_gtk:%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/bvnc.1}
704 echo '.so avahi-browse.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-browse-domains.1
705 echo '.so avahi-publish.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-publish-address.1
706 echo '.so avahi-publish.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-publish-service.1
707 echo '.so avahi-resolve.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-resolve-address.1
708 echo '.so avahi-resolve.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-resolve-host-name.1
709 echo '.so bssh.1' > $RPM_BUILD_ROOT%{_mandir}/man1/bvnc.1
710 echo '.so bssh.1' > $RPM_BUILD_ROOT%{_mandir}/man1/bshell.1
712 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
717 rm -rf $RPM_BUILD_ROOT
720 %groupadd -g 165 -r -f avahi
721 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
724 %groupadd -g 165 -r -f avahi
725 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
728 /sbin/chkconfig --add %{name}-daemon
729 %service %{name}-daemon restart
730 /sbin/chkconfig --add %{name}-dnsconfd
731 %service %{name}-dnsconfd restart
732 %systemd_post avahi-daemon.service avahi-dnsconfd.service avahi-daemon.socket
735 if [ "$1" = "0" ]; then
736 %service -q %{name}-dnsconfd stop
737 /sbin/chkconfig --del %{name}-dnsconfd
738 %service -q %{name}-daemon stop
739 /sbin/chkconfig --del %{name}-daemon
741 %systemd_preun avahi-daemon.service avahi-dnsconfd.service avahi-daemon.socket
744 if [ "$1" = "0" ]; then
750 %triggerpostun -- avahi < 0.6.30-7
751 %systemd_trigger avahi-daemon.service avahi-dnsconfd.service avahi-daemon.socket
754 if [ "$1" = "0" ]; then
760 %upstart_post avahi-daemon
761 %upstart_post avahi-dnsconfd
764 %upstart_postun avahi-daemon
765 %upstart_postun avahi-dnsconfd
767 %post libs -p /sbin/ldconfig
768 %postun libs -p /sbin/ldconfig
770 %post ui -p /sbin/ldconfig
771 %postun ui -p /sbin/ldconfig
773 %post ui-gtk3 -p /sbin/ldconfig
774 %postun ui-gtk3 -p /sbin/ldconfig
776 %post compat-libdns_sd -p /sbin/ldconfig
777 %postun compat-libdns_sd -p /sbin/ldconfig
779 %post compat-howl -p /sbin/ldconfig
780 %postun compat-howl -p /sbin/ldconfig
782 %post glib -p /sbin/ldconfig
783 %postun glib -p /sbin/ldconfig
785 %post gobject -p /sbin/ldconfig
786 %postun gobject -p /sbin/ldconfig
788 %post qt -p /sbin/ldconfig
789 %postun qt -p /sbin/ldconfig
791 %post Qt -p /sbin/ldconfig
792 %postun Qt -p /sbin/ldconfig
795 %defattr(644,root,root,755)
796 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
798 %dir %{_sysconfdir}/avahi
799 %dir %{_sysconfdir}/avahi/services
800 %attr(755,root,root) %{_sysconfdir}/avahi/avahi-dnsconfd.action
801 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
802 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/hosts
803 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
804 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/sftp-ssh.service
805 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/avahi-dbus.conf
807 %{systemdunitdir}/avahi-daemon.service
808 %{systemdunitdir}/avahi-daemon.socket
809 %{systemdunitdir}/avahi-dnsconfd.service
810 %{_datadir}/dbus-1/system-services/org.freedesktop.Avahi.service
812 %attr(755,root,root) %{_bindir}/avahi-set-host-name
814 %attr(755,root,root) %{_sbindir}/avahi-daemon
815 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
816 %dir %{_libdir}/%{name}
817 %{_libdir}/%{name}/service-types.db
818 %{_datadir}/%{name}/avahi-service.dtd
819 %{_datadir}/%{name}/service-types
820 %{_datadir}/dbus-1/interfaces/org.freedesktop.Avahi.*.xml
822 %{_mandir}/man1/avahi-set-host-name.1*
823 %{_mandir}/man5/avahi-daemon.conf.5*
824 %{_mandir}/man5/avahi.hosts.5*
825 %{_mandir}/man5/avahi.service.5*
826 %{_mandir}/man8/avahi-daemon.8*
827 %{_mandir}/man8/avahi-dnsconfd.8*
828 %{_mandir}/man8/avahi-dnsconfd.action.8*
830 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
831 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
833 %if "%{pld_release}" != "ti"
835 %defattr(644,root,root,755)
836 %config(noreplace) %verify(not md5 mtime size) /etc/init/*.conf
840 %defattr(644,root,root,755)
841 %dir %{_sysconfdir}/avahi
842 %attr(755,root,root) %{_sysconfdir}/%{name}/avahi-autoipd.action
843 %config(noreplace) %verify(not md5 mtime size) /etc/dhclient-enter-hooks.d/avahi-autoipd
844 %config(noreplace) %verify(not md5 mtime size) /etc/dhclient-exit-hooks.d/avahi-autoipd
845 %attr(755,root,root) %{_sbindir}/avahi-autoipd
846 %{_mandir}/man8/avahi-autoipd.8*
847 %{_mandir}/man8/avahi-autoipd.action.8*
849 %files libs -f %{name}.lang
850 %defattr(644,root,root,755)
851 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
852 %attr(755,root,root) %ghost %{_libdir}/libavahi-client.so.3
853 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
854 %attr(755,root,root) %ghost %{_libdir}/libavahi-common.so.3
855 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
856 %attr(755,root,root) %ghost %{_libdir}/libavahi-core.so.7
857 # common for -discover*
858 %dir %{_datadir}/%{name}
859 %dir %{_datadir}/%{name}/interfaces
862 %defattr(644,root,root,755)
863 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
864 %attr(755,root,root) %{_libdir}/libavahi-client.so
865 %attr(755,root,root) %{_libdir}/libavahi-common.so
866 %attr(755,root,root) %{_libdir}/libavahi-core.so
867 %{_includedir}/avahi-client
868 %{_includedir}/avahi-common
869 %{_includedir}/avahi-core
870 %{_pkgconfigdir}/avahi-client.pc
871 %{_pkgconfigdir}/avahi-core.pc
874 %defattr(644,root,root,755)
875 %{_libdir}/libavahi-client.a
876 %{_libdir}/libavahi-common.a
877 %{_libdir}/libavahi-core.a
881 %defattr(644,root,root,755)
882 %attr(755,root,root) %{_libdir}/libavahi-ui.so.*.*.*
883 %attr(755,root,root) %ghost %{_libdir}/libavahi-ui.so.0
885 %attr(755,root,root) %{_bindir}/bshell
886 %attr(755,root,root) %{_bindir}/bssh
887 %attr(755,root,root) %{_bindir}/bvnc
888 %{_mandir}/man1/bshell.1*
889 %{_mandir}/man1/bssh.1*
890 %{_mandir}/man1/bvnc.1*
891 %{_desktopdir}/bssh.desktop
892 %{_desktopdir}/bvnc.desktop
896 %defattr(644,root,root,755)
897 %attr(755,root,root) %{_libdir}/libavahi-ui.so
898 %{_pkgconfigdir}/avahi-ui.pc
901 %defattr(644,root,root,755)
902 %{_libdir}/libavahi-ui.a
905 %if %{with gtk} || %{with gtk3}
906 %files ui-devel-common
907 %defattr(644,root,root,755)
908 %{_includedir}/avahi-ui
913 %defattr(644,root,root,755)
914 %attr(755,root,root) %{_bindir}/bshell
915 %attr(755,root,root) %{_bindir}/bssh
916 %attr(755,root,root) %{_bindir}/bvnc
917 %attr(755,root,root) %{_libdir}/libavahi-ui-gtk3.so.*.*.*
918 %attr(755,root,root) %ghost %{_libdir}/libavahi-ui-gtk3.so.0
919 %{_mandir}/man1/bshell.1*
920 %{_mandir}/man1/bssh.1*
921 %{_mandir}/man1/bvnc.1*
922 %{_desktopdir}/bssh.desktop
923 %{_desktopdir}/bvnc.desktop
926 %defattr(644,root,root,755)
927 %attr(755,root,root) %{_libdir}/libavahi-ui-gtk3.so
928 %{_pkgconfigdir}/avahi-ui-gtk3.pc
930 %files ui-gtk3-static
931 %defattr(644,root,root,755)
932 %{_libdir}/libavahi-ui-gtk3.a
935 %files compat-libdns_sd
936 %defattr(644,root,root,755)
937 %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.*
938 %attr(755,root,root) %ghost %{_libdir}/libdns_sd.so.1
940 %files compat-libdns_sd-devel
941 %defattr(644,root,root,755)
942 %attr(755,root,root) %{_libdir}/libdns_sd.so
943 %{_includedir}/avahi-compat-libdns_sd
944 %{_includedir}/dns_sd.h
945 %{_pkgconfigdir}/avahi-compat-libdns_sd.pc
947 %files compat-libdns_sd-static
948 %defattr(644,root,root,755)
949 %{_libdir}/libdns_sd.a
952 %defattr(644,root,root,755)
953 %attr(755,root,root) %{_libdir}/libhowl.so.*.*.*
954 %attr(755,root,root) %ghost %{_libdir}/libhowl.so.0
956 %files compat-howl-devel
957 %defattr(644,root,root,755)
958 %attr(755,root,root) %{_libdir}/libhowl.so
959 %{_includedir}/avahi-compat-howl
960 %{_pkgconfigdir}/avahi-compat-howl.pc
961 %{_pkgconfigdir}/howl.pc
963 %files compat-howl-static
964 %defattr(644,root,root,755)
967 %files -n python-avahi
968 %defattr(644,root,root,755)
972 %files -n dotnet-avahi
973 %defattr(644,root,root,755)
974 %{_prefix}/lib/mono/gac/avahi-sharp
976 %files -n dotnet-avahi-devel
977 %defattr(644,root,root,755)
978 %{_prefix}/lib/mono/avahi-sharp
979 %{_prefix}/lib/monodoc/sources/avahi-sharp-docs.*
980 %{_pkgconfigdir}/avahi-sharp.pc
982 %files -n dotnet-avahi-ui
983 %defattr(644,root,root,755)
984 %{_prefix}/lib/mono/gac/avahi-ui-sharp
986 %files -n dotnet-avahi-ui-devel
987 %defattr(644,root,root,755)
988 %{_prefix}/lib/mono/avahi-ui-sharp
989 %{_prefix}/lib/monodoc/sources/avahi-ui-sharp-docs.*
990 %{_pkgconfigdir}/avahi-ui-sharp.pc
994 %defattr(644,root,root,755)
995 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
996 %attr(755,root,root) %ghost %{_libdir}/libavahi-glib.so.1
999 %defattr(644,root,root,755)
1000 %attr(755,root,root) %{_libdir}/libavahi-glib.so
1001 %{_includedir}/avahi-glib
1002 %{_pkgconfigdir}/avahi-glib.pc
1005 %defattr(644,root,root,755)
1006 %{_libdir}/libavahi-glib.a
1009 %defattr(644,root,root,755)
1010 %attr(755,root,root) %{_libdir}/libavahi-gobject.so.*.*.*
1011 %attr(755,root,root) %ghost %{_libdir}/libavahi-gobject.so.0
1012 %{_libdir}/girepository-1.0/Avahi-0.6.typelib
1013 %{_libdir}/girepository-1.0/AvahiCore-0.6.typelib
1015 %files gobject-devel
1016 %defattr(644,root,root,755)
1017 %attr(755,root,root) %{_libdir}/libavahi-gobject.so
1018 %{_includedir}/avahi-gobject
1019 %{_pkgconfigdir}/avahi-gobject.pc
1020 %{_datadir}/gir-1.0/Avahi-0.6.gir
1021 %{_datadir}/gir-1.0/AvahiCore-0.6.gir
1023 %files gobject-static
1024 %defattr(644,root,root,755)
1025 %{_libdir}/libavahi-gobject.a
1029 %defattr(644,root,root,755)
1030 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
1031 %attr(755,root,root) %ghost %{_libdir}/libavahi-qt3.so.1
1034 %defattr(644,root,root,755)
1035 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
1036 %{_includedir}/avahi-qt3
1037 %{_pkgconfigdir}/avahi-qt3.pc
1040 %defattr(644,root,root,755)
1041 %{_libdir}/libavahi-qt3.a
1046 %defattr(644,root,root,755)
1047 %attr(755,root,root) %{_libdir}/libavahi-qt4.so.*.*.*
1048 %attr(755,root,root) %ghost %{_libdir}/libavahi-qt4.so.1
1051 %defattr(644,root,root,755)
1052 %attr(755,root,root) %{_libdir}/libavahi-qt4.so
1053 %{_includedir}/avahi-qt4
1054 %{_pkgconfigdir}/avahi-qt4.pc
1057 %defattr(644,root,root,755)
1058 %{_libdir}/libavahi-qt4.a
1062 %defattr(644,root,root,755)
1063 %attr(755,root,root) %{_bindir}/avahi-bookmarks
1064 %{_mandir}/man1/avahi-bookmarks.1*
1068 %defattr(644,root,root,755)
1069 %attr(755,root,root) %{_bindir}/avahi-discover
1070 %{py_sitedir}/avahi_discover
1071 %{_datadir}/%{name}/interfaces/avahi-discover.ui
1072 %{_desktopdir}/avahi-discover.desktop
1073 %{_pixmapsdir}/avahi.png
1074 %{_mandir}/man1/avahi-discover.1*
1078 %files discover-standalone
1079 %defattr(644,root,root,755)
1080 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
1081 %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade
1085 %defattr(644,root,root,755)
1086 %attr(755,root,root) %{_bindir}/avahi-browse
1087 %attr(755,root,root) %{_bindir}/avahi-browse-domains
1088 %attr(755,root,root) %{_bindir}/avahi-publish
1089 %attr(755,root,root) %{_bindir}/avahi-publish-address
1090 %attr(755,root,root) %{_bindir}/avahi-publish-service
1091 %attr(755,root,root) %{_bindir}/avahi-resolve
1092 %attr(755,root,root) %{_bindir}/avahi-resolve-address
1093 %attr(755,root,root) %{_bindir}/avahi-resolve-host-name
1094 %{_mandir}/man1/avahi-browse.1*
1095 %{_mandir}/man1/avahi-browse-domains.1*
1096 %{_mandir}/man1/avahi-publish.1*
1097 %{_mandir}/man1/avahi-publish-address.1*
1098 %{_mandir}/man1/avahi-publish-service.1*
1099 %{_mandir}/man1/avahi-resolve.1*
1100 %{_mandir}/man1/avahi-resolve-address.1*
1101 %{_mandir}/man1/avahi-resolve-host-name.1*