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