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