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