]> git.pld-linux.org Git - packages/avahi.git/blame - avahi.spec
- use nss_mdns when referring to nss-mdns as that is our package name; rel 3
[packages/avahi.git] / avahi.spec
CommitLineData
87585768
AF
1# TODO:
2# - autoip subpackage ?
3# - autoip start script ?
4#
84074ccc 5# Conditional build:
0b1041d5
JB
6%bcond_without dotnet # build without dotnet bindings
7%bcond_without qt # build without (any) qt bindings
8%bcond_without qt3 # build without qt3 bindings
9%bcond_without qt4 # build without qt4 bindings
65bff097 10
0de8e40b 11%ifnarch %{ix86} %{x8664} alpha arm hppa ia64 mips ppc s390 s390x sparc sparcv9
b8100891 12%undefine with_dotnet
ac2efde5 13%endif
14%ifarch i386
b8100891 15%undefine with_dotnet
ac2efde5 16%endif
17
65bff097 18%if %{without qt}
0b1041d5
JB
19%undefine with_qt3
20%undefine with_qt4
21%endif
65bff097 22
bc0c3717 23%{?with_dotnet:%include /usr/lib/rpm/macros.mono}
84074ccc 24Summary: Free mDNS/DNS-SD implementation
bfc0e078 25Summary(pl.UTF-8): Wolna implementacja mDNS/DNS-SD
84074ccc 26Name: avahi
19c7d9c9 27Version: 0.6.25
65bff097 28Release: 3
e91ebdcb 29License: LGPL v2.1+
84074ccc 30Group: Applications
021eb35e 31Source0: http://avahi.org/download/%{name}-%{version}.tar.gz
19c7d9c9 32# Source0-md5: a83155a6e29e3988f07e5eea3287b21e
385ef799 33Source1: %{name}-daemon
34Source2: %{name}-dnsconfd
76a611b3 35Source3: %{name}.png
cf57cb18 36Patch0: %{name}-desktop.patch
37Patch1: %{name}-glade.patch
65db52cd 38Patch2: %{name}-destdir.patch
844a35c9 39Patch3: %{name}-mono-dir.patch
65bff097 40Patch4: nss-mdns-package.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
65bff097 530%patch4 -p1
84074ccc 531
532%build
1baa9236 533%{__intltoolize}
84074ccc 534%{__libtoolize}
535%{__aclocal} -I common
536%{__autoconf}
537%{__autoheader}
538%{__automake}
539%configure \
e5a53780 540 --enable-compat-libdns_sd \
20c3c94e 541 --enable-compat-howl \
84074ccc 542 --with-distro=none \
0b1041d5
JB
543 %{!?with_qt3:--disable-qt3} \
544 %{!?with_qt4:--disable-qt4} \
84074ccc 545 %{!?with_dotnet:--disable-mono} \
546 %{!?with_dotnet:--disable-monodoc}
547%{__make}
548
549%install
550rm -rf $RPM_BUILD_ROOT
76a611b3 551install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d}
84074ccc 552
553%{__make} install \
554 DESTDIR=$RPM_BUILD_ROOT \
555 pythondir=%{py_sitedir}
385ef799 556
65bff097
ER
557install -p %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
558cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
385ef799 559
c3bb95bb 560ln -sf %{_includedir}/avahi-compat-libdns_sd/dns_sd.h \
561 $RPM_BUILD_ROOT%{_includedir}/dns_sd.h
562
20c3c94e 563ln -sf %{_pkgconfigdir}/avahi-compat-howl.pc \
564 $RPM_BUILD_ROOT%{_pkgconfigdir}/howl.pc
565
844a35c9
JB
566rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/{__init__,SimpleGladeApp}.py \
567 $RPM_BUILD_ROOT%{py_sitedir}/avahi_discover/*.py
84074ccc 568
5234c9c3 569rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{avahi-{browse-domains,publish-address,publish-service,resolve-address,resolve-host-name},bvnc}.1
4abede57
MB
570echo '.so avahi-browse.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-browse-domains.1
571echo '.so avahi-publish.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-publish-address.1
572echo '.so avahi-publish.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-publish-service.1
573echo '.so avahi-resolve.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-resolve-address.1
574echo '.so avahi-resolve.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-resolve-host-name.1
5234c9c3 575echo '.so bssh.1' > $RPM_BUILD_ROOT%{_mandir}/man1/bvnc.1
021eb35e 576
844a35c9
JB
577%find_lang %{name}
578
84074ccc 579%clean
580rm -rf $RPM_BUILD_ROOT
581
f97f8264 582%pre
611ce39d 583%groupadd -g 165 -r -f avahi
584%useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
f97f8264 585
84074ccc 586%post
385ef799 587/sbin/chkconfig --add %{name}-daemon
588%service %{name}-daemon restart
589/sbin/chkconfig --add %{name}-dnsconfd
590%service %{name}-dnsconfd restart
84074ccc 591
592%preun
593if [ "$1" = "0" ]; then
385ef799 594 %service -q %{name}-dnsconfd stop
595 /sbin/chkconfig --del %{name}-dnsconfd
596 %service -q %{name}-daemon stop
597 /sbin/chkconfig --del %{name}-daemon
84074ccc 598fi
84074ccc 599
76a611b3 600%postun
601if [ "$1" = "0" ]; then
f97f8264 602 %userremove avahi
603 %groupremove avahi
604fi
f97f8264 605
84074ccc 606%post libs -p /sbin/ldconfig
607%postun libs -p /sbin/ldconfig
608
fcc1bce8
JB
609%post ui -p /sbin/ldconfig
610%postun ui -p /sbin/ldconfig
611
e5a53780 612%post compat-libdns_sd -p /sbin/ldconfig
613%postun compat-libdns_sd -p /sbin/ldconfig
614
20c3c94e 615%post compat-howl -p /sbin/ldconfig
616%postun compat-howl -p /sbin/ldconfig
617
84074ccc 618%post glib -p /sbin/ldconfig
619%postun glib -p /sbin/ldconfig
620
844a35c9
JB
621%post gobject -p /sbin/ldconfig
622%postun gobject -p /sbin/ldconfig
623
91bdb504
PS
624%post qt -p /sbin/ldconfig
625%postun qt -p /sbin/ldconfig
626
627%post Qt -p /sbin/ldconfig
628%postun Qt -p /sbin/ldconfig
84074ccc 629
630%files
631%defattr(644,root,root,755)
632%doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
633
634%dir %{_sysconfdir}/avahi
635%dir %{_sysconfdir}/avahi/services
636%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
637%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-dnsconfd.action
56321bc5 638%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/hosts
84074ccc 639%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
87585768 640%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/sftp-ssh.service
9e3cdda2 641%config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/*
84074ccc 642
4da0d8d4 643%attr(755,root,root) %{_bindir}/avahi-set-host-name
84074ccc 644
645%attr(755,root,root) %{_sbindir}/avahi-daemon
646%attr(755,root,root) %{_sbindir}/avahi-dnsconfd
647
84074ccc 648%dir %{_datadir}/%{name}/introspection
649%{_datadir}/%{name}/introspection/*.introspect
650%{_datadir}/%{name}/avahi-service.dtd
651%{_datadir}/%{name}/service-types
844a35c9
JB
652%dir %{_libdir}/%{name}
653%{_libdir}/%{name}/service-types.db
84074ccc 654
844a35c9
JB
655%{_mandir}/man1/avahi-set-host-name.1*
656%{_mandir}/man5/avahi-daemon.conf.5*
657%{_mandir}/man5/avahi.hosts.5*
658%{_mandir}/man5/avahi.service.5*
659%{_mandir}/man8/avahi-daemon.8*
660%{_mandir}/man8/avahi-dnsconfd.8*
661%{_mandir}/man8/avahi-dnsconfd.action.8*
84074ccc 662
385ef799 663%attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
664%attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
84074ccc 665
87585768
AF
666%attr(755,root,root) %{_sysconfdir}/%{name}/avahi-autoipd.action
667%attr(755,root,root) %{_sbindir}/avahi-autoipd
844a35c9
JB
668%{_mandir}/man8/avahi-autoipd.8*
669%{_mandir}/man8/avahi-autoipd.action.8*
87585768 670
844a35c9 671%files libs -f %{name}.lang
84074ccc 672%defattr(644,root,root,755)
673%attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
844a35c9 674%attr(755,root,root) %ghost %{_libdir}/libavahi-client.so.3
84074ccc 675%attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
844a35c9 676%attr(755,root,root) %ghost %{_libdir}/libavahi-common.so.3
84074ccc 677%attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
9204f11e 678%attr(755,root,root) %ghost %{_libdir}/libavahi-core.so.6
844a35c9
JB
679# common for -discover*
680%dir %{_datadir}/%{name}
681%dir %{_datadir}/%{name}/interfaces
84074ccc 682
683%files devel
684%defattr(644,root,root,755)
685%doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
686%attr(755,root,root) %{_libdir}/libavahi-client.so
687%attr(755,root,root) %{_libdir}/libavahi-common.so
688%attr(755,root,root) %{_libdir}/libavahi-core.so
689%{_libdir}/libavahi-client.la
690%{_libdir}/libavahi-common.la
691%{_libdir}/libavahi-core.la
692%{_includedir}/avahi-client
693%{_includedir}/avahi-common
694%{_includedir}/avahi-core
695%{_pkgconfigdir}/avahi-client.pc
696%{_pkgconfigdir}/avahi-core.pc
697
698%files static
699%defattr(644,root,root,755)
700%{_libdir}/libavahi-client.a
701%{_libdir}/libavahi-common.a
702%{_libdir}/libavahi-core.a
703
fcc1bce8
JB
704%files ui
705%defattr(644,root,root,755)
844a35c9 706%attr(755,root,root) %{_bindir}/bshell
fcc1bce8 707%attr(755,root,root) %{_bindir}/bssh
5acf6365 708%attr(755,root,root) %{_bindir}/bvnc
fcc1bce8 709%attr(755,root,root) %{_libdir}/libavahi-ui.so.*.*.*
844a35c9
JB
710%attr(755,root,root) %ghost %{_libdir}/libavahi-ui.so.0
711%{_mandir}/man1/bssh.1*
712%{_mandir}/man1/bvnc.1*
5acf6365
PZ
713%{_desktopdir}/bssh.desktop
714%{_desktopdir}/bvnc.desktop
fcc1bce8
JB
715
716%files ui-devel
717%defattr(644,root,root,755)
718%attr(755,root,root) %{_libdir}/libavahi-ui.so
719%{_libdir}/libavahi-ui.la
720%{_includedir}/avahi-ui
721%{_pkgconfigdir}/avahi-ui.pc
722
723%files ui-static
724%defattr(644,root,root,755)
725%{_libdir}/libavahi-ui.a
726
e5a53780 727%files compat-libdns_sd
728%defattr(644,root,root,755)
729%attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.*
844a35c9 730%attr(755,root,root) %ghost %{_libdir}/libdns_sd.so.1
e5a53780 731
732%files compat-libdns_sd-devel
733%defattr(644,root,root,755)
734%attr(755,root,root) %{_libdir}/libdns_sd.so
735%{_libdir}/libdns_sd.la
736%{_includedir}/avahi-compat-libdns_sd
c3bb95bb 737%{_includedir}/dns_sd.h
e5a53780 738%{_pkgconfigdir}/avahi-compat-libdns_sd.pc
739
740%files compat-libdns_sd-static
741%defattr(644,root,root,755)
742%{_libdir}/libdns_sd.a
743
20c3c94e 744%files compat-howl
745%defattr(644,root,root,755)
746%attr(755,root,root) %{_libdir}/libhowl.so.*.*.*
844a35c9 747%attr(755,root,root) %ghost %{_libdir}/libhowl.so.0
20c3c94e 748
749%files compat-howl-devel
750%defattr(644,root,root,755)
751%attr(755,root,root) %{_libdir}/libhowl.so
752%{_libdir}/libhowl.la
753%{_includedir}/avahi-compat-howl
754%{_pkgconfigdir}/avahi-compat-howl.pc
755%{_pkgconfigdir}/howl.pc
756
757%files compat-howl-static
758%defattr(644,root,root,755)
759%{_libdir}/libhowl.a
760
2fa0b6d5
PZ
761%files -n python-avahi
762%defattr(644,root,root,755)
763%{py_sitedir}/avahi
764
51f19ad8 765%if %{with dotnet}
766%files -n dotnet-avahi
767%defattr(644,root,root,755)
768%{_prefix}/lib/mono/gac/avahi-sharp
84074ccc 769
51f19ad8 770%files -n dotnet-avahi-devel
771%defattr(644,root,root,755)
5bd74609 772%{_prefix}/lib/mono/avahi-sharp
844a35c9 773%{_libdir}/monodoc/sources/avahi-sharp-docs.*
48163b45 774%{_pkgconfigdir}/avahi-sharp.pc
fcc1bce8
JB
775
776%files -n dotnet-avahi-ui
777%defattr(644,root,root,755)
778%{_prefix}/lib/mono/gac/avahi-ui-sharp
779
780%files -n dotnet-avahi-ui-devel
781%defattr(644,root,root,755)
fcc1bce8 782%{_prefix}/lib/mono/avahi-ui-sharp
844a35c9 783%{_libdir}/monodoc/sources/avahi-ui-sharp-docs.*
fcc1bce8 784%{_pkgconfigdir}/avahi-ui-sharp.pc
51f19ad8 785%endif
84074ccc 786
787%files glib
788%defattr(644,root,root,755)
789%attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
844a35c9 790%attr(755,root,root) %ghost %{_libdir}/libavahi-glib.so.1
84074ccc 791
792%files glib-devel
793%defattr(644,root,root,755)
794%attr(755,root,root) %{_libdir}/libavahi-glib.so
795%{_libdir}/libavahi-glib.la
796%{_includedir}/avahi-glib
797%{_pkgconfigdir}/avahi-glib.pc
798
799%files glib-static
800%defattr(644,root,root,755)
801%{_libdir}/libavahi-glib.a
802
844a35c9
JB
803%files gobject
804%defattr(644,root,root,755)
805%attr(755,root,root) %{_libdir}/libavahi-gobject.so.*.*.*
806%attr(755,root,root) %ghost %{_libdir}/libavahi-gobject.so.0
807
808%files gobject-devel
809%defattr(644,root,root,755)
810%attr(755,root,root) %{_libdir}/libavahi-gobject.so
811%{_libdir}/libavahi-gobject.la
812%{_includedir}/avahi-gobject
813%{_pkgconfigdir}/avahi-gobject.pc
814
815%files gobject-static
816%defattr(644,root,root,755)
817%{_libdir}/libavahi-gobject.a
818
0b1041d5 819%if %{with qt3}
91bdb504 820%files qt
84074ccc 821%defattr(644,root,root,755)
822%attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
844a35c9 823%attr(755,root,root) %ghost %{_libdir}/libavahi-qt3.so.1
84074ccc 824
91bdb504 825%files qt-devel
84074ccc 826%defattr(644,root,root,755)
827%attr(755,root,root) %{_libdir}/libavahi-qt3.so
828%{_libdir}/libavahi-qt3.la
829%{_includedir}/avahi-qt3
830%{_pkgconfigdir}/avahi-qt3.pc
831
91bdb504 832%files qt-static
84074ccc 833%defattr(644,root,root,755)
834%{_libdir}/libavahi-qt3.a
0b1041d5 835%endif
91bdb504 836
0b1041d5 837%if %{with qt4}
91bdb504
PS
838%files Qt
839%defattr(644,root,root,755)
840%attr(755,root,root) %{_libdir}/libavahi-qt4.so.*.*.*
844a35c9 841%attr(755,root,root) %ghost %{_libdir}/libavahi-qt4.so.1
91bdb504
PS
842
843%files Qt-devel
844%defattr(644,root,root,755)
845%attr(755,root,root) %{_libdir}/libavahi-qt4.so
846%{_libdir}/libavahi-qt4.la
847%{_includedir}/avahi-qt4
848%{_pkgconfigdir}/avahi-qt4.pc
849
850%files Qt-static
851%defattr(644,root,root,755)
852%{_libdir}/libavahi-qt4.a
528a0e79 853%endif
84074ccc 854
855%files bookmarks
856%defattr(644,root,root,755)
857%attr(755,root,root) %{_bindir}/avahi-bookmarks
844a35c9 858%{_mandir}/man1/avahi-bookmarks.1*
84074ccc 859
860%files discover
861%defattr(644,root,root,755)
862%attr(755,root,root) %{_bindir}/avahi-discover
844a35c9 863%{py_sitedir}/avahi_discover
84074ccc 864%{_datadir}/%{name}/interfaces/avahi-discover.glade
5acf6365 865%{_desktopdir}/avahi-discover.desktop
76a611b3 866%{_pixmapsdir}/avahi.png
844a35c9 867%{_mandir}/man1/avahi-discover.1*
84074ccc 868
869%files discover-standalone
870%defattr(644,root,root,755)
871%attr(755,root,root) %{_bindir}/avahi-discover-standalone
cf57cb18 872%{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade
84074ccc 873
874%files utils
875%defattr(644,root,root,755)
876%attr(755,root,root) %{_bindir}/avahi-browse
844a35c9 877%attr(755,root,root) %{_bindir}/avahi-browse-domains
84074ccc 878%attr(755,root,root) %{_bindir}/avahi-publish
844a35c9
JB
879%attr(755,root,root) %{_bindir}/avahi-publish-address
880%attr(755,root,root) %{_bindir}/avahi-publish-service
84074ccc 881%attr(755,root,root) %{_bindir}/avahi-resolve
844a35c9
JB
882%attr(755,root,root) %{_bindir}/avahi-resolve-address
883%attr(755,root,root) %{_bindir}/avahi-resolve-host-name
884%{_mandir}/man1/avahi-browse.1*
885%{_mandir}/man1/avahi-browse-domains.1*
886%{_mandir}/man1/avahi-publish.1*
887%{_mandir}/man1/avahi-publish-address.1*
888%{_mandir}/man1/avahi-publish-service.1*
889%{_mandir}/man1/avahi-resolve.1*
890%{_mandir}/man1/avahi-resolve-address.1*
891%{_mandir}/man1/avahi-resolve-host-name.1*
This page took 0.269039 seconds and 4 git commands to generate.