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