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