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