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