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