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