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