]> git.pld-linux.org Git - packages/avahi.git/blob - avahi.spec
- added compat-libdns_sd library
[packages/avahi.git] / avahi.spec
1 #
2 # Conditional build:
3 %bcond_with     dotnet          # build with dotnet bindings
4 #
5 Summary:        Free mDNS/DNS-SD implementation
6 Summary(pl):    Wolna implementacja mDNS/DNS-SD
7 Name:           avahi
8 Version:        0.6.5
9 Release:        1
10 License:        GPL v.2/LGPL
11 Group:          Applications
12 Source0:        http://avahi.org/download/%{name}-%{version}.tar.gz
13 # Source0-md5:  1ecbc3534e3b45cf15269a3f4cfe1dca
14 Source1:        %{name}-daemon
15 Source2:        %{name}-dnsconfd
16 Source3:        %{name}.png
17 Patch0:         %{name}-desktop.patch
18 Patch1:         %{name}-glade.patch
19 URL:            http://avahi.org/
20 BuildRequires:  autoconf
21 BuildRequires:  automake
22 BuildRequires:  dbus-devel >= 0.34
23 BuildRequires:  doxygen
24 BuildRequires:  expat-devel
25 BuildRequires:  gdbm-devel
26 BuildRequires:  glib2-devel >= 1:2.4.0
27 BuildRequires:  graphviz
28 BuildRequires:  gtk+2-devel >= 2:2.4.0
29 BuildRequires:  libdaemon-devel >= 0.5
30 BuildRequires:  libglade2-devel >= 2.4.0
31 BuildRequires:  libtool
32 %if %{with dotnet}
33 BuildRequires:  mono
34 BuildRequires:  monodoc
35 %endif
36 BuildRequires:  python-dbus
37 BuildRequires:  python-pygtk-devel
38 BuildRequires:  qt-devel
39 BuildRequires:  rpmbuild(macros) >= 1.228
40 Requires(post,preun):   /sbin/chkconfig
41 Requires:       dbus >= 0.60-2
42 Requires:       %{name}-libs = %{version}-%{release}
43 Provides:       group(avahi)
44 Provides:       user(avahi)
45 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46
47 %description
48 Avahi is an implementation the DNS Service Discovery and Multicast DNS
49 specifications for Zeroconf Computing. It uses D-BUS for communication
50 between user applications and a system daemon.
51
52 %description -l pl
53 Avahi jest implementacj± specyfikacji DNS Service Discovery i
54 Multicast DNS dla Zeroconf Computing. U¿ywa D-BUSa dla komunikacji
55 pomiêdzy programami u¿ytkownika a demonem systemowym.
56
57 %package libs
58 Summary:        Avahi client, common and core libraries
59 Summary(pl):    Biblioteki Avahi: klienta, wspólna i g³ówna
60 Group:          Libraries
61
62 %description libs
63 Avahi client, common and core libraries.
64
65 %description libs -l pl
66 Biblioteki Avahi: klienta, wspólna i g³ówna.
67
68 %package devel
69 Summary:        Header files for Avahi library
70 Summary(pl):    Pliki nag³ówkowe biblioteki Avahi
71 Group:          Development/Libraries
72 Requires:       %{name}-libs = %{version}-%{release}
73 Requires:       expat-devel
74 Requires:       libdaemon-devel >= 0.5
75
76 %description devel
77 This is the package containing the header files for Avahi library.
78
79 %description devel -l pl
80 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi.
81
82 %package static
83 Summary:        Static Avahi library
84 Summary(pl):    Statyczna biblioteka Avahi
85 Group:          Development/Libraries
86 Requires:       %{name}-devel = %{version}-%{release}
87
88 %description static
89 Static Avahi library.
90
91 %description static -l pl
92 Statyczna biblioteka Avahi.
93
94 %package compat-libdns_sd
95 Summary:        Avahi Bonjour compat library
96 Summary(pl):    Biblioteka Avahi zgodna z Bonjour
97 Group:          Libraries
98
99 %description compat-libdns_sd
100 Avahi Bonjour compat library.
101
102 %description compat-libdns_sd -l pl
103 Biblioteka Avahi zgodna z Bonjour.
104
105 %package compat-libdns_sd-devel
106 Summary:        Header files for Avahi Bonjour compat library
107 Summary(pl):    Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Bonjour
108 Group:          Development/Libraries
109
110 %description compat-libdns_sd-devel
111 Header files for Avahi Bonjour compat library.
112
113 %description compat-libdns_sd-devel -l pl
114 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Bonjour
115
116 %package compat-libdns_sd-static
117 Summary:        Static Avahi Bonjour compat library
118 Summary(pl):    Statyczna biblioteka Avahi zgodna Bonjour
119 Group:          Development/Libraries
120 Requires:       %{name}-libdns_sd-devel = %{version}-%{release}
121
122 %description compat-libdns_sd-static
123 Static Avahi Bonjour compat library
124
125 %description compat-libdns_sd-static -l pl
126 Statyczna biblioteka Avahi zgodna Bonjour
127
128 %package glib
129 Summary:        Avahi GLib library bindings
130 Summary(pl):    Wi±zania Avahi dla bibioteki GLib
131 Group:          Libraries
132
133 %description glib
134 Avahi GLib library bindings.
135
136 %description glib -l pl
137 Wi±zania Avahi dla bibioteki GLib.
138
139 %package glib-devel
140 Summary:        Header files for Avahi GLib library bindings
141 Summary(pl):    Pliki nag³ówkowe wi±zañ Avahi dla biblioteki GLib
142 Group:          Development/Libraries
143 Requires:       %{name}-devel = %{version}-%{release}
144 Requires:       %{name}-glib = %{version}-%{release}
145 Requires:       glib2-devel >= 1:2.4.0
146
147 %description glib-devel
148 This is the package containing the header files for Avahi-glib
149 library.
150
151 %description glib-devel -l pl
152 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi-glib.
153
154 %package glib-static
155 Summary:        Static Avahi GLib library
156 Summary(pl):    Statyczna biblioteka Avahi GLib
157 Group:          Development/Libraries
158 Requires:       %{name}-glib-devel = %{version}-%{release}
159
160 %description glib-static
161 Static Avahi GLib library.
162
163 %description glib-static -l pl
164 Statyczna biblioteka Avahi GLib.
165
166 %package qt3
167 Summary:        Avahi Qt 3 library bindings
168 Summary(pl):    Wi±zania Avahi dla biblioteki Qt 3
169 Group:          Libraries
170 Requires:       %{name}-libs = %{version}-%{release}
171
172 %description qt3
173 Avahi Qt 3 library bindings.
174
175 %description qt3 -l pl
176 Wi±zania Avahi dla biblioteki Qt 3.
177
178 %package qt3-devel
179 Summary:        Header files for Avahi Qt 3 library bindings
180 Summary(pl):    Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3
181 Group:          Development/Libraries
182 Requires:       %{name}-devel = %{version}-%{release}
183 Requires:       %{name}-qt3 = %{version}-%{release}
184 Requires:       qt-devel
185
186 %description qt3-devel
187 Header files for Avahi Qt 3 library bindings.
188
189 %description qt3-devel -l pl
190 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3.
191
192 %package qt3-static
193 Summary:        Static Avahi Qt 3 library
194 Summary(pl):    Statyczna biblioteka Avahi Qt 3
195 Group:          Development/Libraries
196 Requires:       %{name}-qt3-devel = %{version}-%{release}
197
198 %description qt3-static
199 Static Avahi Qt 3 library.
200
201 %description qt3-static -l pl
202 Statyczna biblioteka Avahi Qt 3.
203
204 %package -n dotnet-avahi
205 Summary:        Avahi MONO bindings
206 Summary(pl):    Wi±zania Avahi dla MONO
207 Group:          Libraries
208
209 %description -n dotnet-avahi
210 Avahi MONO bindings.
211
212 %description -n dotnet-avahi -l pl
213 Wi±zania Avahi dla MONO.
214
215 %package -n dotnet-avahi-devel
216 Summary:        Development files for MONO Avahi bindings
217 Summary(pl):    Pliki rozwojowe wi±zañ Avahi dla MONO
218 Group:          Development/Libraries
219 Requires:       dotnet-avahi = %{version}-%{release}
220 Requires:       monodoc
221
222 %description -n dotnet-avahi-devel
223 Development files for MONO Avahi bindings.
224
225 %description -n dotnet-avahi-devel -l pl
226 Pliki rozwojowe wi±zañ Avahi dla MONO.
227
228 %package bookmarks
229 Summary:        Miniature web server
230 Summary(pl):    Miniaturowy serwer web
231 Group:          Applications
232
233 %description bookmarks
234 A Python based miniature web server that browses for mDNS/DNS-SD
235 services of type '_http._tcp' (i.e. web sites) and makes them
236 available as HTML links on http://localhost:8080.
237
238 %description bookmarks -l pl
239 Napisany w Pythonie miniaturowy serwer web, pozwalaj±cy na
240 przegl±danie us³ug typu '_http._tcp' (np. stron web) i udostêpniaj±cy
241 je jako linki HTML na http://localhost:8080.
242
243 %package discover
244 Summary:        Avahi Zeroconf browser
245 Summary(pl):    Przegl±darka Zeroconf Avahi
246 Group:          Applications
247
248 %description discover
249 A tool for enumerating all available services on the local LAN
250 (python-pygtk implementation).
251
252 %description discover -l pl
253 Narzêdzie wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej LAN
254 (implementacja w python-pygtk).
255
256 %package discover-standalone
257 Summary:        Avahi Zeroconf browser
258 Summary(pl):    Przegl±darka Zeroconf Avahi
259 Group:          Applications
260
261 %description discover-standalone
262 GTK+ tool for enumerating all available services on the local LAN.
263
264 %description discover-standalone -l pl
265 Narzêdzie GTK+ wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej
266 LAN.
267
268 %package utils
269 Summary:        Avahi CLI utilities
270 Summary(pl):    Narzêdzia CLI Avahi
271 Group:          Applications
272
273 %description utils
274 Command line utilities using avahi-client.
275
276 %description utils -l pl
277 Narzêdzia linii poleceñ korzystaj±ce z avahi-client.
278
279 %prep
280 %setup -q
281 %patch0 -p1
282 %patch1 -p1
283
284 %build
285 %{__libtoolize}
286 %{__aclocal} -I common
287 %{__autoconf}
288 %{__autoheader}
289 %{__automake}
290 %configure \
291         --enable-compat-libdns_sd \
292         --with-distro=none \
293         --disable-qt4 \
294         %{!?with_dotnet:--disable-mono} \
295         %{!?with_dotnet:--disable-monodoc}
296 %{__make}
297
298 %install
299 rm -rf $RPM_BUILD_ROOT
300 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d}
301
302 %{__make} install \
303         DESTDIR=$RPM_BUILD_ROOT \
304         pythondir=%{py_sitedir}
305
306 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
307 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
308
309 rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/{__init__,SimpleGladeApp}.py
310
311 %clean
312 rm -rf $RPM_BUILD_ROOT
313
314 %pre
315 %groupadd -g 165 -r -f avahi
316 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
317
318 %post
319 /sbin/chkconfig --add %{name}-daemon
320 %service %{name}-daemon restart
321 /sbin/chkconfig --add %{name}-dnsconfd
322 %service %{name}-dnsconfd restart
323
324 %preun
325 if [ "$1" = "0" ]; then
326         %service -q %{name}-dnsconfd stop
327         /sbin/chkconfig --del %{name}-dnsconfd
328         %service -q %{name}-daemon stop
329         /sbin/chkconfig --del %{name}-daemon
330 fi
331
332 %postun
333 if [ "$1" = "0" ]; then
334         %userremove avahi
335         %groupremove avahi
336 fi
337
338 %post   libs -p /sbin/ldconfig
339 %postun libs -p /sbin/ldconfig
340
341 %post   compat-libdns_sd -p /sbin/ldconfig
342 %postun compat-libdns_sd -p /sbin/ldconfig
343
344 %post   glib -p /sbin/ldconfig
345 %postun glib -p /sbin/ldconfig
346
347 %post   qt3 -p /sbin/ldconfig
348 %postun qt3 -p /sbin/ldconfig
349
350 %files
351 %defattr(644,root,root,755)
352 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
353
354 %dir %{_sysconfdir}/avahi
355 %dir %{_sysconfdir}/avahi/services
356 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
357 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-dnsconfd.action
358 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
359 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
360
361 %attr(755,root,root) %{_bindir}/avahi-browse
362 %attr(755,root,root) %{_bindir}/avahi-publish
363 %attr(755,root,root) %{_bindir}/avahi-resolve
364
365 %attr(755,root,root) %{_sbindir}/avahi-daemon
366 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
367
368 %dir %{_datadir}/%{name}
369 %dir
370 %dir %{_datadir}/%{name}/introspection
371 %{_datadir}/%{name}/introspection/*.introspect
372 %{_datadir}/%{name}/avahi-service.dtd
373 %{_datadir}/%{name}/service-types
374 %{_datadir}/%{name}/service-types.db
375
376 %{_mandir}/man*/*
377
378 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
379 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
380
381 %files libs
382 %defattr(644,root,root,755)
383 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
384 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
385 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
386
387 %files devel
388 %defattr(644,root,root,755)
389 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
390 %attr(755,root,root) %{_libdir}/libavahi-client.so
391 %attr(755,root,root) %{_libdir}/libavahi-common.so
392 %attr(755,root,root) %{_libdir}/libavahi-core.so
393 %{_libdir}/libavahi-client.la
394 %{_libdir}/libavahi-common.la
395 %{_libdir}/libavahi-core.la
396 %{_includedir}/avahi-client
397 %{_includedir}/avahi-common
398 %{_includedir}/avahi-core
399 %{_pkgconfigdir}/avahi-client.pc
400 %{_pkgconfigdir}/avahi-core.pc
401
402 %files static
403 %defattr(644,root,root,755)
404 %{_libdir}/libavahi-client.a
405 %{_libdir}/libavahi-common.a
406 %{_libdir}/libavahi-core.a
407
408 %files compat-libdns_sd
409 %defattr(644,root,root,755)
410 %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.*
411
412 %files compat-libdns_sd-devel
413 %defattr(644,root,root,755)
414 %attr(755,root,root) %{_libdir}/libdns_sd.so
415 %{_libdir}/libdns_sd.la
416 %{_includedir}/avahi-compat-libdns_sd
417 %{_pkgconfigdir}/avahi-compat-libdns_sd.pc
418
419 %files compat-libdns_sd-static
420 %defattr(644,root,root,755)
421 %{_libdir}/libdns_sd.a
422
423 %if %{with dotnet}
424 %files -n dotnet-avahi
425 %defattr(644,root,root,755)
426 %{_prefix}/lib/mono/gac/avahi-sharp
427
428 %files -n dotnet-avahi-devel
429 %defattr(644,root,root,755)
430 %{_prefix}/lib/monodoc/sources/avahi-*
431 %{_pkgconfigdir}/*.pc
432 %endif
433
434 %files glib
435 %defattr(644,root,root,755)
436 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
437
438 %files glib-devel
439 %defattr(644,root,root,755)
440 %attr(755,root,root) %{_libdir}/libavahi-glib.so
441 %{_libdir}/libavahi-glib.la
442 %{_includedir}/avahi-glib
443 %{_pkgconfigdir}/avahi-glib.pc
444
445 %files glib-static
446 %defattr(644,root,root,755)
447 %{_libdir}/libavahi-glib.a
448
449 %files qt3
450 %defattr(644,root,root,755)
451 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
452
453 %files qt3-devel
454 %defattr(644,root,root,755)
455 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
456 %{_libdir}/libavahi-qt3.la
457 %{_includedir}/avahi-qt3
458 %{_pkgconfigdir}/avahi-qt3.pc
459
460 %files qt3-static
461 %defattr(644,root,root,755)
462 %{_libdir}/libavahi-qt3.a
463
464 %files bookmarks
465 %defattr(644,root,root,755)
466 %attr(755,root,root) %{_bindir}/avahi-bookmarks
467
468 %files discover
469 %defattr(644,root,root,755)
470 %attr(755,root,root) %{_bindir}/avahi-discover
471 %{_datadir}/%{name}/interfaces/avahi-discover.glade
472 %{py_sitedir}/avahi
473 %{_desktopdir}/*.desktop
474 %{_pixmapsdir}/avahi.png
475
476 %files discover-standalone
477 %defattr(644,root,root,755)
478 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
479 %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade
480
481 %files utils
482 %defattr(644,root,root,755)
483 %attr(755,root,root) %{_bindir}/avahi-browse
484 %attr(755,root,root) %{_bindir}/avahi-publish
485 %attr(755,root,root) %{_bindir}/avahi-resolve
This page took 0.057644 seconds and 3 git commands to generate.