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