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