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