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