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