2 # - finish with_apidocs
3 # - qt and Qt packages make file collisions on case insensitive filesystems,
4 # consider adding version suffix to either of the pckages
7 %bcond_with apidocs # build API documentation
8 %bcond_without dotnet # build without dotnet bindings
9 %bcond_without gtk # build without GTK+
10 %bcond_without gtk3 # build without GTK+3
11 %bcond_without pygtk # build without PyGTK
12 %bcond_without qt # build without (any) qt bindings
13 %bcond_without qt3 # build without qt3 bindings
14 %bcond_without qt4 # build without qt4 bindings
16 %ifnarch %{ix86} %{x8664} alpha arm hppa ia64 mips ppc s390 s390x sparc sparcv9
28 # see http://lists.pld-linux.org/mailman/pipermail/pld-devel-pl/2012-October/155984.html
31 %{?with_dotnet:%include /usr/lib/rpm/macros.mono}
32 Summary: Free mDNS/DNS-SD/Zeroconf implementation
33 Summary(pl.UTF-8): Wolna implementacja mDNS/DNS-SD/Zeroconf
39 Source0: http://avahi.org/download/%{name}-%{version}.tar.gz
40 # Source0-md5: 2f22745b8f7368ad5a0a3fddac343f2d
41 Source1: %{name}-daemon
42 Source2: %{name}-dnsconfd
44 Source4: %{name}-daemon.upstart
45 Source5: %{name}-dnsconfd.upstart
46 Patch0: %{name}-desktop.patch
47 Patch1: %{name}-glade.patch
48 Patch2: %{name}-destdir.patch
49 Patch3: %{name}-mono-dir.patch
50 Patch4: nss-mdns-package.patch
51 Patch5: %{name}-dhclient_hooks.patch
52 Patch6: %{name}-autoipd-sbin_ip.patch
53 Patch7: 01_%{name}-daemon.conf.patch
54 Patch8: %{name}-core-reserve-space-for-record-data-when-size-estimate.patch
55 Patch9: %{name}-gtk3.patch
56 URL: http://avahi.org/
57 BuildRequires: autoconf >= 2.63
58 BuildRequires: automake >= 1:1.11
59 BuildRequires: dbus-devel >= 0.92
61 BuildRequires: doxygen
62 # for the 'dot' tool used by doxygen
63 BuildRequires: graphviz
65 BuildRequires: expat-devel
66 BuildRequires: gdbm-devel
67 BuildRequires: gettext-tools
68 BuildRequires: gobject-introspection-devel >= 0.9.5
70 BuildRequires: glib2-devel >= 1:2.12.2
71 BuildRequires: gtk+2-devel >= 2:2.14.0
74 BuildRequires: glib2-devel >= 1:2.28.0
75 BuildRequires: gtk+3-devel >= 3.0.0
77 BuildRequires: intltool >= 0.35
78 BuildRequires: libcap-devel
79 BuildRequires: libdaemon-devel >= 0.14
80 BuildRequires: libtool
82 BuildRequires: dotnet-gtk-sharp2-devel >= 2.10
83 BuildRequires: mono-csharp
84 BuildRequires: monodoc >= 2.6
86 BuildRequires: pkgconfig
87 BuildRequires: python >= 1:2.4
88 BuildRequires: python-dbus >= 0.71
89 %{?with_pygtk:BuildRequires: python-pygtk-devel >= 2:2.9.6}
91 BuildRequires: qt-devel >= 1:3.0
94 BuildRequires: QtCore-devel >= 4.0.0
95 BuildRequires: qt4-build
97 BuildRequires: rpm-pythonprov
98 BuildRequires: rpmbuild(macros) >= 1.626
99 Requires(post,preun): /sbin/chkconfig
100 Requires(post,preun,postun): systemd-units >= 38
101 Requires: %{name}-libs = %{version}-%{release}
102 Requires: dbus >= 0.92
103 Requires: libdaemon >= 0.14
104 Requires: rc-scripts >= 0.4.3
105 Requires: systemd-units >= 38
106 Suggests: nss_mdns >= 0.10-2
107 Provides: group(avahi)
108 Provides: user(avahi)
109 Obsoletes: avahi-systemd
110 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
113 Avahi is an implementation the DNS Service Discovery and Multicast DNS
114 specifications for Zeroconf Computing. It uses D-BUS for communication
115 between user applications and a system daemon.
117 %description -l pl.UTF-8
118 Avahi jest implementacją specyfikacji DNS Service Discovery i
119 Multicast DNS dla Zeroconf Computing. Używa D-BUSa dla komunikacji
120 pomiędzy programami użytkownika a demonem systemowym.
123 Summary: Upstart jobs description for Avahi daemons
124 Summary(pl.UTF-8): Opis zadań Upstart dla demonów Avahi
126 Requires: %{name} = %{version}-%{release}
127 Requires: upstart >= 0.6
128 Conflicts: syslog-ng-upstart < 3.2.4-1
131 Upstart jobs description for Avahi daemons.
133 %description upstart -l pl.UTF-8
134 Opis zadań Upstart dla demonów Avahi.
137 Summary: IPv4LL network address configuration daemon
138 Summary(pl.UTF-8): Demon configurujący adresy IPv4LL
139 Group: Networking/Daemons
140 Requires(postun): /usr/sbin/groupdel
141 Requires(postun): /usr/sbin/userdel
142 Requires(pre): /bin/id
143 Requires(pre): /usr/bin/getgid
144 Requires(pre): /usr/sbin/groupadd
145 Requires(pre): /usr/sbin/useradd
146 Provides: group(avahi)
147 Provides: user(avahi)
150 avahi-autoipd implements IPv4LL, "Dynamic Configuration of IPv4 Link-
151 Local Addresses" (IETF RFC3927), a protocol for automatic IP address
152 configuration from the link-local 169.254.0.0/16 range without the
153 need for a central server. It is primarily intended to be used in
154 ad-hoc networks which lack a DHCP server.
156 IPv4LL is part of the Zeroconf stack.
158 %description autoipd -l pl.UTF-8
159 avahi-autoipd jest implementacją IPv4LL, protokołu umożliwiającego
160 automatyczną konfigurację adresu z zakresu 169.254.0.0/16 bez potrzeby
161 użycia centralnego serwera. Jego głównym zastosowaniem są sieci
162 ad-hoc, w których brakuje serwera DHCP.
164 IPv4LL jest częścią stosu Zeroconf.
167 Summary: Avahi client, common and core libraries
168 Summary(pl.UTF-8): Biblioteki Avahi: klienta, wspólna i główna
172 Avahi client, common and core libraries.
174 %description libs -l pl.UTF-8
175 Biblioteki Avahi: klienta, wspólna i główna.
178 Summary: Header files for Avahi library
179 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi
180 Group: Development/Libraries
181 Requires: %{name}-libs = %{version}-%{release}
182 Requires: dbus-devel >= 0.92
183 Requires: expat-devel
186 This is the package containing the header files for Avahi library.
188 %description devel -l pl.UTF-8
189 Ten pakiet zawiera pliki nagłówkowe biblioteki Avahi.
192 Summary: Static Avahi library
193 Summary(pl.UTF-8): Statyczna biblioteka Avahi
194 Group: Development/Libraries
195 Requires: %{name}-devel = %{version}-%{release}
198 Static Avahi library.
200 %description static -l pl.UTF-8
201 Statyczna biblioteka Avahi.
204 Summary: Avahi UI library
205 Summary(pl.UTF-8): Biblioteka Avahi UI
207 Requires: %{name}-libs = %{version}-%{release}
208 Requires: gtk+2 >= 2:2.14.0
211 Common GTK+ UI support library for Avahi.
213 %description ui -l pl.UTF-8
214 Biblioteka wspólnego interfejsu użytkownika GTK+ dla Avahi.
217 Summary: Header files for Avahi UI library
218 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi UI
219 Group: X11/Development/Libraries
220 Requires: %{name}-devel = %{version}-%{release}
221 Requires: %{name}-ui = %{version}-%{release}
222 Requires: %{name}-ui-devel-common = %{version}-%{release}
223 Requires: gtk+2-devel >= 2:2.14.0
225 %description ui-devel
226 Header files for Avahi UI library.
228 %description ui-devel -l pl.UTF-8
229 Pliki nagłówkowe biblioteki Avahi UI.
232 Summary: Static Avahi UI library
233 Summary(pl.UTF-8): Statyczna biblioteka Avahi UI
234 Group: X11/Development/Libraries
235 Requires: %{name}-ui-devel = %{version}-%{release}
237 %description ui-static
238 Static Avahi UI library.
240 %description ui-static -l pl.UTF-8
241 Statyczna biblioteka Avahi UI.
243 %package ui-devel-common
244 Summary: Header files for Avahi UI library
245 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi UI
246 Group: X11/Development/Libraries
247 Requires: %{name}-devel = %{version}-%{release}
249 %description ui-devel-common
250 Header files for Avahi UI library.
252 %description ui-devel-common -l pl.UTF-8
253 Pliki nagłówkowe biblioteki Avahi GTK+ UI.
256 Summary: Avahi UI library - GTK+ 3.x version
257 Summary(pl.UTF-8): Biblioteka Avahi UI - wersja dla GTK+ 3.x
259 Requires: %{name}-libs = %{version}-%{release}
262 Common GTK+ 3.x UI support library for Avahi.
264 %description ui-gtk3 -l pl.UTF-8
265 Biblioteka wspólnego interfejsu użytkownika GTK+ 3.x dla Avahi.
267 %package ui-gtk3-devel
268 Summary: Header files for Avahi UI library - GTK+ 3.x version
269 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi UI - wersja dla GTK+ 3.x
270 Group: X11/Development/Libraries
271 Requires: %{name}-devel = %{version}-%{release}
272 Requires: %{name}-ui-devel-common = %{version}-%{release}
273 Requires: %{name}-ui-gtk3 = %{version}-%{release}
275 %description ui-gtk3-devel
276 Header files for Avahi GTK+ 3.x UI library.
278 %description ui-devel -l pl.UTF-8
279 Pliki nagłówkowe biblioteki Avahi GTK+ 3.x UI.
281 %package ui-gtk3-static
282 Summary: Static Avahi UI library - GTK+ 3.x version
283 Summary(pl.UTF-8): Statyczna biblioteka Avahi UI - wersja GTK+ 3.x
284 Group: X11/Development/Libraries
285 Requires: %{name}-ui-gtk3-devel = %{version}-%{release}
287 %description ui-gtk3-static
288 Static Avahi GTK+ 3.x UI library.
290 %description ui-gtk3-static -l pl.UTF-8
291 Statyczna biblioteka Avahi GTK+ 3.x UI.
293 %package compat-libdns_sd
294 Summary: Avahi Bonjour compat library
295 Summary(pl.UTF-8): Biblioteka Avahi zgodna z Bonjour
297 Requires: %{name}-libs = %{version}-%{release}
298 Provides: mdns-bonjour
299 Obsoletes: mDNSResponder-libs
301 %description compat-libdns_sd
302 Avahi Bonjour compat library.
304 %description compat-libdns_sd -l pl.UTF-8
305 Biblioteka Avahi zgodna z Bonjour.
307 %package compat-libdns_sd-devel
308 Summary: Header files for Avahi Bonjour compat library
309 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Bonjour
310 Group: Development/Libraries
311 Requires: %{name}-compat-libdns_sd = %{version}-%{release}
312 Requires: %{name}-devel = %{version}-%{release}
313 Provides: mdns-bonjour-devel
314 Obsoletes: mDNSResponder-devel
316 %description compat-libdns_sd-devel
317 Header files for Avahi Bonjour compat library.
319 %description compat-libdns_sd-devel -l pl.UTF-8
320 Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Bonjour.
322 %package compat-libdns_sd-static
323 Summary: Static Avahi Bonjour compat library
324 Summary(pl.UTF-8): Statyczna biblioteka Avahi zgodna z Bonjour
325 Group: Development/Libraries
326 Requires: %{name}-compat-libdns_sd-devel = %{version}-%{release}
327 Provides: mdns-bonjour-static
329 %description compat-libdns_sd-static
330 Static Avahi Bonjour compat library.
332 %description compat-libdns_sd-static -l pl.UTF-8
333 Statyczna biblioteka Avahi zgodna z Bonjour.
336 Summary: Avahi Howl compat library
337 Summary(pl.UTF-8): Biblioteka Avahi zgodna z Howl
339 Provides: mdns-howl-libs
342 %description compat-howl
343 Avahi Howl compat library.
345 %description compat-howl -l pl.UTF-8
346 Biblioteka Avahi zgodna z Howl.
348 %package compat-howl-devel
349 Summary: Header files for Avahi Howl compat library
350 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Howl
351 Group: Development/Libraries
352 Requires: %{name}-compat-howl = %{version}-%{release}
353 Requires: %{name}-devel = %{version}-%{release}
354 Provides: mdns-howl-devel
355 Obsoletes: howl-devel
357 %description compat-howl-devel
358 Header files for Avahi Howl compat library.
360 %description compat-howl-devel -l pl.UTF-8
361 Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Howl.
363 %package compat-howl-static
364 Summary: Static Avahi Howl compat library
365 Summary(pl.UTF-8): Statyczna biblioteka Avahi zgodna z Howl
366 Group: Development/Libraries
367 Requires: %{name}-compat-howl-devel = %{version}-%{release}
368 Provides: mdns-howl-static
369 Obsoletes: howl-static
371 %description compat-howl-static
372 Static Avahi Howl compat library.
374 %description compat-howl-static -l pl.UTF-8
375 Statyczna biblioteka Avahi zgodna z Howl.
378 Summary: Avahi GLib library bindings
379 Summary(pl.UTF-8): Wiązania Avahi dla bibioteki GLib
383 Avahi GLib library bindings.
385 %description glib -l pl.UTF-8
386 Wiązania Avahi dla bibioteki GLib.
389 Summary: Header files for Avahi GLib library bindings
390 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki GLib
391 Group: Development/Libraries
392 Requires: %{name}-devel = %{version}-%{release}
393 Requires: %{name}-glib = %{version}-%{release}
394 Requires: glib2-devel >= 1:2.12.2
396 %description glib-devel
397 This is the package containing the header files for Avahi-glib
400 %description glib-devel -l pl.UTF-8
401 Ten pakiet zawiera pliki nagłówkowe biblioteki Avahi-glib.
404 Summary: Static Avahi GLib library
405 Summary(pl.UTF-8): Statyczna biblioteka Avahi GLib
406 Group: Development/Libraries
407 Requires: %{name}-glib-devel = %{version}-%{release}
409 %description glib-static
410 Static Avahi GLib library.
412 %description glib-static -l pl.UTF-8
413 Statyczna biblioteka Avahi GLib.
416 Summary: Avahi GObject interface
417 Summary(pl.UTF-8): Interfejs GObject do Avahi
421 Avahi GObject interface.
423 %description gobject -l pl.UTF-8
424 Interfejs GObject do Avahi.
426 %package gobject-devel
427 Summary: Header files for Avahi GObject interface
428 Summary(pl.UTF-8): Pliki nagłówkowe interfejsu GObject do Avahi
429 Group: Development/Libraries
430 Requires: %{name}-devel = %{version}-%{release}
431 Requires: %{name}-gobject = %{version}-%{release}
432 Requires: glib2-devel >= 1:2.12.2
434 %description gobject-devel
435 This is the package containing the header files for Avahi GObject
438 %description gobject-devel -l pl.UTF-8
439 Ten pakiet zawiera pliki nagłówkowe interfejsu GObject do Avahi.
441 %package gobject-static
442 Summary: Static Avahi GObject library
443 Summary(pl.UTF-8): Statyczna biblioteka Avahi GObject
444 Group: Development/Libraries
445 Requires: %{name}-gobject-devel = %{version}-%{release}
447 %description gobject-static
448 Static Avahi GObject library.
450 %description gobject-static -l pl.UTF-8
451 Statyczna biblioteka Avahi GObject.
454 Summary: Avahi Qt 3 library bindings
455 Summary(pl.UTF-8): Wiązania Avahi dla biblioteki Qt 3
457 Requires: %{name}-libs = %{version}-%{release}
461 Avahi Qt 3 library bindings.
463 %description qt -l pl.UTF-8
464 Wiązania Avahi dla biblioteki Qt 3.
467 Summary: Header files for Avahi Qt 3 library bindings
468 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 3
469 Group: Development/Libraries
470 Requires: %{name}-devel = %{version}-%{release}
471 Requires: %{name}-qt = %{version}-%{release}
472 Requires: qt-devel >= 1:3.0
473 Obsoletes: avahi-qt3-devel
475 %description qt-devel
476 Header files for Avahi Qt 3 library bindings.
478 %description qt-devel -l pl.UTF-8
479 Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 3.
482 Summary: Static Avahi Qt 3 library
483 Summary(pl.UTF-8): Statyczna biblioteka Avahi Qt 3
484 Group: Development/Libraries
485 Requires: %{name}-qt-devel = %{version}-%{release}
486 Obsoletes: avahi-qt3-static
488 %description qt-static
489 Static Avahi Qt 3 library.
491 %description qt-static -l pl.UTF-8
492 Statyczna biblioteka Avahi Qt 3.
495 Summary: Avahi Qt 4 library bindings
496 Summary(pl.UTF-8): Wiązania Avahi dla biblioteki Qt 4
498 Requires: %{name}-libs = %{version}-%{release}
501 Avahi Qt 4 library bindings.
503 %description Qt -l pl.UTF-8
504 Wiązania Avahi dla biblioteki Qt 4.
507 Summary: Header files for Avahi Qt 4 library bindings
508 Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 4
509 Group: Development/Libraries
510 Requires: %{name}-Qt = %{version}-%{release}
511 Requires: %{name}-devel = %{version}-%{release}
513 %description Qt-devel
514 Header files for Avahi Qt 4 library bindings.
516 %description Qt-devel -l pl.UTF-8
517 Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 4.
520 Summary: Static Avahi Qt 4 library
521 Summary(pl.UTF-8): Statyczna biblioteka Avahi Qt 4
522 Group: Development/Libraries
523 Requires: %{name}-Qt-devel = %{version}-%{release}
525 %description Qt-static
526 Static Avahi Qt 4 library.
528 %description Qt-static -l pl.UTF-8
529 Statyczna biblioteka Avahi Qt 4.
531 %package -n python-avahi
532 Summary: Avahi Python bindings
533 Summary(pl.UTF-8): Wiązania Avahi dla Pythona
534 Group: Development/Languages/Python
535 Requires: %{name}-libs = %{version}-%{release}
536 Requires: python-dbus >= 0.71
538 %description -n python-avahi
539 Avahi Python bindings.
541 %description -n python-avahi -l pl.UTF-8
542 Wiązania Avahi dla Pythona.
544 %package -n dotnet-avahi
545 Summary: Avahi MONO bindings
546 Summary(pl.UTF-8): Wiązania Avahi dla MONO
548 Requires: %{name}-libs = %{version}-%{release}
550 %description -n dotnet-avahi
553 %description -n dotnet-avahi -l pl.UTF-8
554 Wiązania Avahi dla MONO.
556 %package -n dotnet-avahi-devel
557 Summary: Development files for MONO Avahi bindings
558 Summary(pl.UTF-8): Pliki rozwojowe wiązań Avahi dla MONO
559 Group: Development/Libraries
560 Requires: dotnet-avahi = %{version}-%{release}
561 Requires: monodoc >= 2.6
563 %description -n dotnet-avahi-devel
564 Development files for MONO Avahi bindings.
566 %description -n dotnet-avahi-devel -l pl.UTF-8
567 Pliki rozwojowe wiązań Avahi dla MONO.
569 %package -n dotnet-avahi-ui
570 Summary: Avahi UI MONO bindings
571 Summary(pl.UTF-8): Wiązania Avahi UI dla MONO
573 Requires: %{name}-ui = %{version}-%{release}
574 Requires: dotnet-avahi = %{version}-%{release}
576 %description -n dotnet-avahi-ui
577 Avahi UI MONO bindings.
579 %description -n dotnet-avahi-ui -l pl.UTF-8
580 Wiązania Avahi UI dla MONO.
582 %package -n dotnet-avahi-ui-devel
583 Summary: Development files for MONO Avahi UI bindings
584 Summary(pl.UTF-8): Pliki rozwojowe wiązań Avahi UI dla MONO
585 Group: X11/Development/Libraries
586 Requires: dotnet-avahi-ui = %{version}-%{release}
587 Requires: monodoc >= 2.6
589 %description -n dotnet-avahi-ui-devel
590 Development files for MONO Avahi UI bindings.
592 %description -n dotnet-avahi-ui-devel -l pl.UTF-8
593 Pliki rozwojowe wiązań Avahi UI dla MONO.
596 Summary: Miniature web server
597 Summary(pl.UTF-8): Miniaturowy serwer WWW
600 %description bookmarks
601 A Python based miniature web server that browses for mDNS/DNS-SD
602 services of type '_http._tcp' (i.e. web sites) and makes them
603 available as HTML links on http://localhost:8080/.
605 %description bookmarks -l pl.UTF-8
606 Napisany w Pythonie miniaturowy serwer WWW, pozwalający na
607 przeglądanie usług typu '_http._tcp' (np. stron WWW) i udostępniający
608 je jako odnośniki HTML na http://localhost:8080/.
611 Summary: Avahi Zeroconf browser
612 Summary(pl.UTF-8): Przeglądarka Zeroconf Avahi
614 Requires: python-avahi = %{version}-%{release}
615 Requires: python-pygtk-glade >= 2:2.9.6
617 %description discover
618 A tool for enumerating all available services on the local LAN
619 (python-pygtk implementation).
621 %description discover -l pl.UTF-8
622 Narzędzie wymieniające wszystkie dostępne usługi w sieci lokalnej LAN
623 (implementacja w python-pygtk).
625 %package discover-standalone
626 Summary: Avahi Zeroconf browser
627 Summary(pl.UTF-8): Przeglądarka Zeroconf Avahi
629 Requires: %{name}-glib = %{version}-%{release}
631 %description discover-standalone
632 GTK+ tool for enumerating all available services on the local LAN.
634 %description discover-standalone -l pl.UTF-8
635 Narzędzie GTK+ wymieniające wszystkie dostępne usługi w sieci lokalnej
639 Summary: Avahi CLI utilities
640 Summary(pl.UTF-8): Narzędzia CLI Avahi
644 Command line utilities using avahi-client.
646 %description utils -l pl.UTF-8
647 Narzędzia linii poleceń korzystające z avahi-client.
665 %{__aclocal} -I common
670 --disable-stack-protector \
671 --disable-silent-rules \
672 --enable-compat-libdns_sd \
673 --enable-compat-howl \
675 %{!?with_apidocs:--disable-doxygen-doc} \
676 %{!?with_gtk:--disable-gtk} \
677 %{!?with_gtk3:--disable-gtk3} \
678 %{!?with_pygtk:--disable-pygtk} \
679 %{!?with_qt3:--disable-qt3} \
680 %{!?with_qt4:--disable-qt4} \
681 %{!?with_dotnet:--disable-mono} \
682 %{!?with_dotnet:--disable-monodoc} \
683 --with-systemdsystemunitdir=%{systemdunitdir} \
684 --with-avahi-priv-access-group=adm \
685 --with-autoipd-user=avahi \
686 --with-autoipd-group=avahi
690 rm -rf $RPM_BUILD_ROOT
691 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d,/etc/init}
694 DESTDIR=$RPM_BUILD_ROOT \
695 pythondir=%{py_sitedir}
697 install -p %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
698 cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
700 cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/init/avahi-daemon.conf
701 cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/init/avahi-dnsconfd.conf
703 ln -sf %{_includedir}/avahi-compat-libdns_sd/dns_sd.h \
704 $RPM_BUILD_ROOT%{_includedir}/dns_sd.h
706 ln -sf %{_pkgconfigdir}/avahi-compat-howl.pc \
707 $RPM_BUILD_ROOT%{_pkgconfigdir}/howl.pc
709 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
710 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
713 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/avahi-{browse-domains,publish-address,publish-service,resolve-address,resolve-host-name}.1
714 %{?with_gtk:%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/bvnc.1}
715 echo '.so avahi-browse.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-browse-domains.1
716 echo '.so avahi-publish.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-publish-address.1
717 echo '.so avahi-publish.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-publish-service.1
718 echo '.so avahi-resolve.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-resolve-address.1
719 echo '.so avahi-resolve.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-resolve-host-name.1
721 echo '.so bssh.1' > $RPM_BUILD_ROOT%{_mandir}/man1/bvnc.1
722 echo '.so bssh.1' > $RPM_BUILD_ROOT%{_mandir}/man1/bshell.1
725 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
730 rm -rf $RPM_BUILD_ROOT
733 %groupadd -g 165 -r -f avahi
734 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
737 %groupadd -g 165 -r -f avahi
738 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
741 /sbin/chkconfig --add %{name}-daemon
742 %service %{name}-daemon restart
743 /sbin/chkconfig --add %{name}-dnsconfd
744 %service %{name}-dnsconfd restart
745 %systemd_post avahi-daemon.service avahi-dnsconfd.service avahi-daemon.socket
748 if [ "$1" = "0" ]; then
749 %service -q %{name}-dnsconfd stop
750 /sbin/chkconfig --del %{name}-dnsconfd
751 %service -q %{name}-daemon stop
752 /sbin/chkconfig --del %{name}-daemon
754 %systemd_preun avahi-daemon.service avahi-dnsconfd.service avahi-daemon.socket
757 if [ "$1" = "0" ]; then
763 %triggerpostun -- avahi < 0.6.30-7
764 %systemd_trigger avahi-daemon.service avahi-dnsconfd.service avahi-daemon.socket
767 if [ "$1" = "0" ]; then
773 %upstart_post avahi-daemon
774 %upstart_post avahi-dnsconfd
777 %upstart_postun avahi-daemon
778 %upstart_postun avahi-dnsconfd
780 %post libs -p /sbin/ldconfig
781 %postun libs -p /sbin/ldconfig
783 %post ui -p /sbin/ldconfig
784 %postun ui -p /sbin/ldconfig
786 %post ui-gtk3 -p /sbin/ldconfig
787 %postun ui-gtk3 -p /sbin/ldconfig
789 %post compat-libdns_sd -p /sbin/ldconfig
790 %postun compat-libdns_sd -p /sbin/ldconfig
792 %post compat-howl -p /sbin/ldconfig
793 %postun compat-howl -p /sbin/ldconfig
795 %post glib -p /sbin/ldconfig
796 %postun glib -p /sbin/ldconfig
798 %post gobject -p /sbin/ldconfig
799 %postun gobject -p /sbin/ldconfig
801 %post qt -p /sbin/ldconfig
802 %postun qt -p /sbin/ldconfig
804 %post Qt -p /sbin/ldconfig
805 %postun Qt -p /sbin/ldconfig
808 %defattr(644,root,root,755)
809 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
811 %dir %{_sysconfdir}/avahi
812 %dir %{_sysconfdir}/avahi/services
813 %attr(755,root,root) %{_sysconfdir}/avahi/avahi-dnsconfd.action
814 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
815 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/hosts
816 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
817 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/sftp-ssh.service
818 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/avahi-dbus.conf
820 %{systemdunitdir}/avahi-daemon.service
821 %{systemdunitdir}/avahi-daemon.socket
822 %{systemdunitdir}/avahi-dnsconfd.service
823 %{_datadir}/dbus-1/system-services/org.freedesktop.Avahi.service
825 %attr(755,root,root) %{_bindir}/avahi-set-host-name
827 %attr(755,root,root) %{_sbindir}/avahi-daemon
828 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
829 %dir %{_libdir}/%{name}
830 %{_libdir}/%{name}/service-types.db
831 %{_datadir}/%{name}/avahi-service.dtd
832 %{_datadir}/%{name}/service-types
833 %{_datadir}/dbus-1/interfaces/org.freedesktop.Avahi.*.xml
835 %{_mandir}/man1/avahi-set-host-name.1*
836 %{_mandir}/man5/avahi-daemon.conf.5*
837 %{_mandir}/man5/avahi.hosts.5*
838 %{_mandir}/man5/avahi.service.5*
839 %{_mandir}/man8/avahi-daemon.8*
840 %{_mandir}/man8/avahi-dnsconfd.8*
841 %{_mandir}/man8/avahi-dnsconfd.action.8*
843 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
844 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
846 %if "%{pld_release}" != "ti"
848 %defattr(644,root,root,755)
849 %config(noreplace) %verify(not md5 mtime size) /etc/init/*.conf
853 %defattr(644,root,root,755)
854 %dir %{_sysconfdir}/avahi
855 %attr(755,root,root) %{_sysconfdir}/%{name}/avahi-autoipd.action
856 %config(noreplace) %verify(not md5 mtime size) /etc/dhclient-enter-hooks.d/avahi-autoipd
857 %config(noreplace) %verify(not md5 mtime size) /etc/dhclient-exit-hooks.d/avahi-autoipd
858 %attr(755,root,root) %{_sbindir}/avahi-autoipd
859 %{_mandir}/man8/avahi-autoipd.8*
860 %{_mandir}/man8/avahi-autoipd.action.8*
862 %files libs -f %{name}.lang
863 %defattr(644,root,root,755)
864 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
865 %attr(755,root,root) %ghost %{_libdir}/libavahi-client.so.3
866 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
867 %attr(755,root,root) %ghost %{_libdir}/libavahi-common.so.3
868 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
869 %attr(755,root,root) %ghost %{_libdir}/libavahi-core.so.7
870 # common for -discover*
871 %dir %{_datadir}/%{name}
872 %dir %{_datadir}/%{name}/interfaces
875 %defattr(644,root,root,755)
876 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
877 %attr(755,root,root) %{_libdir}/libavahi-client.so
878 %attr(755,root,root) %{_libdir}/libavahi-common.so
879 %attr(755,root,root) %{_libdir}/libavahi-core.so
880 %{_includedir}/avahi-client
881 %{_includedir}/avahi-common
882 %{_includedir}/avahi-core
883 %{_pkgconfigdir}/avahi-client.pc
884 %{_pkgconfigdir}/avahi-core.pc
887 %defattr(644,root,root,755)
888 %{_libdir}/libavahi-client.a
889 %{_libdir}/libavahi-common.a
890 %{_libdir}/libavahi-core.a
894 %defattr(644,root,root,755)
895 %attr(755,root,root) %{_libdir}/libavahi-ui.so.*.*.*
896 %attr(755,root,root) %ghost %{_libdir}/libavahi-ui.so.0
898 %attr(755,root,root) %{_bindir}/bshell
899 %attr(755,root,root) %{_bindir}/bssh
900 %attr(755,root,root) %{_bindir}/bvnc
901 %{_mandir}/man1/bshell.1*
902 %{_mandir}/man1/bssh.1*
903 %{_mandir}/man1/bvnc.1*
904 %{_desktopdir}/bssh.desktop
905 %{_desktopdir}/bvnc.desktop
909 %defattr(644,root,root,755)
910 %attr(755,root,root) %{_libdir}/libavahi-ui.so
911 %{_pkgconfigdir}/avahi-ui.pc
914 %defattr(644,root,root,755)
915 %{_libdir}/libavahi-ui.a
918 %if %{with gtk} || %{with gtk3}
919 %files ui-devel-common
920 %defattr(644,root,root,755)
921 %{_includedir}/avahi-ui
926 %defattr(644,root,root,755)
927 %attr(755,root,root) %{_bindir}/bshell
928 %attr(755,root,root) %{_bindir}/bssh
929 %attr(755,root,root) %{_bindir}/bvnc
930 %attr(755,root,root) %{_libdir}/libavahi-ui-gtk3.so.*.*.*
931 %attr(755,root,root) %ghost %{_libdir}/libavahi-ui-gtk3.so.0
932 %{_mandir}/man1/bshell.1*
933 %{_mandir}/man1/bssh.1*
934 %{_mandir}/man1/bvnc.1*
935 %{_desktopdir}/bssh.desktop
936 %{_desktopdir}/bvnc.desktop
939 %defattr(644,root,root,755)
940 %attr(755,root,root) %{_libdir}/libavahi-ui-gtk3.so
941 %{_pkgconfigdir}/avahi-ui-gtk3.pc
943 %files ui-gtk3-static
944 %defattr(644,root,root,755)
945 %{_libdir}/libavahi-ui-gtk3.a
948 %files compat-libdns_sd
949 %defattr(644,root,root,755)
950 %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.*
951 %attr(755,root,root) %ghost %{_libdir}/libdns_sd.so.1
953 %files compat-libdns_sd-devel
954 %defattr(644,root,root,755)
955 %attr(755,root,root) %{_libdir}/libdns_sd.so
956 %{_includedir}/avahi-compat-libdns_sd
957 %{_includedir}/dns_sd.h
958 %{_pkgconfigdir}/avahi-compat-libdns_sd.pc
960 %files compat-libdns_sd-static
961 %defattr(644,root,root,755)
962 %{_libdir}/libdns_sd.a
965 %defattr(644,root,root,755)
966 %attr(755,root,root) %{_libdir}/libhowl.so.*.*.*
967 %attr(755,root,root) %ghost %{_libdir}/libhowl.so.0
969 %files compat-howl-devel
970 %defattr(644,root,root,755)
971 %attr(755,root,root) %{_libdir}/libhowl.so
972 %{_includedir}/avahi-compat-howl
973 %{_pkgconfigdir}/avahi-compat-howl.pc
974 %{_pkgconfigdir}/howl.pc
976 %files compat-howl-static
977 %defattr(644,root,root,755)
980 %files -n python-avahi
981 %defattr(644,root,root,755)
985 %files -n dotnet-avahi
986 %defattr(644,root,root,755)
987 %{_prefix}/lib/mono/gac/avahi-sharp
989 %files -n dotnet-avahi-devel
990 %defattr(644,root,root,755)
991 %{_prefix}/lib/mono/avahi-sharp
992 %{_prefix}/lib/monodoc/sources/avahi-sharp-docs.*
993 %{_pkgconfigdir}/avahi-sharp.pc
995 %files -n dotnet-avahi-ui
996 %defattr(644,root,root,755)
997 %{_prefix}/lib/mono/gac/avahi-ui-sharp
999 %files -n dotnet-avahi-ui-devel
1000 %defattr(644,root,root,755)
1001 %{_prefix}/lib/mono/avahi-ui-sharp
1002 %{_prefix}/lib/monodoc/sources/avahi-ui-sharp-docs.*
1003 %{_pkgconfigdir}/avahi-ui-sharp.pc
1007 %defattr(644,root,root,755)
1008 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
1009 %attr(755,root,root) %ghost %{_libdir}/libavahi-glib.so.1
1012 %defattr(644,root,root,755)
1013 %attr(755,root,root) %{_libdir}/libavahi-glib.so
1014 %{_includedir}/avahi-glib
1015 %{_pkgconfigdir}/avahi-glib.pc
1018 %defattr(644,root,root,755)
1019 %{_libdir}/libavahi-glib.a
1022 %defattr(644,root,root,755)
1023 %attr(755,root,root) %{_libdir}/libavahi-gobject.so.*.*.*
1024 %attr(755,root,root) %ghost %{_libdir}/libavahi-gobject.so.0
1025 %{_libdir}/girepository-1.0/Avahi-0.6.typelib
1026 %{_libdir}/girepository-1.0/AvahiCore-0.6.typelib
1028 %files gobject-devel
1029 %defattr(644,root,root,755)
1030 %attr(755,root,root) %{_libdir}/libavahi-gobject.so
1031 %{_includedir}/avahi-gobject
1032 %{_pkgconfigdir}/avahi-gobject.pc
1033 %{_datadir}/gir-1.0/Avahi-0.6.gir
1034 %{_datadir}/gir-1.0/AvahiCore-0.6.gir
1036 %files gobject-static
1037 %defattr(644,root,root,755)
1038 %{_libdir}/libavahi-gobject.a
1042 %defattr(644,root,root,755)
1043 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
1044 %attr(755,root,root) %ghost %{_libdir}/libavahi-qt3.so.1
1047 %defattr(644,root,root,755)
1048 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
1049 %{_includedir}/avahi-qt3
1050 %{_pkgconfigdir}/avahi-qt3.pc
1053 %defattr(644,root,root,755)
1054 %{_libdir}/libavahi-qt3.a
1059 %defattr(644,root,root,755)
1060 %attr(755,root,root) %{_libdir}/libavahi-qt4.so.*.*.*
1061 %attr(755,root,root) %ghost %{_libdir}/libavahi-qt4.so.1
1064 %defattr(644,root,root,755)
1065 %attr(755,root,root) %{_libdir}/libavahi-qt4.so
1066 %{_includedir}/avahi-qt4
1067 %{_pkgconfigdir}/avahi-qt4.pc
1070 %defattr(644,root,root,755)
1071 %{_libdir}/libavahi-qt4.a
1075 %defattr(644,root,root,755)
1076 %attr(755,root,root) %{_bindir}/avahi-bookmarks
1077 %{_mandir}/man1/avahi-bookmarks.1*
1081 %defattr(644,root,root,755)
1082 %attr(755,root,root) %{_bindir}/avahi-discover
1083 %{py_sitedir}/avahi_discover
1084 %{_datadir}/%{name}/interfaces/avahi-discover.ui
1085 %{_desktopdir}/avahi-discover.desktop
1086 %{_pixmapsdir}/avahi.png
1087 %{_mandir}/man1/avahi-discover.1*
1091 %files discover-standalone
1092 %defattr(644,root,root,755)
1093 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
1094 %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade
1098 %defattr(644,root,root,755)
1099 %attr(755,root,root) %{_bindir}/avahi-browse
1100 %attr(755,root,root) %{_bindir}/avahi-browse-domains
1101 %attr(755,root,root) %{_bindir}/avahi-publish
1102 %attr(755,root,root) %{_bindir}/avahi-publish-address
1103 %attr(755,root,root) %{_bindir}/avahi-publish-service
1104 %attr(755,root,root) %{_bindir}/avahi-resolve
1105 %attr(755,root,root) %{_bindir}/avahi-resolve-address
1106 %attr(755,root,root) %{_bindir}/avahi-resolve-host-name
1107 %{_mandir}/man1/avahi-browse.1*
1108 %{_mandir}/man1/avahi-browse-domains.1*
1109 %{_mandir}/man1/avahi-publish.1*
1110 %{_mandir}/man1/avahi-publish-address.1*
1111 %{_mandir}/man1/avahi-publish-service.1*
1112 %{_mandir}/man1/avahi-resolve.1*
1113 %{_mandir}/man1/avahi-resolve-address.1*
1114 %{_mandir}/man1/avahi-resolve-host-name.1*