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