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