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