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