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