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