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