]> git.pld-linux.org Git - packages/avahi.git/blob - avahi.spec
- S: nss_mdns >= 0.10-2
[packages/avahi.git] / avahi.spec
1 #
2 # Conditional build:
3 %bcond_without  dotnet          # build without dotnet bindings
4 %bcond_without  qt              # build without (any) qt bindings
5 %bcond_without  qt3             # build without qt3 bindings
6 %bcond_without  qt4             # build without qt4 bindings
7
8 %ifnarch %{ix86} %{x8664} alpha arm hppa ia64 mips ppc s390 s390x sparc sparcv9
9 %undefine with_dotnet
10 %endif
11 %ifarch i386
12 %undefine with_dotnet
13 %endif
14
15 %if %{without qt}
16 %undefine       with_qt3
17 %undefine       with_qt4
18 %endif
19
20 %{?with_dotnet:%include /usr/lib/rpm/macros.mono}
21 Summary:        Free mDNS/DNS-SD/Zeroconf implementation
22 Summary(pl.UTF-8):      Wolna implementacja mDNS/DNS-SD/Zeroconf
23 Name:           avahi
24 Version:        0.6.25
25 Release:        5
26 License:        LGPL v2.1+
27 Group:          Applications
28 Source0:        http://avahi.org/download/%{name}-%{version}.tar.gz
29 # Source0-md5:  a83155a6e29e3988f07e5eea3287b21e
30 Source1:        %{name}-daemon
31 Source2:        %{name}-dnsconfd
32 Source3:        %{name}.png
33 Patch0:         %{name}-desktop.patch
34 Patch1:         %{name}-glade.patch
35 Patch2:         %{name}-destdir.patch
36 Patch3:         %{name}-mono-dir.patch
37 Patch4:         nss-mdns-package.patch
38 Patch5:         %{name}-dhclient_hooks.patch
39 Patch6:         %{name}-autoipd-sbin_ip.patch
40 URL:            http://avahi.org/
41 BuildRequires:  autoconf
42 BuildRequires:  automake
43 BuildRequires:  dbus-devel >= 0.92
44 BuildRequires:  doxygen
45 BuildRequires:  expat-devel
46 BuildRequires:  gdbm-devel
47 BuildRequires:  gettext-devel
48 BuildRequires:  glib2-devel >= 1:2.12.2
49 BuildRequires:  graphviz
50 BuildRequires:  gtk+2-devel >= 2:2.10.2
51 BuildRequires:  intltool >= 0.35
52 BuildRequires:  libcap-devel
53 BuildRequires:  libdaemon-devel >= 0.11
54 BuildRequires:  libglade2-devel >= 1:2.6.0
55 BuildRequires:  libtool
56 %if %{with dotnet}
57 BuildRequires:  dotnet-gtk-sharp2-devel >= 2.10
58 BuildRequires:  mono-csharp
59 BuildRequires:  monodoc >= 2.6
60 %endif
61 BuildRequires:  pkgconfig
62 BuildRequires:  python >= 1:2.4
63 BuildRequires:  python-dbus >= 0.71
64 BuildRequires:  python-pygtk-devel >= 2:2.9.6
65 %if %{with qt3}
66 BuildRequires:  qt-devel >= 1:3.0
67 %endif
68 %if %{with qt4}
69 BuildRequires:  QtCore-devel
70 BuildRequires:  qt4-build
71 %endif
72 BuildRequires:  rpm-pythonprov
73 BuildRequires:  rpmbuild(macros) >= 1.228
74 Requires(post,preun):   /sbin/chkconfig
75 Requires:       %{name}-libs = %{version}-%{release}
76 Requires:       dbus >= 0.92
77 Requires:       libdaemon >= 0.11
78 Suggests:       nss_mdns >= 0.10-2
79 Provides:       group(avahi)
80 Provides:       user(avahi)
81 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
82
83 %description
84 Avahi is an implementation the DNS Service Discovery and Multicast DNS
85 specifications for Zeroconf Computing. It uses D-BUS for communication
86 between user applications and a system daemon.
87
88 %description -l pl.UTF-8
89 Avahi jest implementacją specyfikacji DNS Service Discovery i
90 Multicast DNS dla Zeroconf Computing. Używa D-BUSa dla komunikacji
91 pomiędzy programami użytkownika a demonem systemowym.
92
93 %package autoipd
94 Summary:        IPv4LL network address configuration daemon
95 Summary(pl.UTF-8):      Demon configurujący adresy IPv4LL
96 Group:          Networking/Daemons
97 Requires(postun):       /usr/sbin/groupdel
98 Requires(postun):       /usr/sbin/userdel
99 Requires(pre):  /bin/id
100 Requires(pre):  /usr/bin/getgid
101 Requires(pre):  /usr/sbin/groupadd
102 Requires(pre):  /usr/sbin/useradd
103 Provides:       group(avahi)
104 Provides:       user(avahi)
105
106 %description autoipd
107 avahi-autoipd implements IPv4LL, "Dynamic Configuration of IPv4 Link-
108 Local Addresses" (IETF RFC3927), a protocol for automatic IP address
109 configuration from the link-local 169.254.0.0/16 range without the
110 need for a central server. It is primarily intended to be used in
111 ad-hoc networks which lack a DHCP server.
112
113 IPv4LL is part of the Zeroconf stack.
114
115 %description autoipd -l pl.UTF-8
116 avahi-autoipd jest implementacją IPv4LL, protokołu umożliwiającego
117 automatyczną konfigurację adresu z zakresu 169.254.0.0/16 bez potrzeby
118 użycia centralnego serwera. Jego głównym zastosowaniem są sieci
119 ad-hoc, w których brakuje serwera DHCP.
120
121 IPv4LL jest częścią stosu Zeroconf.
122
123 %package libs
124 Summary:        Avahi client, common and core libraries
125 Summary(pl.UTF-8):      Biblioteki Avahi: klienta, wspólna i główna
126 Group:          Libraries
127
128 %description libs
129 Avahi client, common and core libraries.
130
131 %description libs -l pl.UTF-8
132 Biblioteki Avahi: klienta, wspólna i główna.
133
134 %package devel
135 Summary:        Header files for Avahi library
136 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki Avahi
137 Group:          Development/Libraries
138 Requires:       %{name}-libs = %{version}-%{release}
139 Requires:       dbus-devel >= 0.92
140 Requires:       expat-devel
141
142 %description devel
143 This is the package containing the header files for Avahi library.
144
145 %description devel -l pl.UTF-8
146 Ten pakiet zawiera pliki nagłówkowe biblioteki Avahi.
147
148 %package static
149 Summary:        Static Avahi library
150 Summary(pl.UTF-8):      Statyczna biblioteka Avahi
151 Group:          Development/Libraries
152 Requires:       %{name}-devel = %{version}-%{release}
153
154 %description static
155 Static Avahi library.
156
157 %description static -l pl.UTF-8
158 Statyczna biblioteka Avahi.
159
160 %package ui
161 Summary:        Avahi UI library
162 Summary(pl.UTF-8):      Biblioteka Avahi UI
163 Group:          X11/Libraries
164 Requires:       %{name}-libs = %{version}-%{release}
165 Requires:       gtk+2 >= 2:2.10.2
166
167 %description ui
168 Common GTK+ UI support library for Avahi.
169
170 %description ui -l pl.UTF-8
171 Biblioteka wspólnego interfejsu użytkownika GTK+ dla Avahi.
172
173 %package ui-devel
174 Summary:        Header files for Avahi UI library
175 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki Avahi UI
176 Group:          X11/Development/Libraries
177 Requires:       %{name}-devel = %{version}-%{release}
178 Requires:       %{name}-ui = %{version}-%{release}
179 Requires:       gtk+2-devel >= 2:2.10.2
180
181 %description ui-devel
182 Header files for Avahi UI library.
183
184 %description ui-devel -l pl.UTF-8
185 Pliki nagłówkowe biblioteki Avahi UI.
186
187 %package ui-static
188 Summary:        Static Avahi UI library
189 Summary(pl.UTF-8):      Statyczna biblioteka Avahi UI
190 Group:          X11/Development/Libraries
191 Requires:       %{name}-ui-devel = %{version}-%{release}
192
193 %description ui-static
194 Static Avahi UI library.
195
196 %description ui-static -l pl.UTF-8
197 Statyczna biblioteka Avahi UI.
198
199 %package compat-libdns_sd
200 Summary:        Avahi Bonjour compat library
201 Summary(pl.UTF-8):      Biblioteka Avahi zgodna z Bonjour
202 Group:          Libraries
203 Provides:       mdns-bonjour
204 Obsoletes:      mDNSResponder-libs
205
206 %description compat-libdns_sd
207 Avahi Bonjour compat library.
208
209 %description compat-libdns_sd -l pl.UTF-8
210 Biblioteka Avahi zgodna z Bonjour.
211
212 %package compat-libdns_sd-devel
213 Summary:        Header files for Avahi Bonjour compat library
214 Summary(pl.UTF-8):      Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Bonjour
215 Group:          Development/Libraries
216 Requires:       %{name}-compat-libdns_sd = %{version}-%{release}
217 Requires:       %{name}-devel = %{version}-%{release}
218 Provides:       mdns-bonjour-devel
219 Obsoletes:      mDNSResponder-devel
220
221 %description compat-libdns_sd-devel
222 Header files for Avahi Bonjour compat library.
223
224 %description compat-libdns_sd-devel -l pl.UTF-8
225 Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Bonjour.
226
227 %package compat-libdns_sd-static
228 Summary:        Static Avahi Bonjour compat library
229 Summary(pl.UTF-8):      Statyczna biblioteka Avahi zgodna z Bonjour
230 Group:          Development/Libraries
231 Requires:       %{name}-compat-libdns_sd-devel = %{version}-%{release}
232 Provides:       mdns-bonjour-static
233
234 %description compat-libdns_sd-static
235 Static Avahi Bonjour compat library.
236
237 %description compat-libdns_sd-static -l pl.UTF-8
238 Statyczna biblioteka Avahi zgodna z Bonjour.
239
240 %package compat-howl
241 Summary:        Avahi Howl compat library
242 Summary(pl.UTF-8):      Biblioteka Avahi zgodna z Howl
243 Group:          Libraries
244 Provides:       mdns-howl-libs
245 Obsoletes:      howl-libs
246
247 %description compat-howl
248 Avahi Howl compat library.
249
250 %description compat-howl -l pl.UTF-8
251 Biblioteka Avahi zgodna z Howl.
252
253 %package compat-howl-devel
254 Summary:        Header files for Avahi Howl compat library
255 Summary(pl.UTF-8):      Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Howl
256 Group:          Development/Libraries
257 Requires:       %{name}-compat-howl = %{version}-%{release}
258 Requires:       %{name}-devel = %{version}-%{release}
259 Provides:       mdns-howl-devel
260 Obsoletes:      howl-devel
261
262 %description compat-howl-devel
263 Header files for Avahi Howl compat library.
264
265 %description compat-howl-devel -l pl.UTF-8
266 Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Howl.
267
268 %package compat-howl-static
269 Summary:        Static Avahi Howl compat library
270 Summary(pl.UTF-8):      Statyczna biblioteka Avahi zgodna z Howl
271 Group:          Development/Libraries
272 Requires:       %{name}-compat-howl-devel = %{version}-%{release}
273 Provides:       mdns-howl-static
274 Obsoletes:      howl-static
275
276 %description compat-howl-static
277 Static Avahi Howl compat library.
278
279 %description compat-howl-static -l pl.UTF-8
280 Statyczna biblioteka Avahi zgodna z Howl.
281
282 %package glib
283 Summary:        Avahi GLib library bindings
284 Summary(pl.UTF-8):      Wiązania Avahi dla bibioteki GLib
285 Group:          Libraries
286
287 %description glib
288 Avahi GLib library bindings.
289
290 %description glib -l pl.UTF-8
291 Wiązania Avahi dla bibioteki GLib.
292
293 %package glib-devel
294 Summary:        Header files for Avahi GLib library bindings
295 Summary(pl.UTF-8):      Pliki nagłówkowe wiązań Avahi dla biblioteki GLib
296 Group:          Development/Libraries
297 Requires:       %{name}-devel = %{version}-%{release}
298 Requires:       %{name}-glib = %{version}-%{release}
299 Requires:       glib2-devel >= 1:2.12.2
300
301 %description glib-devel
302 This is the package containing the header files for Avahi-glib
303 library.
304
305 %description glib-devel -l pl.UTF-8
306 Ten pakiet zawiera pliki nagłówkowe biblioteki Avahi-glib.
307
308 %package glib-static
309 Summary:        Static Avahi GLib library
310 Summary(pl.UTF-8):      Statyczna biblioteka Avahi GLib
311 Group:          Development/Libraries
312 Requires:       %{name}-glib-devel = %{version}-%{release}
313
314 %description glib-static
315 Static Avahi GLib library.
316
317 %description glib-static -l pl.UTF-8
318 Statyczna biblioteka Avahi GLib.
319
320 %package gobject
321 Summary:        Avahi GObject interface
322 Summary(pl.UTF-8):      Interfejs GObject do Avahi
323 Group:          Libraries
324
325 %description gobject
326 Avahi GObject interface.
327
328 %description gobject -l pl.UTF-8
329 Interfejs GObject do Avahi.
330
331 %package gobject-devel
332 Summary:        Header files for Avahi GObject interface
333 Summary(pl.UTF-8):      Pliki nagłówkowe interfejsu GObject do Avahi
334 Group:          Development/Libraries
335 Requires:       %{name}-devel = %{version}-%{release}
336 Requires:       %{name}-gobject = %{version}-%{release}
337 Requires:       glib2-devel >= 1:2.12.2
338
339 %description gobject-devel
340 This is the package containing the header files for Avahi GObject
341 interface.
342
343 %description gobject-devel -l pl.UTF-8
344 Ten pakiet zawiera pliki nagłówkowe interfejsu GObject do Avahi.
345
346 %package gobject-static
347 Summary:        Static Avahi GObject library
348 Summary(pl.UTF-8):      Statyczna biblioteka Avahi GObject
349 Group:          Development/Libraries
350 Requires:       %{name}-gobject-devel = %{version}-%{release}
351
352 %description gobject-static
353 Static Avahi GObject library.
354
355 %description gobject-static -l pl.UTF-8
356 Statyczna biblioteka Avahi GObject.
357
358 %package qt
359 Summary:        Avahi Qt 3 library bindings
360 Summary(pl.UTF-8):      Wiązania Avahi dla biblioteki Qt 3
361 Group:          Libraries
362 Requires:       %{name}-libs = %{version}-%{release}
363 Obsoletes:      avahi-qt3
364
365 %description qt
366 Avahi Qt 3 library bindings.
367
368 %description qt -l pl.UTF-8
369 Wiązania Avahi dla biblioteki Qt 3.
370
371 %package qt-devel
372 Summary:        Header files for Avahi Qt 3 library bindings
373 Summary(pl.UTF-8):      Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 3
374 Group:          Development/Libraries
375 Requires:       %{name}-devel = %{version}-%{release}
376 Requires:       %{name}-qt = %{version}-%{release}
377 Requires:       qt-devel >= 1:3.0
378 Obsoletes:      avahi-qt3-devel
379
380 %description qt-devel
381 Header files for Avahi Qt 3 library bindings.
382
383 %description qt-devel -l pl.UTF-8
384 Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 3.
385
386 %package qt-static
387 Summary:        Static Avahi Qt 3 library
388 Summary(pl.UTF-8):      Statyczna biblioteka Avahi Qt 3
389 Group:          Development/Libraries
390 Requires:       %{name}-qt-devel = %{version}-%{release}
391 Obsoletes:      avahi-qt3-static
392
393 %description qt-static
394 Static Avahi Qt 3 library.
395
396 %description qt-static -l pl.UTF-8
397 Statyczna biblioteka Avahi Qt 3.
398
399 %package Qt
400 Summary:        Avahi Qt 4 library bindings
401 Summary(pl.UTF-8):      Wiązania Avahi dla biblioteki Qt 4
402 Group:          Libraries
403 Requires:       %{name}-libs = %{version}-%{release}
404
405 %description Qt
406 Avahi Qt 4 library bindings.
407
408 %description Qt -l pl.UTF-8
409 Wiązania Avahi dla biblioteki Qt 4.
410
411 %package Qt-devel
412 Summary:        Header files for Avahi Qt 4 library bindings
413 Summary(pl.UTF-8):      Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 4
414 Group:          Development/Libraries
415 Requires:       %{name}-Qt = %{version}-%{release}
416 Requires:       %{name}-devel = %{version}-%{release}
417
418 %description Qt-devel
419 Header files for Avahi Qt 4 library bindings.
420
421 %description Qt-devel -l pl.UTF-8
422 Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 4.
423
424 %package Qt-static
425 Summary:        Static Avahi Qt 4 library
426 Summary(pl.UTF-8):      Statyczna biblioteka Avahi Qt 4
427 Group:          Development/Libraries
428 Requires:       %{name}-Qt-devel = %{version}-%{release}
429
430 %description Qt-static
431 Static Avahi Qt 4 library.
432
433 %description Qt-static -l pl.UTF-8
434 Statyczna biblioteka Avahi Qt 4.
435
436 %package -n python-avahi
437 Summary:        Avahi Python bindings
438 Summary(pl.UTF-8):      Wiązania Avahi dla Pythona
439 Group:          Development/Languages/Python
440 Requires:       %{name}-libs = %{version}-%{release}
441 Requires:       python-dbus >= 0.71
442
443 %description -n python-avahi
444 Avahi Python bindings.
445
446 %description -n python-avahi -l pl.UTF-8
447 Wiązania Avahi dla Pythona.
448
449 %package -n dotnet-avahi
450 Summary:        Avahi MONO bindings
451 Summary(pl.UTF-8):      Wiązania Avahi dla MONO
452 Group:          Libraries
453 Requires:       %{name}-libs = %{version}-%{release}
454
455 %description -n dotnet-avahi
456 Avahi MONO bindings.
457
458 %description -n dotnet-avahi -l pl.UTF-8
459 Wiązania Avahi dla MONO.
460
461 %package -n dotnet-avahi-devel
462 Summary:        Development files for MONO Avahi bindings
463 Summary(pl.UTF-8):      Pliki rozwojowe wiązań Avahi dla MONO
464 Group:          Development/Libraries
465 Requires:       dotnet-avahi = %{version}-%{release}
466 Requires:       monodoc >= 2.6
467
468 %description -n dotnet-avahi-devel
469 Development files for MONO Avahi bindings.
470
471 %description -n dotnet-avahi-devel -l pl.UTF-8
472 Pliki rozwojowe wiązań Avahi dla MONO.
473
474 %package -n dotnet-avahi-ui
475 Summary:        Avahi UI MONO bindings
476 Summary(pl.UTF-8):      Wiązania Avahi UI dla MONO
477 Group:          X11/Libraries
478 Requires:       %{name}-ui = %{version}-%{release}
479 Requires:       dotnet-avahi = %{version}-%{release}
480
481 %description -n dotnet-avahi-ui
482 Avahi UI MONO bindings.
483
484 %description -n dotnet-avahi-ui -l pl.UTF-8
485 Wiązania Avahi UI dla MONO.
486
487 %package -n dotnet-avahi-ui-devel
488 Summary:        Development files for MONO Avahi UI bindings
489 Summary(pl.UTF-8):      Pliki rozwojowe wiązań Avahi UI dla MONO
490 Group:          X11/Development/Libraries
491 Requires:       dotnet-avahi-ui = %{version}-%{release}
492 Requires:       monodoc >= 2.6
493
494 %description -n dotnet-avahi-ui-devel
495 Development files for MONO Avahi UI bindings.
496
497 %description -n dotnet-avahi-ui-devel -l pl.UTF-8
498 Pliki rozwojowe wiązań Avahi UI dla MONO.
499
500 %package bookmarks
501 Summary:        Miniature web server
502 Summary(pl.UTF-8):      Miniaturowy serwer web
503 Group:          Applications
504
505 %description bookmarks
506 A Python based miniature web server that browses for mDNS/DNS-SD
507 services of type '_http._tcp' (i.e. web sites) and makes them
508 available as HTML links on http://localhost:8080/.
509
510 %description bookmarks -l pl.UTF-8
511 Napisany w Pythonie miniaturowy serwer WWW, pozwalający na
512 przeglądanie usług typu '_http._tcp' (np. stron WWW) i udostępniający
513 je jako odnośniki HTML na http://localhost:8080/.
514
515 %package discover
516 Summary:        Avahi Zeroconf browser
517 Summary(pl.UTF-8):      Przeglądarka Zeroconf Avahi
518 Group:          Applications
519 Requires:       python-avahi = %{version}-%{release}
520 Requires:       python-pygtk-glade >= 2:2.9.6
521
522 %description discover
523 A tool for enumerating all available services on the local LAN
524 (python-pygtk implementation).
525
526 %description discover -l pl.UTF-8
527 Narzędzie wymieniające wszystkie dostępne usługi w sieci lokalnej LAN
528 (implementacja w python-pygtk).
529
530 %package discover-standalone
531 Summary:        Avahi Zeroconf browser
532 Summary(pl.UTF-8):      Przeglądarka Zeroconf Avahi
533 Group:          Applications
534 Requires:       %{name}-glib = %{version}-%{release}
535
536 %description discover-standalone
537 GTK+ tool for enumerating all available services on the local LAN.
538
539 %description discover-standalone -l pl.UTF-8
540 Narzędzie GTK+ wymieniające wszystkie dostępne usługi w sieci lokalnej
541 LAN.
542
543 %package utils
544 Summary:        Avahi CLI utilities
545 Summary(pl.UTF-8):      Narzędzia CLI Avahi
546 Group:          Applications
547
548 %description utils
549 Command line utilities using avahi-client.
550
551 %description utils -l pl.UTF-8
552 Narzędzia linii poleceń korzystające z avahi-client.
553
554 %prep
555 %setup -q
556 %patch0 -p1
557 %patch1 -p1
558 %patch2 -p1
559 %patch3 -p1
560 %patch4 -p1
561 %patch5 -p1
562 %patch6 -p1
563
564 %build
565 %{__intltoolize}
566 %{__libtoolize}
567 %{__aclocal} -I common
568 %{__autoconf}
569 %{__autoheader}
570 %{__automake}
571 %configure \
572         --enable-compat-libdns_sd \
573         --enable-compat-howl \
574         --with-distro=none \
575         %{!?with_qt3:--disable-qt3} \
576         %{!?with_qt4:--disable-qt4} \
577         %{!?with_dotnet:--disable-mono} \
578         %{!?with_dotnet:--disable-monodoc} \
579         --with-avahi-priv-access-group=adm \
580         --with-autoipd-user=avahi \
581         --with-autoipd-group=avahi
582 %{__make}
583
584 %install
585 rm -rf $RPM_BUILD_ROOT
586 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d}
587
588 %{__make} install \
589         DESTDIR=$RPM_BUILD_ROOT \
590         pythondir=%{py_sitedir}
591
592 install -p %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
593 cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
594
595 ln -sf %{_includedir}/avahi-compat-libdns_sd/dns_sd.h \
596         $RPM_BUILD_ROOT%{_includedir}/dns_sd.h
597
598 ln -sf %{_pkgconfigdir}/avahi-compat-howl.pc \
599         $RPM_BUILD_ROOT%{_pkgconfigdir}/howl.pc
600
601 rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/{__init__,SimpleGladeApp}.py \
602         $RPM_BUILD_ROOT%{py_sitedir}/avahi_discover/*.py
603
604 rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{avahi-{browse-domains,publish-address,publish-service,resolve-address,resolve-host-name},bvnc}.1
605 echo '.so avahi-browse.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-browse-domains.1
606 echo '.so avahi-publish.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-publish-address.1
607 echo '.so avahi-publish.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-publish-service.1
608 echo '.so avahi-resolve.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-resolve-address.1
609 echo '.so avahi-resolve.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-resolve-host-name.1
610 echo '.so bssh.1' > $RPM_BUILD_ROOT%{_mandir}/man1/bvnc.1
611
612 %find_lang %{name}
613
614 %clean
615 rm -rf $RPM_BUILD_ROOT
616
617 %pre
618 %groupadd -g 165 -r -f avahi
619 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
620
621 %pre autoipd
622 %groupadd -g 165 -r -f avahi
623 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
624
625 %post
626 /sbin/chkconfig --add %{name}-daemon
627 %service %{name}-daemon restart
628 /sbin/chkconfig --add %{name}-dnsconfd
629 %service %{name}-dnsconfd restart
630
631 %preun
632 if [ "$1" = "0" ]; then
633         %service -q %{name}-dnsconfd stop
634         /sbin/chkconfig --del %{name}-dnsconfd
635         %service -q %{name}-daemon stop
636         /sbin/chkconfig --del %{name}-daemon
637 fi
638
639 %postun
640 if [ "$1" = "0" ]; then
641         %userremove avahi
642         %groupremove avahi
643 fi
644
645 %postun autoipd
646 if [ "$1" = "0" ]; then
647         %userremove avahi
648         %groupremove avahi
649 fi
650
651 %post   libs -p /sbin/ldconfig
652 %postun libs -p /sbin/ldconfig
653
654 %post   ui -p /sbin/ldconfig
655 %postun ui -p /sbin/ldconfig
656
657 %post   compat-libdns_sd -p /sbin/ldconfig
658 %postun compat-libdns_sd -p /sbin/ldconfig
659
660 %post   compat-howl -p /sbin/ldconfig
661 %postun compat-howl -p /sbin/ldconfig
662
663 %post   glib -p /sbin/ldconfig
664 %postun glib -p /sbin/ldconfig
665
666 %post   gobject -p /sbin/ldconfig
667 %postun gobject -p /sbin/ldconfig
668
669 %post   qt -p /sbin/ldconfig
670 %postun qt -p /sbin/ldconfig
671
672 %post   Qt -p /sbin/ldconfig
673 %postun Qt -p /sbin/ldconfig
674
675 %files
676 %defattr(644,root,root,755)
677 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
678
679 %dir %{_sysconfdir}/avahi
680 %dir %{_sysconfdir}/avahi/services
681 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
682 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-dnsconfd.action
683 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/hosts
684 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
685 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/sftp-ssh.service
686 %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/*
687
688 %attr(755,root,root) %{_bindir}/avahi-set-host-name
689
690 %attr(755,root,root) %{_sbindir}/avahi-daemon
691 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
692
693 %dir %{_datadir}/%{name}/introspection
694 %{_datadir}/%{name}/introspection/*.introspect
695 %{_datadir}/%{name}/avahi-service.dtd
696 %{_datadir}/%{name}/service-types
697 %dir %{_libdir}/%{name}
698 %{_libdir}/%{name}/service-types.db
699
700 %{_mandir}/man1/avahi-set-host-name.1*
701 %{_mandir}/man5/avahi-daemon.conf.5*
702 %{_mandir}/man5/avahi.hosts.5*
703 %{_mandir}/man5/avahi.service.5*
704 %{_mandir}/man8/avahi-daemon.8*
705 %{_mandir}/man8/avahi-dnsconfd.8*
706 %{_mandir}/man8/avahi-dnsconfd.action.8*
707
708 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
709 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
710
711 %files autoipd
712 %defattr(644,root,root,755)
713 %dir %{_sysconfdir}/avahi
714 %attr(755,root,root) %{_sysconfdir}/%{name}/avahi-autoipd.action
715 %dir %{_sysconfdir}/dhclient-enter-hooks.d
716 %config(noreplace) %verify(not md5 mtime size) /etc/dhclient-enter-hooks.d/avahi-autoipd
717 %dir %{_sysconfdir}/dhclient-exit-hooks.d
718 %config(noreplace) %verify(not md5 mtime size) /etc/dhclient-exit-hooks.d/avahi-autoipd
719 %attr(755,root,root) %{_sbindir}/avahi-autoipd
720 %{_mandir}/man8/avahi-autoipd.8*
721 %{_mandir}/man8/avahi-autoipd.action.8*
722
723 %files libs -f %{name}.lang
724 %defattr(644,root,root,755)
725 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
726 %attr(755,root,root) %ghost %{_libdir}/libavahi-client.so.3
727 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
728 %attr(755,root,root) %ghost %{_libdir}/libavahi-common.so.3
729 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
730 %attr(755,root,root) %ghost %{_libdir}/libavahi-core.so.6
731 # common for -discover*
732 %dir %{_datadir}/%{name}
733 %dir %{_datadir}/%{name}/interfaces
734
735 %files devel
736 %defattr(644,root,root,755)
737 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
738 %attr(755,root,root) %{_libdir}/libavahi-client.so
739 %attr(755,root,root) %{_libdir}/libavahi-common.so
740 %attr(755,root,root) %{_libdir}/libavahi-core.so
741 %{_libdir}/libavahi-client.la
742 %{_libdir}/libavahi-common.la
743 %{_libdir}/libavahi-core.la
744 %{_includedir}/avahi-client
745 %{_includedir}/avahi-common
746 %{_includedir}/avahi-core
747 %{_pkgconfigdir}/avahi-client.pc
748 %{_pkgconfigdir}/avahi-core.pc
749
750 %files static
751 %defattr(644,root,root,755)
752 %{_libdir}/libavahi-client.a
753 %{_libdir}/libavahi-common.a
754 %{_libdir}/libavahi-core.a
755
756 %files ui
757 %defattr(644,root,root,755)
758 %attr(755,root,root) %{_bindir}/bshell
759 %attr(755,root,root) %{_bindir}/bssh
760 %attr(755,root,root) %{_bindir}/bvnc
761 %attr(755,root,root) %{_libdir}/libavahi-ui.so.*.*.*
762 %attr(755,root,root) %ghost %{_libdir}/libavahi-ui.so.0
763 %{_mandir}/man1/bssh.1*
764 %{_mandir}/man1/bvnc.1*
765 %{_desktopdir}/bssh.desktop
766 %{_desktopdir}/bvnc.desktop
767
768 %files ui-devel
769 %defattr(644,root,root,755)
770 %attr(755,root,root) %{_libdir}/libavahi-ui.so
771 %{_libdir}/libavahi-ui.la
772 %{_includedir}/avahi-ui
773 %{_pkgconfigdir}/avahi-ui.pc
774
775 %files ui-static
776 %defattr(644,root,root,755)
777 %{_libdir}/libavahi-ui.a
778
779 %files compat-libdns_sd
780 %defattr(644,root,root,755)
781 %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.*
782 %attr(755,root,root) %ghost %{_libdir}/libdns_sd.so.1
783
784 %files compat-libdns_sd-devel
785 %defattr(644,root,root,755)
786 %attr(755,root,root) %{_libdir}/libdns_sd.so
787 %{_libdir}/libdns_sd.la
788 %{_includedir}/avahi-compat-libdns_sd
789 %{_includedir}/dns_sd.h
790 %{_pkgconfigdir}/avahi-compat-libdns_sd.pc
791
792 %files compat-libdns_sd-static
793 %defattr(644,root,root,755)
794 %{_libdir}/libdns_sd.a
795
796 %files compat-howl
797 %defattr(644,root,root,755)
798 %attr(755,root,root) %{_libdir}/libhowl.so.*.*.*
799 %attr(755,root,root) %ghost %{_libdir}/libhowl.so.0
800
801 %files compat-howl-devel
802 %defattr(644,root,root,755)
803 %attr(755,root,root) %{_libdir}/libhowl.so
804 %{_libdir}/libhowl.la
805 %{_includedir}/avahi-compat-howl
806 %{_pkgconfigdir}/avahi-compat-howl.pc
807 %{_pkgconfigdir}/howl.pc
808
809 %files compat-howl-static
810 %defattr(644,root,root,755)
811 %{_libdir}/libhowl.a
812
813 %files -n python-avahi
814 %defattr(644,root,root,755)
815 %{py_sitedir}/avahi
816
817 %if %{with dotnet}
818 %files -n dotnet-avahi
819 %defattr(644,root,root,755)
820 %{_prefix}/lib/mono/gac/avahi-sharp
821
822 %files -n dotnet-avahi-devel
823 %defattr(644,root,root,755)
824 %{_prefix}/lib/mono/avahi-sharp
825 %{_prefix}/lib/monodoc/sources/avahi-sharp-docs.*
826 %{_pkgconfigdir}/avahi-sharp.pc
827
828 %files -n dotnet-avahi-ui
829 %defattr(644,root,root,755)
830 %{_prefix}/lib/mono/gac/avahi-ui-sharp
831
832 %files -n dotnet-avahi-ui-devel
833 %defattr(644,root,root,755)
834 %{_prefix}/lib/mono/avahi-ui-sharp
835 %{_prefix}/lib/monodoc/sources/avahi-ui-sharp-docs.*
836 %{_pkgconfigdir}/avahi-ui-sharp.pc
837 %endif
838
839 %files glib
840 %defattr(644,root,root,755)
841 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
842 %attr(755,root,root) %ghost %{_libdir}/libavahi-glib.so.1
843
844 %files glib-devel
845 %defattr(644,root,root,755)
846 %attr(755,root,root) %{_libdir}/libavahi-glib.so
847 %{_libdir}/libavahi-glib.la
848 %{_includedir}/avahi-glib
849 %{_pkgconfigdir}/avahi-glib.pc
850
851 %files glib-static
852 %defattr(644,root,root,755)
853 %{_libdir}/libavahi-glib.a
854
855 %files gobject
856 %defattr(644,root,root,755)
857 %attr(755,root,root) %{_libdir}/libavahi-gobject.so.*.*.*
858 %attr(755,root,root) %ghost %{_libdir}/libavahi-gobject.so.0
859
860 %files gobject-devel
861 %defattr(644,root,root,755)
862 %attr(755,root,root) %{_libdir}/libavahi-gobject.so
863 %{_libdir}/libavahi-gobject.la
864 %{_includedir}/avahi-gobject
865 %{_pkgconfigdir}/avahi-gobject.pc
866
867 %files gobject-static
868 %defattr(644,root,root,755)
869 %{_libdir}/libavahi-gobject.a
870
871 %if %{with qt3}
872 %files qt
873 %defattr(644,root,root,755)
874 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
875 %attr(755,root,root) %ghost %{_libdir}/libavahi-qt3.so.1
876
877 %files qt-devel
878 %defattr(644,root,root,755)
879 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
880 %{_libdir}/libavahi-qt3.la
881 %{_includedir}/avahi-qt3
882 %{_pkgconfigdir}/avahi-qt3.pc
883
884 %files qt-static
885 %defattr(644,root,root,755)
886 %{_libdir}/libavahi-qt3.a
887 %endif
888
889 %if %{with qt4}
890 %files Qt
891 %defattr(644,root,root,755)
892 %attr(755,root,root) %{_libdir}/libavahi-qt4.so.*.*.*
893 %attr(755,root,root) %ghost %{_libdir}/libavahi-qt4.so.1
894
895 %files Qt-devel
896 %defattr(644,root,root,755)
897 %attr(755,root,root) %{_libdir}/libavahi-qt4.so
898 %{_libdir}/libavahi-qt4.la
899 %{_includedir}/avahi-qt4
900 %{_pkgconfigdir}/avahi-qt4.pc
901
902 %files Qt-static
903 %defattr(644,root,root,755)
904 %{_libdir}/libavahi-qt4.a
905 %endif
906
907 %files bookmarks
908 %defattr(644,root,root,755)
909 %attr(755,root,root) %{_bindir}/avahi-bookmarks
910 %{_mandir}/man1/avahi-bookmarks.1*
911
912 %files discover
913 %defattr(644,root,root,755)
914 %attr(755,root,root) %{_bindir}/avahi-discover
915 %{py_sitedir}/avahi_discover
916 %{_datadir}/%{name}/interfaces/avahi-discover.glade
917 %{_desktopdir}/avahi-discover.desktop
918 %{_pixmapsdir}/avahi.png
919 %{_mandir}/man1/avahi-discover.1*
920
921 %files discover-standalone
922 %defattr(644,root,root,755)
923 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
924 %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade
925
926 %files utils
927 %defattr(644,root,root,755)
928 %attr(755,root,root) %{_bindir}/avahi-browse
929 %attr(755,root,root) %{_bindir}/avahi-browse-domains
930 %attr(755,root,root) %{_bindir}/avahi-publish
931 %attr(755,root,root) %{_bindir}/avahi-publish-address
932 %attr(755,root,root) %{_bindir}/avahi-publish-service
933 %attr(755,root,root) %{_bindir}/avahi-resolve
934 %attr(755,root,root) %{_bindir}/avahi-resolve-address
935 %attr(755,root,root) %{_bindir}/avahi-resolve-host-name
936 %{_mandir}/man1/avahi-browse.1*
937 %{_mandir}/man1/avahi-browse-domains.1*
938 %{_mandir}/man1/avahi-publish.1*
939 %{_mandir}/man1/avahi-publish-address.1*
940 %{_mandir}/man1/avahi-publish-service.1*
941 %{_mandir}/man1/avahi-resolve.1*
942 %{_mandir}/man1/avahi-resolve-address.1*
943 %{_mandir}/man1/avahi-resolve-host-name.1*
This page took 0.492837 seconds and 3 git commands to generate.