]> git.pld-linux.org Git - packages/avahi.git/blob - avahi.spec
- added howl compat library, rel.2
[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.7
9 Release:        2
10 License:        GPL v.2/LGPL
11 Group:          Applications
12 Source0:        http://avahi.org/download/%{name}-%{version}.tar.gz
13 # Source0-md5:  4cfb24b5c9063180f9eee2ef30beac53
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 Requires:       %{name}-compat-libdns_sd = %{version}-%{release}
110
111 %description compat-libdns_sd-devel
112 Header files for Avahi Bonjour compat library.
113
114 %description compat-libdns_sd-devel -l pl
115 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Bonjour.
116
117 %package compat-libdns_sd-static
118 Summary:        Static Avahi Bonjour compat library
119 Summary(pl):    Statyczna biblioteka Avahi zgodna z Bonjour
120 Group:          Development/Libraries
121 Requires:       %{name}-libdns_sd-devel = %{version}-%{release}
122
123 %description compat-libdns_sd-static
124 Static Avahi Bonjour compat library.
125
126 %description compat-libdns_sd-static -l pl
127 Statyczna biblioteka Avahi zgodna z Bonjour.
128
129 %package compat-howl
130 Summary:        Avahi Howl compat library
131 Summary(pl):    Biblioteka Avahi zgodna z Howl
132 Group:          Libraries
133 Obsoletes:      howl-libs
134
135 %description compat-howl
136 Avahi Howl compat library.
137
138 %description compat-howl -l pl
139 Biblioteka Avahi zgodna z Howl.
140
141 %package compat-howl-devel
142 Summary:        Header files for Avahi Howl compat library
143 Summary(pl):    Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Howl
144 Group:          Development/Libraries
145 Requires:       %{name}-compat-howl = %{version}-%{release}
146 Obsoletes:      howl-devel
147
148 %description compat-howl-devel
149 Header files for Avahi Howl compat library.
150
151 %description compat-howl-devel -l pl
152 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki zgodnej z Howl.
153
154 %package compat-howl-static
155 Summary:        Static Avahi Howl compat library
156 Summary(pl):    Statyczna biblioteka Avahi zgodna z Howl
157 Group:          Development/Libraries
158 Requires:       %{name}-howl-devel = %{version}-%{release}
159 Obsoletes:      howl-static
160
161 %description compat-howl-static
162 Static Avahi Howl compat library.
163
164 %description compat-howl-static -l pl
165 Statyczna biblioteka Avahi zgodna z Howl.
166
167 %package glib
168 Summary:        Avahi GLib library bindings
169 Summary(pl):    Wi±zania Avahi dla bibioteki GLib
170 Group:          Libraries
171
172 %description glib
173 Avahi GLib library bindings.
174
175 %description glib -l pl
176 Wi±zania Avahi dla bibioteki GLib.
177
178 %package glib-devel
179 Summary:        Header files for Avahi GLib library bindings
180 Summary(pl):    Pliki nag³ówkowe wi±zañ Avahi dla biblioteki GLib
181 Group:          Development/Libraries
182 Requires:       %{name}-devel = %{version}-%{release}
183 Requires:       %{name}-glib = %{version}-%{release}
184 Requires:       glib2-devel >= 1:2.4.0
185
186 %description glib-devel
187 This is the package containing the header files for Avahi-glib
188 library.
189
190 %description glib-devel -l pl
191 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi-glib.
192
193 %package glib-static
194 Summary:        Static Avahi GLib library
195 Summary(pl):    Statyczna biblioteka Avahi GLib
196 Group:          Development/Libraries
197 Requires:       %{name}-glib-devel = %{version}-%{release}
198
199 %description glib-static
200 Static Avahi GLib library.
201
202 %description glib-static -l pl
203 Statyczna biblioteka Avahi GLib.
204
205 %package qt3
206 Summary:        Avahi Qt 3 library bindings
207 Summary(pl):    Wi±zania Avahi dla biblioteki Qt 3
208 Group:          Libraries
209 Requires:       %{name}-libs = %{version}-%{release}
210
211 %description qt3
212 Avahi Qt 3 library bindings.
213
214 %description qt3 -l pl
215 Wi±zania Avahi dla biblioteki Qt 3.
216
217 %package qt3-devel
218 Summary:        Header files for Avahi Qt 3 library bindings
219 Summary(pl):    Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3
220 Group:          Development/Libraries
221 Requires:       %{name}-devel = %{version}-%{release}
222 Requires:       %{name}-qt3 = %{version}-%{release}
223 Requires:       qt-devel
224
225 %description qt3-devel
226 Header files for Avahi Qt 3 library bindings.
227
228 %description qt3-devel -l pl
229 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3.
230
231 %package qt3-static
232 Summary:        Static Avahi Qt 3 library
233 Summary(pl):    Statyczna biblioteka Avahi Qt 3
234 Group:          Development/Libraries
235 Requires:       %{name}-qt3-devel = %{version}-%{release}
236
237 %description qt3-static
238 Static Avahi Qt 3 library.
239
240 %description qt3-static -l pl
241 Statyczna biblioteka Avahi Qt 3.
242
243 %package -n dotnet-avahi
244 Summary:        Avahi MONO bindings
245 Summary(pl):    Wi±zania Avahi dla MONO
246 Group:          Libraries
247
248 %description -n dotnet-avahi
249 Avahi MONO bindings.
250
251 %description -n dotnet-avahi -l pl
252 Wi±zania Avahi dla MONO.
253
254 %package -n dotnet-avahi-devel
255 Summary:        Development files for MONO Avahi bindings
256 Summary(pl):    Pliki rozwojowe wi±zañ Avahi dla MONO
257 Group:          Development/Libraries
258 Requires:       dotnet-avahi = %{version}-%{release}
259 Requires:       monodoc
260
261 %description -n dotnet-avahi-devel
262 Development files for MONO Avahi bindings.
263
264 %description -n dotnet-avahi-devel -l pl
265 Pliki rozwojowe wi±zañ Avahi dla MONO.
266
267 %package bookmarks
268 Summary:        Miniature web server
269 Summary(pl):    Miniaturowy serwer web
270 Group:          Applications
271
272 %description bookmarks
273 A Python based miniature web server that browses for mDNS/DNS-SD
274 services of type '_http._tcp' (i.e. web sites) and makes them
275 available as HTML links on http://localhost:8080.
276
277 %description bookmarks -l pl
278 Napisany w Pythonie miniaturowy serwer web, pozwalaj±cy na
279 przegl±danie us³ug typu '_http._tcp' (np. stron web) i udostêpniaj±cy
280 je jako linki HTML na http://localhost:8080.
281
282 %package discover
283 Summary:        Avahi Zeroconf browser
284 Summary(pl):    Przegl±darka Zeroconf Avahi
285 Group:          Applications
286
287 %description discover
288 A tool for enumerating all available services on the local LAN
289 (python-pygtk implementation).
290
291 %description discover -l pl
292 Narzêdzie wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej LAN
293 (implementacja w python-pygtk).
294
295 %package discover-standalone
296 Summary:        Avahi Zeroconf browser
297 Summary(pl):    Przegl±darka Zeroconf Avahi
298 Group:          Applications
299
300 %description discover-standalone
301 GTK+ tool for enumerating all available services on the local LAN.
302
303 %description discover-standalone -l pl
304 Narzêdzie GTK+ wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej
305 LAN.
306
307 %package utils
308 Summary:        Avahi CLI utilities
309 Summary(pl):    Narzêdzia CLI Avahi
310 Group:          Applications
311
312 %description utils
313 Command line utilities using avahi-client.
314
315 %description utils -l pl
316 Narzêdzia linii poleceñ korzystaj±ce z avahi-client.
317
318 %prep
319 %setup -q
320 %patch0 -p1
321 %patch1 -p1
322
323 %build
324 %{__libtoolize}
325 %{__aclocal} -I common
326 %{__autoconf}
327 %{__autoheader}
328 %{__automake}
329 %configure \
330         --enable-compat-libdns_sd \
331         --enable-compat-howl \
332         --with-distro=none \
333         --disable-qt4 \
334         %{!?with_dotnet:--disable-mono} \
335         %{!?with_dotnet:--disable-monodoc}
336 %{__make}
337
338 %install
339 rm -rf $RPM_BUILD_ROOT
340 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d}
341
342 %{__make} install \
343         DESTDIR=$RPM_BUILD_ROOT \
344         pythondir=%{py_sitedir}
345
346 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
347 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
348
349 ln -sf %{_includedir}/avahi-compat-libdns_sd/dns_sd.h \
350         $RPM_BUILD_ROOT%{_includedir}/dns_sd.h
351
352 ln -sf %{_pkgconfigdir}/avahi-compat-howl.pc \
353         $RPM_BUILD_ROOT%{_pkgconfigdir}/howl.pc
354
355 rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/{__init__,SimpleGladeApp}.py
356
357 %clean
358 rm -rf $RPM_BUILD_ROOT
359
360 %pre
361 %groupadd -g 165 -r -f avahi
362 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
363
364 %post
365 /sbin/chkconfig --add %{name}-daemon
366 %service %{name}-daemon restart
367 /sbin/chkconfig --add %{name}-dnsconfd
368 %service %{name}-dnsconfd restart
369
370 %preun
371 if [ "$1" = "0" ]; then
372         %service -q %{name}-dnsconfd stop
373         /sbin/chkconfig --del %{name}-dnsconfd
374         %service -q %{name}-daemon stop
375         /sbin/chkconfig --del %{name}-daemon
376 fi
377
378 %postun
379 if [ "$1" = "0" ]; then
380         %userremove avahi
381         %groupremove avahi
382 fi
383
384 %post   libs -p /sbin/ldconfig
385 %postun libs -p /sbin/ldconfig
386
387 %post   compat-libdns_sd -p /sbin/ldconfig
388 %postun compat-libdns_sd -p /sbin/ldconfig
389
390 %post   compat-howl -p /sbin/ldconfig
391 %postun compat-howl -p /sbin/ldconfig
392
393 %post   glib -p /sbin/ldconfig
394 %postun glib -p /sbin/ldconfig
395
396 %post   qt3 -p /sbin/ldconfig
397 %postun qt3 -p /sbin/ldconfig
398
399 %files
400 %defattr(644,root,root,755)
401 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
402
403 %dir %{_sysconfdir}/avahi
404 %dir %{_sysconfdir}/avahi/services
405 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
406 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-dnsconfd.action
407 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/hosts
408 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
409 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
410
411 %attr(755,root,root) %{_bindir}/avahi-browse
412 %attr(755,root,root) %{_bindir}/avahi-publish
413 %attr(755,root,root) %{_bindir}/avahi-resolve
414
415 %attr(755,root,root) %{_sbindir}/avahi-daemon
416 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
417
418 %dir %{_datadir}/%{name}
419 %dir %{_datadir}/%{name}/introspection
420 %{_datadir}/%{name}/introspection/*.introspect
421 %{_datadir}/%{name}/avahi-service.dtd
422 %{_datadir}/%{name}/service-types
423 %{_datadir}/%{name}/service-types.db
424
425 %{_mandir}/man*/*
426
427 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
428 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
429
430 %files libs
431 %defattr(644,root,root,755)
432 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
433 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
434 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
435
436 %files devel
437 %defattr(644,root,root,755)
438 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
439 %attr(755,root,root) %{_libdir}/libavahi-client.so
440 %attr(755,root,root) %{_libdir}/libavahi-common.so
441 %attr(755,root,root) %{_libdir}/libavahi-core.so
442 %{_libdir}/libavahi-client.la
443 %{_libdir}/libavahi-common.la
444 %{_libdir}/libavahi-core.la
445 %{_includedir}/avahi-client
446 %{_includedir}/avahi-common
447 %{_includedir}/avahi-core
448 %{_pkgconfigdir}/avahi-client.pc
449 %{_pkgconfigdir}/avahi-core.pc
450
451 %files static
452 %defattr(644,root,root,755)
453 %{_libdir}/libavahi-client.a
454 %{_libdir}/libavahi-common.a
455 %{_libdir}/libavahi-core.a
456
457 %files compat-libdns_sd
458 %defattr(644,root,root,755)
459 %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.*
460
461 %files compat-libdns_sd-devel
462 %defattr(644,root,root,755)
463 %attr(755,root,root) %{_libdir}/libdns_sd.so
464 %{_libdir}/libdns_sd.la
465 %{_includedir}/avahi-compat-libdns_sd
466 %{_includedir}/dns_sd.h
467 %{_pkgconfigdir}/avahi-compat-libdns_sd.pc
468
469 %files compat-libdns_sd-static
470 %defattr(644,root,root,755)
471 %{_libdir}/libdns_sd.a
472
473 %files compat-howl
474 %defattr(644,root,root,755)
475 %attr(755,root,root) %{_libdir}/libhowl.so.*.*.*
476
477 %files compat-howl-devel
478 %defattr(644,root,root,755)
479 %attr(755,root,root) %{_libdir}/libhowl.so
480 %{_libdir}/libhowl.la
481 %{_includedir}/avahi-compat-howl
482 %{_pkgconfigdir}/avahi-compat-howl.pc
483 %{_pkgconfigdir}/howl.pc
484
485 %files compat-howl-static
486 %defattr(644,root,root,755)
487 %{_libdir}/libhowl.a
488
489 %if %{with dotnet}
490 %files -n dotnet-avahi
491 %defattr(644,root,root,755)
492 %{_prefix}/lib/mono/gac/avahi-sharp
493
494 %files -n dotnet-avahi-devel
495 %defattr(644,root,root,755)
496 %{_prefix}/lib/monodoc/sources/avahi-*
497 %{_pkgconfigdir}/*.pc
498 %endif
499
500 %files glib
501 %defattr(644,root,root,755)
502 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
503
504 %files glib-devel
505 %defattr(644,root,root,755)
506 %attr(755,root,root) %{_libdir}/libavahi-glib.so
507 %{_libdir}/libavahi-glib.la
508 %{_includedir}/avahi-glib
509 %{_pkgconfigdir}/avahi-glib.pc
510
511 %files glib-static
512 %defattr(644,root,root,755)
513 %{_libdir}/libavahi-glib.a
514
515 %files qt3
516 %defattr(644,root,root,755)
517 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
518
519 %files qt3-devel
520 %defattr(644,root,root,755)
521 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
522 %{_libdir}/libavahi-qt3.la
523 %{_includedir}/avahi-qt3
524 %{_pkgconfigdir}/avahi-qt3.pc
525
526 %files qt3-static
527 %defattr(644,root,root,755)
528 %{_libdir}/libavahi-qt3.a
529
530 %files bookmarks
531 %defattr(644,root,root,755)
532 %attr(755,root,root) %{_bindir}/avahi-bookmarks
533
534 %files discover
535 %defattr(644,root,root,755)
536 %attr(755,root,root) %{_bindir}/avahi-discover
537 %{_datadir}/%{name}/interfaces/avahi-discover.glade
538 %{py_sitedir}/avahi
539 %{_desktopdir}/*.desktop
540 %{_pixmapsdir}/avahi.png
541
542 %files discover-standalone
543 %defattr(644,root,root,755)
544 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
545 %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade
546
547 %files utils
548 %defattr(644,root,root,755)
549 %attr(755,root,root) %{_bindir}/avahi-browse
550 %attr(755,root,root) %{_bindir}/avahi-publish
551 %attr(755,root,root) %{_bindir}/avahi-resolve
This page took 0.148108 seconds and 4 git commands to generate.