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