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