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