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