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