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