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