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