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