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