]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # TODO: | |
3 | # - autoip subpackage ? | |
4 | # - autoip start script ? | |
5 | # | |
6 | # Conditional build: | |
7 | %bcond_without dotnet # build without dotnet bindings | |
8 | %bcond_without qt # build without (any) qt bindings | |
9 | %bcond_without qt3 # build without qt3 bindings | |
10 | %bcond_without qt4 # build without qt4 bindings | |
11 | # | |
12 | %ifnarch %{ix86} %{x8664} alpha arm hppa ia64 mips ppc s390 s390x sparc sparcv9 | |
13 | %undefine with_dotnet | |
14 | %endif | |
15 | %ifarch i386 | |
16 | %undefine with_dotnet | |
17 | %endif | |
18 | ||
19 | %if !%{with qt} | |
20 | %undefine with_qt3 | |
21 | %undefine with_qt4 | |
22 | %endif | |
23 | %{?with_dotnet:%include /usr/lib/rpm/macros.mono} | |
24 | # | |
25 | Summary: Free mDNS/DNS-SD implementation | |
26 | Summary(pl.UTF-8): Wolna implementacja mDNS/DNS-SD | |
27 | Name: avahi | |
28 | Version: 0.6.24 | |
29 | Release: 2 | |
30 | License: LGPL v2.1+ | |
31 | Group: Applications | |
32 | Source0: http://avahi.org/download/%{name}-%{version}.tar.gz | |
33 | # Source0-md5: 068c1d220b07037e64caf87d4a7a0504 | |
34 | Source1: %{name}-daemon | |
35 | Source2: %{name}-dnsconfd | |
36 | Source3: %{name}.png | |
37 | Patch0: %{name}-desktop.patch | |
38 | Patch1: %{name}-glade.patch | |
39 | Patch2: %{name}-destdir.patch | |
40 | Patch3: %{name}-mono-dir.patch | |
41 | URL: http://avahi.org/ | |
42 | BuildRequires: autoconf | |
43 | BuildRequires: automake | |
44 | BuildRequires: dbus-devel >= 0.92 | |
45 | BuildRequires: doxygen | |
46 | BuildRequires: expat-devel | |
47 | BuildRequires: gdbm-devel | |
48 | BuildRequires: glib2-devel >= 1:2.12.2 | |
49 | BuildRequires: graphviz | |
50 | BuildRequires: gtk+2-devel >= 2:2.10.2 | |
51 | BuildRequires: intltool >= 0.35 | |
52 | BuildRequires: libcap-devel | |
53 | BuildRequires: libdaemon-devel >= 0.11 | |
54 | BuildRequires: libglade2-devel >= 1:2.6.0 | |
55 | BuildRequires: libtool | |
56 | %if %{with dotnet} | |
57 | BuildRequires: dotnet-gtk-sharp2-devel >= 2.10 | |
58 | BuildRequires: mono-csharp | |
59 | BuildRequires: monodoc | |
60 | %endif | |
61 | BuildRequires: pkgconfig | |
62 | BuildRequires: python >= 1:2.4 | |
63 | BuildRequires: python-dbus >= 0.71 | |
64 | BuildRequires: python-pygtk-devel >= 2:2.9.6 | |
65 | %if %{with qt3} | |
66 | BuildRequires: qt-devel >= 1:3.0 | |
67 | %endif | |
68 | %if %{with qt4} | |
69 | BuildRequires: QtCore-devel | |
70 | BuildRequires: qt4-build | |
71 | %endif | |
72 | BuildRequires: rpmbuild(macros) >= 1.228 | |
73 | Requires(post,preun): /sbin/chkconfig | |
74 | Requires: %{name}-libs = %{version}-%{release} | |
75 | Requires: dbus >= 0.92 | |
76 | Requires: libdaemon >= 0.11 | |
77 | Provides: group(avahi) | |
78 | Provides: user(avahi) | |
79 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
80 | ||
81 | %description | |
82 | Avahi is an implementation the DNS Service Discovery and Multicast DNS | |
83 | specifications for Zeroconf Computing. It uses D-BUS for communication | |
84 | between user applications and a system daemon. | |
85 | ||
86 | %description -l pl.UTF-8 | |
87 | Avahi jest implementacją specyfikacji DNS Service Discovery i | |
88 | Multicast DNS dla Zeroconf Computing. Używa D-BUSa dla komunikacji | |
89 | pomiędzy programami użytkownika a demonem systemowym. | |
90 | ||
91 | %package libs | |
92 | Summary: Avahi client, common and core libraries | |
93 | Summary(pl.UTF-8): Biblioteki Avahi: klienta, wspólna i główna | |
94 | Group: Libraries | |
95 | ||
96 | %description libs | |
97 | Avahi client, common and core libraries. | |
98 | ||
99 | %description libs -l pl.UTF-8 | |
100 | Biblioteki Avahi: klienta, wspólna i główna. | |
101 | ||
102 | %package devel | |
103 | Summary: Header files for Avahi library | |
104 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi | |
105 | Group: Development/Libraries | |
106 | Requires: %{name}-libs = %{version}-%{release} | |
107 | Requires: dbus-devel >= 0.92 | |
108 | Requires: expat-devel | |
109 | ||
110 | %description devel | |
111 | This is the package containing the header files for Avahi library. | |
112 | ||
113 | %description devel -l pl.UTF-8 | |
114 | Ten pakiet zawiera pliki nagłówkowe biblioteki Avahi. | |
115 | ||
116 | %package static | |
117 | Summary: Static Avahi library | |
118 | Summary(pl.UTF-8): Statyczna biblioteka Avahi | |
119 | Group: Development/Libraries | |
120 | Requires: %{name}-devel = %{version}-%{release} | |
121 | ||
122 | %description static | |
123 | Static Avahi library. | |
124 | ||
125 | %description static -l pl.UTF-8 | |
126 | Statyczna biblioteka Avahi. | |
127 | ||
128 | %package ui | |
129 | Summary: Avahi UI library | |
130 | Summary(pl.UTF-8): Biblioteka Avahi UI | |
131 | Group: X11/Libraries | |
132 | Requires: %{name}-libs = %{version}-%{release} | |
133 | Requires: gtk+2 >= 2:2.10.2 | |
134 | ||
135 | %description ui | |
136 | Common GTK+ UI support library for Avahi. | |
137 | ||
138 | %description ui -l pl.UTF-8 | |
139 | Biblioteka wspólnego interfejsu użytkownika GTK+ dla Avahi. | |
140 | ||
141 | %package ui-devel | |
142 | Summary: Header files for Avahi UI library | |
143 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi UI | |
144 | Group: X11/Development/Libraries | |
145 | Requires: %{name}-devel = %{version}-%{release} | |
146 | Requires: %{name}-ui = %{version}-%{release} | |
147 | Requires: gtk+2-devel >= 2:2.10.2 | |
148 | ||
149 | %description ui-devel | |
150 | Header files for Avahi UI library. | |
151 | ||
152 | %description ui-devel -l pl.UTF-8 | |
153 | Pliki nagłówkowe biblioteki Avahi UI. | |
154 | ||
155 | %package ui-static | |
156 | Summary: Static Avahi UI library | |
157 | Summary(pl.UTF-8): Statyczna biblioteka Avahi UI | |
158 | Group: X11/Development/Libraries | |
159 | Requires: %{name}-ui-devel = %{version}-%{release} | |
160 | ||
161 | %description ui-static | |
162 | Static Avahi UI library. | |
163 | ||
164 | %description ui-static -l pl.UTF-8 | |
165 | Statyczna biblioteka Avahi UI. | |
166 | ||
167 | %package compat-libdns_sd | |
168 | Summary: Avahi Bonjour compat library | |
169 | Summary(pl.UTF-8): Biblioteka Avahi zgodna z Bonjour | |
170 | Group: Libraries | |
171 | Provides: mdns-bonjour | |
172 | Obsoletes: mDNSResponder-libs | |
173 | ||
174 | %description compat-libdns_sd | |
175 | Avahi Bonjour compat library. | |
176 | ||
177 | %description compat-libdns_sd -l pl.UTF-8 | |
178 | Biblioteka Avahi zgodna z Bonjour. | |
179 | ||
180 | %package compat-libdns_sd-devel | |
181 | Summary: Header files for Avahi Bonjour compat library | |
182 | Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Bonjour | |
183 | Group: Development/Libraries | |
184 | Requires: %{name}-compat-libdns_sd = %{version}-%{release} | |
185 | Requires: %{name}-devel = %{version}-%{release} | |
186 | Provides: mdns-bonjour-devel | |
187 | Obsoletes: mDNSResponder-devel | |
188 | ||
189 | %description compat-libdns_sd-devel | |
190 | Header files for Avahi Bonjour compat library. | |
191 | ||
192 | %description compat-libdns_sd-devel -l pl.UTF-8 | |
193 | Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Bonjour. | |
194 | ||
195 | %package compat-libdns_sd-static | |
196 | Summary: Static Avahi Bonjour compat library | |
197 | Summary(pl.UTF-8): Statyczna biblioteka Avahi zgodna z Bonjour | |
198 | Group: Development/Libraries | |
199 | Requires: %{name}-compat-libdns_sd-devel = %{version}-%{release} | |
200 | Provides: mdns-bonjour-static | |
201 | ||
202 | %description compat-libdns_sd-static | |
203 | Static Avahi Bonjour compat library. | |
204 | ||
205 | %description compat-libdns_sd-static -l pl.UTF-8 | |
206 | Statyczna biblioteka Avahi zgodna z Bonjour. | |
207 | ||
208 | %package compat-howl | |
209 | Summary: Avahi Howl compat library | |
210 | Summary(pl.UTF-8): Biblioteka Avahi zgodna z Howl | |
211 | Group: Libraries | |
212 | Provides: mdns-howl-libs | |
213 | Obsoletes: howl-libs | |
214 | ||
215 | %description compat-howl | |
216 | Avahi Howl compat library. | |
217 | ||
218 | %description compat-howl -l pl.UTF-8 | |
219 | Biblioteka Avahi zgodna z Howl. | |
220 | ||
221 | %package compat-howl-devel | |
222 | Summary: Header files for Avahi Howl compat library | |
223 | Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Howl | |
224 | Group: Development/Libraries | |
225 | Requires: %{name}-compat-howl = %{version}-%{release} | |
226 | Requires: %{name}-devel = %{version}-%{release} | |
227 | Provides: mdns-howl-devel | |
228 | Obsoletes: howl-devel | |
229 | ||
230 | %description compat-howl-devel | |
231 | Header files for Avahi Howl compat library. | |
232 | ||
233 | %description compat-howl-devel -l pl.UTF-8 | |
234 | Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Howl. | |
235 | ||
236 | %package compat-howl-static | |
237 | Summary: Static Avahi Howl compat library | |
238 | Summary(pl.UTF-8): Statyczna biblioteka Avahi zgodna z Howl | |
239 | Group: Development/Libraries | |
240 | Requires: %{name}-compat-howl-devel = %{version}-%{release} | |
241 | Provides: mdns-howl-static | |
242 | Obsoletes: howl-static | |
243 | ||
244 | %description compat-howl-static | |
245 | Static Avahi Howl compat library. | |
246 | ||
247 | %description compat-howl-static -l pl.UTF-8 | |
248 | Statyczna biblioteka Avahi zgodna z Howl. | |
249 | ||
250 | %package glib | |
251 | Summary: Avahi GLib library bindings | |
252 | Summary(pl.UTF-8): Wiązania Avahi dla bibioteki GLib | |
253 | Group: Libraries | |
254 | ||
255 | %description glib | |
256 | Avahi GLib library bindings. | |
257 | ||
258 | %description glib -l pl.UTF-8 | |
259 | Wiązania Avahi dla bibioteki GLib. | |
260 | ||
261 | %package glib-devel | |
262 | Summary: Header files for Avahi GLib library bindings | |
263 | Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki GLib | |
264 | Group: Development/Libraries | |
265 | Requires: %{name}-devel = %{version}-%{release} | |
266 | Requires: %{name}-glib = %{version}-%{release} | |
267 | Requires: glib2-devel >= 1:2.12.2 | |
268 | ||
269 | %description glib-devel | |
270 | This is the package containing the header files for Avahi-glib | |
271 | library. | |
272 | ||
273 | %description glib-devel -l pl.UTF-8 | |
274 | Ten pakiet zawiera pliki nagłówkowe biblioteki Avahi-glib. | |
275 | ||
276 | %package glib-static | |
277 | Summary: Static Avahi GLib library | |
278 | Summary(pl.UTF-8): Statyczna biblioteka Avahi GLib | |
279 | Group: Development/Libraries | |
280 | Requires: %{name}-glib-devel = %{version}-%{release} | |
281 | ||
282 | %description glib-static | |
283 | Static Avahi GLib library. | |
284 | ||
285 | %description glib-static -l pl.UTF-8 | |
286 | Statyczna biblioteka Avahi GLib. | |
287 | ||
288 | %package gobject | |
289 | Summary: Avahi GObject interface | |
290 | Summary(pl.UTF-8): Interfejs GObject do Avahi | |
291 | Group: Libraries | |
292 | ||
293 | %description gobject | |
294 | Avahi GObject interface. | |
295 | ||
296 | %description gobject -l pl.UTF-8 | |
297 | Interfejs GObject do Avahi. | |
298 | ||
299 | %package gobject-devel | |
300 | Summary: Header files for Avahi GObject interface | |
301 | Summary(pl.UTF-8): Pliki nagłówkowe interfejsu GObject do Avahi | |
302 | Group: Development/Libraries | |
303 | Requires: %{name}-devel = %{version}-%{release} | |
304 | Requires: %{name}-gobject = %{version}-%{release} | |
305 | Requires: glib2-devel >= 1:2.12.2 | |
306 | ||
307 | %description gobject-devel | |
308 | This is the package containing the header files for Avahi GObject | |
309 | interface. | |
310 | ||
311 | %description gobject-devel -l pl.UTF-8 | |
312 | Ten pakiet zawiera pliki nagłówkowe interfejsu GObject do Avahi. | |
313 | ||
314 | %package gobject-static | |
315 | Summary: Static Avahi GObject library | |
316 | Summary(pl.UTF-8): Statyczna biblioteka Avahi GObject | |
317 | Group: Development/Libraries | |
318 | Requires: %{name}-gobject-devel = %{version}-%{release} | |
319 | ||
320 | %description gobject-static | |
321 | Static Avahi GObject library. | |
322 | ||
323 | %description gobject-static -l pl.UTF-8 | |
324 | Statyczna biblioteka Avahi GObject. | |
325 | ||
326 | %package qt | |
327 | Summary: Avahi Qt 3 library bindings | |
328 | Summary(pl.UTF-8): Wiązania Avahi dla biblioteki Qt 3 | |
329 | Group: Libraries | |
330 | Requires: %{name}-libs = %{version}-%{release} | |
331 | Obsoletes: avahi-qt3 | |
332 | ||
333 | %description qt | |
334 | Avahi Qt 3 library bindings. | |
335 | ||
336 | %description qt -l pl.UTF-8 | |
337 | Wiązania Avahi dla biblioteki Qt 3. | |
338 | ||
339 | %package qt-devel | |
340 | Summary: Header files for Avahi Qt 3 library bindings | |
341 | Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 3 | |
342 | Group: Development/Libraries | |
343 | Requires: %{name}-devel = %{version}-%{release} | |
344 | Requires: %{name}-qt = %{version}-%{release} | |
345 | Requires: qt-devel >= 1:3.0 | |
346 | Obsoletes: avahi-qt3-devel | |
347 | ||
348 | %description qt-devel | |
349 | Header files for Avahi Qt 3 library bindings. | |
350 | ||
351 | %description qt-devel -l pl.UTF-8 | |
352 | Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 3. | |
353 | ||
354 | %package qt-static | |
355 | Summary: Static Avahi Qt 3 library | |
356 | Summary(pl.UTF-8): Statyczna biblioteka Avahi Qt 3 | |
357 | Group: Development/Libraries | |
358 | Requires: %{name}-qt-devel = %{version}-%{release} | |
359 | Obsoletes: avahi-qt3-static | |
360 | ||
361 | %description qt-static | |
362 | Static Avahi Qt 3 library. | |
363 | ||
364 | %description qt-static -l pl.UTF-8 | |
365 | Statyczna biblioteka Avahi Qt 3. | |
366 | ||
367 | %package Qt | |
368 | Summary: Avahi Qt 4 library bindings | |
369 | Summary(pl.UTF-8): Wiązania Avahi dla biblioteki Qt 4 | |
370 | Group: Libraries | |
371 | Requires: %{name}-libs = %{version}-%{release} | |
372 | ||
373 | %description Qt | |
374 | Avahi Qt 4 library bindings. | |
375 | ||
376 | %description Qt -l pl.UTF-8 | |
377 | Wiązania Avahi dla biblioteki Qt 4. | |
378 | ||
379 | %package Qt-devel | |
380 | Summary: Header files for Avahi Qt 4 library bindings | |
381 | Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 4 | |
382 | Group: Development/Libraries | |
383 | Requires: %{name}-devel = %{version}-%{release} | |
384 | Requires: %{name}-Qt = %{version}-%{release} | |
385 | ||
386 | %description Qt-devel | |
387 | Header files for Avahi Qt 4 library bindings. | |
388 | ||
389 | %description Qt-devel -l pl.UTF-8 | |
390 | Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 4. | |
391 | ||
392 | %package Qt-static | |
393 | Summary: Static Avahi Qt 4 library | |
394 | Summary(pl.UTF-8): Statyczna biblioteka Avahi Qt 4 | |
395 | Group: Development/Libraries | |
396 | Requires: %{name}-Qt-devel = %{version}-%{release} | |
397 | ||
398 | %description Qt-static | |
399 | Static Avahi Qt 4 library. | |
400 | ||
401 | %description Qt-static -l pl.UTF-8 | |
402 | Statyczna biblioteka Avahi Qt 4. | |
403 | ||
404 | %package -n python-avahi | |
405 | Summary: Avahi Python bindings | |
406 | Summary(pl.UTF-8): Wiązania Avahi dla Pythona | |
407 | Group: Development/Languages/Python | |
408 | Requires: %{name}-libs = %{version}-%{release} | |
409 | Requires: python-dbus >= 0.71 | |
410 | ||
411 | %description -n python-avahi | |
412 | Avahi Python bindings. | |
413 | ||
414 | %description -n python-avahi -l pl.UTF-8 | |
415 | Wiązania Avahi dla Pythona. | |
416 | ||
417 | %package -n dotnet-avahi | |
418 | Summary: Avahi MONO bindings | |
419 | Summary(pl.UTF-8): Wiązania Avahi dla MONO | |
420 | Group: Libraries | |
421 | Requires: %{name}-libs = %{version}-%{release} | |
422 | ||
423 | %description -n dotnet-avahi | |
424 | Avahi MONO bindings. | |
425 | ||
426 | %description -n dotnet-avahi -l pl.UTF-8 | |
427 | Wiązania Avahi dla MONO. | |
428 | ||
429 | %package -n dotnet-avahi-devel | |
430 | Summary: Development files for MONO Avahi bindings | |
431 | Summary(pl.UTF-8): Pliki rozwojowe wiązań Avahi dla MONO | |
432 | Group: Development/Libraries | |
433 | Requires: dotnet-avahi = %{version}-%{release} | |
434 | Requires: monodoc | |
435 | ||
436 | %description -n dotnet-avahi-devel | |
437 | Development files for MONO Avahi bindings. | |
438 | ||
439 | %description -n dotnet-avahi-devel -l pl.UTF-8 | |
440 | Pliki rozwojowe wiązań Avahi dla MONO. | |
441 | ||
442 | %package -n dotnet-avahi-ui | |
443 | Summary: Avahi UI MONO bindings | |
444 | Summary(pl.UTF-8): Wiązania Avahi UI dla MONO | |
445 | Group: X11/Libraries | |
446 | Requires: %{name}-ui = %{version}-%{release} | |
447 | Requires: dotnet-avahi = %{version}-%{release} | |
448 | ||
449 | %description -n dotnet-avahi-ui | |
450 | Avahi UI MONO bindings. | |
451 | ||
452 | %description -n dotnet-avahi-ui -l pl.UTF-8 | |
453 | Wiązania Avahi UI dla MONO. | |
454 | ||
455 | %package -n dotnet-avahi-ui-devel | |
456 | Summary: Development files for MONO Avahi UI bindings | |
457 | Summary(pl.UTF-8): Pliki rozwojowe wiązań Avahi UI dla MONO | |
458 | Group: X11/Development/Libraries | |
459 | Requires: dotnet-avahi-ui = %{version}-%{release} | |
460 | Requires: monodoc | |
461 | ||
462 | %description -n dotnet-avahi-ui-devel | |
463 | Development files for MONO Avahi UI bindings. | |
464 | ||
465 | %description -n dotnet-avahi-ui-devel -l pl.UTF-8 | |
466 | Pliki rozwojowe wiązań Avahi UI dla MONO. | |
467 | ||
468 | %package bookmarks | |
469 | Summary: Miniature web server | |
470 | Summary(pl.UTF-8): Miniaturowy serwer web | |
471 | Group: Applications | |
472 | ||
473 | %description bookmarks | |
474 | A Python based miniature web server that browses for mDNS/DNS-SD | |
475 | services of type '_http._tcp' (i.e. web sites) and makes them | |
476 | available as HTML links on http://localhost:8080/. | |
477 | ||
478 | %description bookmarks -l pl.UTF-8 | |
479 | Napisany w Pythonie miniaturowy serwer WWW, pozwalający na | |
480 | przeglądanie usług typu '_http._tcp' (np. stron WWW) i udostępniający | |
481 | je jako odnośniki HTML na http://localhost:8080/. | |
482 | ||
483 | %package discover | |
484 | Summary: Avahi Zeroconf browser | |
485 | Summary(pl.UTF-8): Przeglądarka Zeroconf Avahi | |
486 | Group: Applications | |
487 | Requires: python-avahi = %{version}-%{release} | |
488 | Requires: python-pygtk-glade >= 2:2.9.6 | |
489 | ||
490 | %description discover | |
491 | A tool for enumerating all available services on the local LAN | |
492 | (python-pygtk implementation). | |
493 | ||
494 | %description discover -l pl.UTF-8 | |
495 | Narzędzie wymieniające wszystkie dostępne usługi w sieci lokalnej LAN | |
496 | (implementacja w python-pygtk). | |
497 | ||
498 | %package discover-standalone | |
499 | Summary: Avahi Zeroconf browser | |
500 | Summary(pl.UTF-8): Przeglądarka Zeroconf Avahi | |
501 | Group: Applications | |
502 | Requires: %{name}-glib = %{version}-%{release} | |
503 | ||
504 | %description discover-standalone | |
505 | GTK+ tool for enumerating all available services on the local LAN. | |
506 | ||
507 | %description discover-standalone -l pl.UTF-8 | |
508 | Narzędzie GTK+ wymieniające wszystkie dostępne usługi w sieci lokalnej | |
509 | LAN. | |
510 | ||
511 | %package utils | |
512 | Summary: Avahi CLI utilities | |
513 | Summary(pl.UTF-8): Narzędzia CLI Avahi | |
514 | Group: Applications | |
515 | ||
516 | %description utils | |
517 | Command line utilities using avahi-client. | |
518 | ||
519 | %description utils -l pl.UTF-8 | |
520 | Narzędzia linii poleceń korzystające z avahi-client. | |
521 | ||
522 | %prep | |
523 | %setup -q | |
524 | %patch0 -p1 | |
525 | %patch1 -p1 | |
526 | %patch2 -p1 | |
527 | %patch3 -p1 | |
528 | ||
529 | %build | |
530 | %{__intltoolize} | |
531 | %{__libtoolize} | |
532 | %{__aclocal} -I common | |
533 | %{__autoconf} | |
534 | %{__autoheader} | |
535 | %{__automake} | |
536 | %configure \ | |
537 | --enable-compat-libdns_sd \ | |
538 | --enable-compat-howl \ | |
539 | --with-distro=none \ | |
540 | %{!?with_qt3:--disable-qt3} \ | |
541 | %{!?with_qt4:--disable-qt4} \ | |
542 | %{!?with_dotnet:--disable-mono} \ | |
543 | %{!?with_dotnet:--disable-monodoc} | |
544 | %{__make} | |
545 | ||
546 | %install | |
547 | rm -rf $RPM_BUILD_ROOT | |
548 | install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d} | |
549 | ||
550 | %{__make} install \ | |
551 | DESTDIR=$RPM_BUILD_ROOT \ | |
552 | pythondir=%{py_sitedir} | |
553 | ||
554 | install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d | |
555 | install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir} | |
556 | ||
557 | ln -sf %{_includedir}/avahi-compat-libdns_sd/dns_sd.h \ | |
558 | $RPM_BUILD_ROOT%{_includedir}/dns_sd.h | |
559 | ||
560 | ln -sf %{_pkgconfigdir}/avahi-compat-howl.pc \ | |
561 | $RPM_BUILD_ROOT%{_pkgconfigdir}/howl.pc | |
562 | ||
563 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/{__init__,SimpleGladeApp}.py \ | |
564 | $RPM_BUILD_ROOT%{py_sitedir}/avahi_discover/*.py | |
565 | ||
566 | rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{avahi-{browse-domains,publish-address,publish-service,resolve-address,resolve-host-name},bvnc}.1 | |
567 | echo '.so avahi-browse.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-browse-domains.1 | |
568 | echo '.so avahi-publish.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-publish-address.1 | |
569 | echo '.so avahi-publish.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-publish-service.1 | |
570 | echo '.so avahi-resolve.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-resolve-address.1 | |
571 | echo '.so avahi-resolve.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-resolve-host-name.1 | |
572 | echo '.so bssh.1' > $RPM_BUILD_ROOT%{_mandir}/man1/bvnc.1 | |
573 | ||
574 | %find_lang %{name} | |
575 | ||
576 | %clean | |
577 | rm -rf $RPM_BUILD_ROOT | |
578 | ||
579 | %pre | |
580 | %groupadd -g 165 -r -f avahi | |
581 | %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi | |
582 | ||
583 | %post | |
584 | /sbin/chkconfig --add %{name}-daemon | |
585 | %service %{name}-daemon restart | |
586 | /sbin/chkconfig --add %{name}-dnsconfd | |
587 | %service %{name}-dnsconfd restart | |
588 | ||
589 | %preun | |
590 | if [ "$1" = "0" ]; then | |
591 | %service -q %{name}-dnsconfd stop | |
592 | /sbin/chkconfig --del %{name}-dnsconfd | |
593 | %service -q %{name}-daemon stop | |
594 | /sbin/chkconfig --del %{name}-daemon | |
595 | fi | |
596 | ||
597 | %postun | |
598 | if [ "$1" = "0" ]; then | |
599 | %userremove avahi | |
600 | %groupremove avahi | |
601 | fi | |
602 | ||
603 | %post libs -p /sbin/ldconfig | |
604 | %postun libs -p /sbin/ldconfig | |
605 | ||
606 | %post ui -p /sbin/ldconfig | |
607 | %postun ui -p /sbin/ldconfig | |
608 | ||
609 | %post compat-libdns_sd -p /sbin/ldconfig | |
610 | %postun compat-libdns_sd -p /sbin/ldconfig | |
611 | ||
612 | %post compat-howl -p /sbin/ldconfig | |
613 | %postun compat-howl -p /sbin/ldconfig | |
614 | ||
615 | %post glib -p /sbin/ldconfig | |
616 | %postun glib -p /sbin/ldconfig | |
617 | ||
618 | %post gobject -p /sbin/ldconfig | |
619 | %postun gobject -p /sbin/ldconfig | |
620 | ||
621 | %post qt -p /sbin/ldconfig | |
622 | %postun qt -p /sbin/ldconfig | |
623 | ||
624 | %post Qt -p /sbin/ldconfig | |
625 | %postun Qt -p /sbin/ldconfig | |
626 | ||
627 | %files | |
628 | %defattr(644,root,root,755) | |
629 | %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO | |
630 | ||
631 | %dir %{_sysconfdir}/avahi | |
632 | %dir %{_sysconfdir}/avahi/services | |
633 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf | |
634 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-dnsconfd.action | |
635 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/hosts | |
636 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service | |
637 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/sftp-ssh.service | |
638 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/* | |
639 | ||
640 | %attr(755,root,root) %{_bindir}/avahi-set-host-name | |
641 | ||
642 | %attr(755,root,root) %{_sbindir}/avahi-daemon | |
643 | %attr(755,root,root) %{_sbindir}/avahi-dnsconfd | |
644 | ||
645 | %dir %{_datadir}/%{name}/introspection | |
646 | %{_datadir}/%{name}/introspection/*.introspect | |
647 | %{_datadir}/%{name}/avahi-service.dtd | |
648 | %{_datadir}/%{name}/service-types | |
649 | %dir %{_libdir}/%{name} | |
650 | %{_libdir}/%{name}/service-types.db | |
651 | ||
652 | %{_mandir}/man1/avahi-set-host-name.1* | |
653 | %{_mandir}/man5/avahi-daemon.conf.5* | |
654 | %{_mandir}/man5/avahi.hosts.5* | |
655 | %{_mandir}/man5/avahi.service.5* | |
656 | %{_mandir}/man8/avahi-daemon.8* | |
657 | %{_mandir}/man8/avahi-dnsconfd.8* | |
658 | %{_mandir}/man8/avahi-dnsconfd.action.8* | |
659 | ||
660 | %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon | |
661 | %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd | |
662 | ||
663 | %attr(755,root,root) %{_sysconfdir}/%{name}/avahi-autoipd.action | |
664 | %attr(755,root,root) %{_sbindir}/avahi-autoipd | |
665 | %{_mandir}/man8/avahi-autoipd.8* | |
666 | %{_mandir}/man8/avahi-autoipd.action.8* | |
667 | ||
668 | %files libs -f %{name}.lang | |
669 | %defattr(644,root,root,755) | |
670 | %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.* | |
671 | %attr(755,root,root) %ghost %{_libdir}/libavahi-client.so.3 | |
672 | %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.* | |
673 | %attr(755,root,root) %ghost %{_libdir}/libavahi-common.so.3 | |
674 | %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.* | |
675 | %attr(755,root,root) %ghost %{_libdir}/libavahi-core.so.6 | |
676 | # common for -discover* | |
677 | %dir %{_datadir}/%{name} | |
678 | %dir %{_datadir}/%{name}/interfaces | |
679 | ||
680 | %files devel | |
681 | %defattr(644,root,root,755) | |
682 | %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC | |
683 | %attr(755,root,root) %{_libdir}/libavahi-client.so | |
684 | %attr(755,root,root) %{_libdir}/libavahi-common.so | |
685 | %attr(755,root,root) %{_libdir}/libavahi-core.so | |
686 | %{_libdir}/libavahi-client.la | |
687 | %{_libdir}/libavahi-common.la | |
688 | %{_libdir}/libavahi-core.la | |
689 | %{_includedir}/avahi-client | |
690 | %{_includedir}/avahi-common | |
691 | %{_includedir}/avahi-core | |
692 | %{_pkgconfigdir}/avahi-client.pc | |
693 | %{_pkgconfigdir}/avahi-core.pc | |
694 | ||
695 | %files static | |
696 | %defattr(644,root,root,755) | |
697 | %{_libdir}/libavahi-client.a | |
698 | %{_libdir}/libavahi-common.a | |
699 | %{_libdir}/libavahi-core.a | |
700 | ||
701 | %files ui | |
702 | %defattr(644,root,root,755) | |
703 | %attr(755,root,root) %{_bindir}/bshell | |
704 | %attr(755,root,root) %{_bindir}/bssh | |
705 | %attr(755,root,root) %{_bindir}/bvnc | |
706 | %attr(755,root,root) %{_libdir}/libavahi-ui.so.*.*.* | |
707 | %attr(755,root,root) %ghost %{_libdir}/libavahi-ui.so.0 | |
708 | %{_mandir}/man1/bssh.1* | |
709 | %{_mandir}/man1/bvnc.1* | |
710 | %{_desktopdir}/bssh.desktop | |
711 | %{_desktopdir}/bvnc.desktop | |
712 | ||
713 | %files ui-devel | |
714 | %defattr(644,root,root,755) | |
715 | %attr(755,root,root) %{_libdir}/libavahi-ui.so | |
716 | %{_libdir}/libavahi-ui.la | |
717 | %{_includedir}/avahi-ui | |
718 | %{_pkgconfigdir}/avahi-ui.pc | |
719 | ||
720 | %files ui-static | |
721 | %defattr(644,root,root,755) | |
722 | %{_libdir}/libavahi-ui.a | |
723 | ||
724 | %files compat-libdns_sd | |
725 | %defattr(644,root,root,755) | |
726 | %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.* | |
727 | %attr(755,root,root) %ghost %{_libdir}/libdns_sd.so.1 | |
728 | ||
729 | %files compat-libdns_sd-devel | |
730 | %defattr(644,root,root,755) | |
731 | %attr(755,root,root) %{_libdir}/libdns_sd.so | |
732 | %{_libdir}/libdns_sd.la | |
733 | %{_includedir}/avahi-compat-libdns_sd | |
734 | %{_includedir}/dns_sd.h | |
735 | %{_pkgconfigdir}/avahi-compat-libdns_sd.pc | |
736 | ||
737 | %files compat-libdns_sd-static | |
738 | %defattr(644,root,root,755) | |
739 | %{_libdir}/libdns_sd.a | |
740 | ||
741 | %files compat-howl | |
742 | %defattr(644,root,root,755) | |
743 | %attr(755,root,root) %{_libdir}/libhowl.so.*.*.* | |
744 | %attr(755,root,root) %ghost %{_libdir}/libhowl.so.0 | |
745 | ||
746 | %files compat-howl-devel | |
747 | %defattr(644,root,root,755) | |
748 | %attr(755,root,root) %{_libdir}/libhowl.so | |
749 | %{_libdir}/libhowl.la | |
750 | %{_includedir}/avahi-compat-howl | |
751 | %{_pkgconfigdir}/avahi-compat-howl.pc | |
752 | %{_pkgconfigdir}/howl.pc | |
753 | ||
754 | %files compat-howl-static | |
755 | %defattr(644,root,root,755) | |
756 | %{_libdir}/libhowl.a | |
757 | ||
758 | %files -n python-avahi | |
759 | %defattr(644,root,root,755) | |
760 | %{py_sitedir}/avahi | |
761 | ||
762 | %if %{with dotnet} | |
763 | %files -n dotnet-avahi | |
764 | %defattr(644,root,root,755) | |
765 | %{_prefix}/lib/mono/gac/avahi-sharp | |
766 | ||
767 | %files -n dotnet-avahi-devel | |
768 | %defattr(644,root,root,755) | |
769 | %{_prefix}/lib/mono/avahi-sharp | |
770 | %{_libdir}/monodoc/sources/avahi-sharp-docs.* | |
771 | %{_pkgconfigdir}/avahi-sharp.pc | |
772 | ||
773 | %files -n dotnet-avahi-ui | |
774 | %defattr(644,root,root,755) | |
775 | %{_prefix}/lib/mono/gac/avahi-ui-sharp | |
776 | ||
777 | %files -n dotnet-avahi-ui-devel | |
778 | %defattr(644,root,root,755) | |
779 | %{_prefix}/lib/mono/avahi-ui-sharp | |
780 | %{_libdir}/monodoc/sources/avahi-ui-sharp-docs.* | |
781 | %{_pkgconfigdir}/avahi-ui-sharp.pc | |
782 | %endif | |
783 | ||
784 | %files glib | |
785 | %defattr(644,root,root,755) | |
786 | %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.* | |
787 | %attr(755,root,root) %ghost %{_libdir}/libavahi-glib.so.1 | |
788 | ||
789 | %files glib-devel | |
790 | %defattr(644,root,root,755) | |
791 | %attr(755,root,root) %{_libdir}/libavahi-glib.so | |
792 | %{_libdir}/libavahi-glib.la | |
793 | %{_includedir}/avahi-glib | |
794 | %{_pkgconfigdir}/avahi-glib.pc | |
795 | ||
796 | %files glib-static | |
797 | %defattr(644,root,root,755) | |
798 | %{_libdir}/libavahi-glib.a | |
799 | ||
800 | %files gobject | |
801 | %defattr(644,root,root,755) | |
802 | %attr(755,root,root) %{_libdir}/libavahi-gobject.so.*.*.* | |
803 | %attr(755,root,root) %ghost %{_libdir}/libavahi-gobject.so.0 | |
804 | ||
805 | %files gobject-devel | |
806 | %defattr(644,root,root,755) | |
807 | %attr(755,root,root) %{_libdir}/libavahi-gobject.so | |
808 | %{_libdir}/libavahi-gobject.la | |
809 | %{_includedir}/avahi-gobject | |
810 | %{_pkgconfigdir}/avahi-gobject.pc | |
811 | ||
812 | %files gobject-static | |
813 | %defattr(644,root,root,755) | |
814 | %{_libdir}/libavahi-gobject.a | |
815 | ||
816 | %if %{with qt3} | |
817 | %files qt | |
818 | %defattr(644,root,root,755) | |
819 | %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.* | |
820 | %attr(755,root,root) %ghost %{_libdir}/libavahi-qt3.so.1 | |
821 | ||
822 | %files qt-devel | |
823 | %defattr(644,root,root,755) | |
824 | %attr(755,root,root) %{_libdir}/libavahi-qt3.so | |
825 | %{_libdir}/libavahi-qt3.la | |
826 | %{_includedir}/avahi-qt3 | |
827 | %{_pkgconfigdir}/avahi-qt3.pc | |
828 | ||
829 | %files qt-static | |
830 | %defattr(644,root,root,755) | |
831 | %{_libdir}/libavahi-qt3.a | |
832 | %endif | |
833 | ||
834 | %if %{with qt4} | |
835 | %files Qt | |
836 | %defattr(644,root,root,755) | |
837 | %attr(755,root,root) %{_libdir}/libavahi-qt4.so.*.*.* | |
838 | %attr(755,root,root) %ghost %{_libdir}/libavahi-qt4.so.1 | |
839 | ||
840 | %files Qt-devel | |
841 | %defattr(644,root,root,755) | |
842 | %attr(755,root,root) %{_libdir}/libavahi-qt4.so | |
843 | %{_libdir}/libavahi-qt4.la | |
844 | %{_includedir}/avahi-qt4 | |
845 | %{_pkgconfigdir}/avahi-qt4.pc | |
846 | ||
847 | %files Qt-static | |
848 | %defattr(644,root,root,755) | |
849 | %{_libdir}/libavahi-qt4.a | |
850 | %endif | |
851 | ||
852 | %files bookmarks | |
853 | %defattr(644,root,root,755) | |
854 | %attr(755,root,root) %{_bindir}/avahi-bookmarks | |
855 | %{_mandir}/man1/avahi-bookmarks.1* | |
856 | ||
857 | %files discover | |
858 | %defattr(644,root,root,755) | |
859 | %attr(755,root,root) %{_bindir}/avahi-discover | |
860 | %{py_sitedir}/avahi_discover | |
861 | %{_datadir}/%{name}/interfaces/avahi-discover.glade | |
862 | %{_desktopdir}/avahi-discover.desktop | |
863 | %{_pixmapsdir}/avahi.png | |
864 | %{_mandir}/man1/avahi-discover.1* | |
865 | ||
866 | %files discover-standalone | |
867 | %defattr(644,root,root,755) | |
868 | %attr(755,root,root) %{_bindir}/avahi-discover-standalone | |
869 | %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade | |
870 | ||
871 | %files utils | |
872 | %defattr(644,root,root,755) | |
873 | %attr(755,root,root) %{_bindir}/avahi-browse | |
874 | %attr(755,root,root) %{_bindir}/avahi-browse-domains | |
875 | %attr(755,root,root) %{_bindir}/avahi-publish | |
876 | %attr(755,root,root) %{_bindir}/avahi-publish-address | |
877 | %attr(755,root,root) %{_bindir}/avahi-publish-service | |
878 | %attr(755,root,root) %{_bindir}/avahi-resolve | |
879 | %attr(755,root,root) %{_bindir}/avahi-resolve-address | |
880 | %attr(755,root,root) %{_bindir}/avahi-resolve-host-name | |
881 | %{_mandir}/man1/avahi-browse.1* | |
882 | %{_mandir}/man1/avahi-browse-domains.1* | |
883 | %{_mandir}/man1/avahi-publish.1* | |
884 | %{_mandir}/man1/avahi-publish-address.1* | |
885 | %{_mandir}/man1/avahi-publish-service.1* | |
886 | %{_mandir}/man1/avahi-resolve.1* | |
887 | %{_mandir}/man1/avahi-resolve-address.1* | |
888 | %{_mandir}/man1/avahi-resolve-host-name.1* |