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