]> git.pld-linux.org Git - packages/avahi.git/blob - avahi.spec
- dotnet bindings updated, mono autodeps not included (totally broken)
[packages/avahi.git] / avahi.spec
1 #
2 # Conditional build:
3 %bcond_with     dotnet          # build with dotnet bindings
4 #
5 Summary:        Free mDNS/DNS-SD implementation
6 Summary(pl):    Wolna implementacja mDNS/DNS-SD
7 Name:           avahi
8 Version:        0.6.5
9 Release:        1
10 License:        GPL v.2/LGPL
11 Group:          Applications
12 Source0:        http://avahi.org/download/%{name}-%{version}.tar.gz
13 # Source0-md5:  1ecbc3534e3b45cf15269a3f4cfe1dca
14 Source1:        %{name}-daemon
15 Source2:        %{name}-dnsconfd
16 Source3:        %{name}.png
17 Patch0:         %{name}-desktop.patch
18 Patch1:         %{name}-glade.patch
19 URL:            http://avahi.org/
20 BuildRequires:  autoconf
21 BuildRequires:  automake
22 BuildRequires:  dbus-devel >= 0.34
23 BuildRequires:  doxygen
24 BuildRequires:  expat-devel
25 BuildRequires:  gdbm-devel
26 BuildRequires:  glib2-devel >= 1:2.4.0
27 BuildRequires:  graphviz
28 BuildRequires:  gtk+2-devel >= 2:2.4.0
29 BuildRequires:  libdaemon-devel >= 0.5
30 BuildRequires:  libglade2-devel >= 2.4.0
31 BuildRequires:  libtool
32 %if %{with dotnet}
33 BuildRequires:  mono
34 BuildRequires:  monodoc
35 %endif
36 BuildRequires:  python-dbus
37 BuildRequires:  python-pygtk-devel
38 BuildRequires:  qt-devel
39 BuildRequires:  rpmbuild(macros) >= 1.228
40 Requires(post,preun):   /sbin/chkconfig
41 Requires:       dbus >= 0.60-2
42 Requires:       %{name}-libs = %{version}-%{release}
43 Provides:       group(avahi)
44 Provides:       user(avahi)
45 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46
47 %description
48 Avahi is an implementation the DNS Service Discovery and Multicast DNS
49 specifications for Zeroconf Computing. It uses D-BUS for communication
50 between user applications and a system daemon.
51
52 %description -l pl
53 Avahi jest implementacj± specyfikacji DNS Service Discovery i
54 Multicast DNS dla Zeroconf Computing. U¿ywa D-BUSa dla komunikacji
55 pomiêdzy programami u¿ytkownika a demonem systemowym.
56
57 %package libs
58 Summary:        Avahi client, common and core libraries
59 Summary(pl):    Biblioteki Avahi: klienta, wspólna i g³ówna
60 Group:          Libraries
61
62 %description libs
63 Avahi client, common and core libraries.
64
65 %description libs -l pl
66 Biblioteki Avahi: klienta, wspólna i g³ówna.
67
68 %package devel
69 Summary:        Header files for Avahi library
70 Summary(pl):    Pliki nag³ówkowe biblioteki Avahi
71 Group:          Development/Libraries
72 Requires:       %{name}-libs = %{version}-%{release}
73 Requires:       expat-devel
74 Requires:       libdaemon-devel >= 0.5
75
76 %description devel
77 This is the package containing the header files for Avahi library.
78
79 %description devel -l pl
80 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi.
81
82 %package static
83 Summary:        Static Avahi library
84 Summary(pl):    Statyczna biblioteka Avahi
85 Group:          Development/Libraries
86 Requires:       %{name}-devel = %{version}-%{release}
87
88 %description static
89 Static Avahi library.
90
91 %description static -l pl
92 Statyczna biblioteka Avahi.
93
94 %package glib
95 Summary:        Avahi GLib library bindings
96 Summary(pl):    Wi±zania Avahi dla bibioteki GLib
97 Group:          Libraries
98
99 %description glib
100 Avahi GLib library bindings.
101
102 %description glib -l pl
103 Wi±zania Avahi dla bibioteki GLib.
104
105 %package glib-devel
106 Summary:        Header files for Avahi GLib library bindings
107 Summary(pl):    Pliki nag³ówkowe wi±zañ Avahi dla biblioteki GLib
108 Group:          Development/Libraries
109 Requires:       %{name}-devel = %{version}-%{release}
110 Requires:       %{name}-glib = %{version}-%{release}
111 Requires:       glib2-devel >= 1:2.4.0
112
113 %description glib-devel
114 This is the package containing the header files for Avahi-glib
115 library.
116
117 %description glib-devel -l pl
118 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi-glib.
119
120 %package glib-static
121 Summary:        Static Avahi GLib library
122 Summary(pl):    Statyczna biblioteka Avahi GLib
123 Group:          Development/Libraries
124 Requires:       %{name}-glib-devel = %{version}-%{release}
125
126 %description glib-static
127 Static Avahi GLib library.
128
129 %description glib-static -l pl
130 Statyczna biblioteka Avahi GLib.
131
132 %package qt3
133 Summary:        Avahi Qt 3 library bindings
134 Summary(pl):    Wi±zania Avahi dla biblioteki Qt 3
135 Group:          Libraries
136 Requires:       %{name}-libs = %{version}-%{release}
137
138 %description qt3
139 Avahi Qt 3 library bindings.
140
141 %description qt3 -l pl
142 Wi±zania Avahi dla biblioteki Qt 3.
143
144 %package qt3-devel
145 Summary:        Header files for Avahi Qt 3 library bindings
146 Summary(pl):    Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3
147 Group:          Development/Libraries
148 Requires:       %{name}-devel = %{version}-%{release}
149 Requires:       %{name}-qt3 = %{version}-%{release}
150 Requires:       qt-devel
151
152 %description qt3-devel
153 Header files for Avahi Qt 3 library bindings.
154
155 %description qt3-devel -l pl
156 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3.
157
158 %package qt3-static
159 Summary:        Static Avahi Qt 3 library
160 Summary(pl):    Statyczna biblioteka Avahi Qt 3
161 Group:          Development/Libraries
162 Requires:       %{name}-qt3-devel = %{version}-%{release}
163
164 %description qt3-static
165 Static Avahi Qt 3 library.
166
167 %description qt3-static -l pl
168 Statyczna biblioteka Avahi Qt 3.
169
170 %package -n dotnet-avahi
171 Summary:        Avahi MONO bindings
172 Summary(pl):    Wi±zania Avahi dla MONO
173 Group:          Libraries
174
175 %description -n dotnet-avahi
176 Avahi MONO bindings.
177
178 %description -n dotnet-avahi -l pl
179 Wi±zania Avahi dla MONO.
180
181 %package -n dotnet-avahi-devel
182 Summary:        Development files for MONO Avahi bindings
183 Summary(pl):    Pliki rozwojowe wi±zañ Avahi dla MONO
184 Group:          Development/Libraries
185 Requires:       dotnet-avahi = %{version}-%{release}
186 Requires:       monodoc
187
188 %description -n dotnet-avahi-devel
189 Development files for MONO Avahi bindings.
190
191 %description -n dotnet-avahi-devel -l pl
192 Pliki rozwojowe wi±zañ Avahi dla MONO.
193
194 %package bookmarks
195 Summary:        Miniature web server
196 Summary(pl):    Miniaturowy serwer web
197 Group:          Applications
198
199 %description bookmarks
200 A Python based miniature web server that browses for mDNS/DNS-SD
201 services of type '_http._tcp' (i.e. web sites) and makes them
202 available as HTML links on http://localhost:8080.
203
204 %description bookmarks -l pl
205 Napisany w Pythonie miniaturowy serwer web, pozwalaj±cy na
206 przegl±danie us³ug typu '_http._tcp' (np. stron web) i udostêpniaj±cy
207 je jako linki HTML na http://localhost:8080.
208
209 %package discover
210 Summary:        Avahi Zeroconf browser
211 Summary(pl):    Przegl±darka Zeroconf Avahi
212 Group:          Applications
213
214 %description discover
215 A tool for enumerating all available services on the local LAN
216 (python-pygtk implementation).
217
218 %description discover -l pl
219 Narzêdzie wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej LAN
220 (implementacja w python-pygtk).
221
222 %package discover-standalone
223 Summary:        Avahi Zeroconf browser
224 Summary(pl):    Przegl±darka Zeroconf Avahi
225 Group:          Applications
226
227 %description discover-standalone
228 GTK+ tool for enumerating all available services on the local LAN.
229
230 %description discover-standalone -l pl
231 Narzêdzie GTK+ wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej
232 LAN.
233
234 %package utils
235 Summary:        Avahi CLI utilities
236 Summary(pl):    Narzêdzia CLI Avahi
237 Group:          Applications
238
239 %description utils
240 Command line utilities using avahi-client.
241
242 %description utils -l pl
243 Narzêdzia linii poleceñ korzystaj±ce z avahi-client.
244
245 %prep
246 %setup -q
247 %patch0 -p1
248 %patch1 -p1
249
250 %build
251 %{__libtoolize}
252 %{__aclocal} -I common
253 %{__autoconf}
254 %{__autoheader}
255 %{__automake}
256 %configure \
257         --with-distro=none \
258         --disable-qt4 \
259         %{!?with_dotnet:--disable-mono} \
260         %{!?with_dotnet:--disable-monodoc}
261 %{__make}
262
263 %install
264 rm -rf $RPM_BUILD_ROOT
265 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d}
266
267 %{__make} install \
268         DESTDIR=$RPM_BUILD_ROOT \
269         pythondir=%{py_sitedir}
270
271 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
272 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
273
274 rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/{__init__,SimpleGladeApp}.py
275
276 %clean
277 rm -rf $RPM_BUILD_ROOT
278
279 %pre
280 %groupadd -g 165 -r -f avahi
281 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
282
283 %post
284 /sbin/chkconfig --add %{name}-daemon
285 %service %{name}-daemon restart
286 /sbin/chkconfig --add %{name}-dnsconfd
287 %service %{name}-dnsconfd restart
288
289 %preun
290 if [ "$1" = "0" ]; then
291         %service -q %{name}-dnsconfd stop
292         /sbin/chkconfig --del %{name}-dnsconfd
293         %service -q %{name}-daemon stop
294         /sbin/chkconfig --del %{name}-daemon
295 fi
296
297 %postun
298 if [ "$1" = "0" ]; then
299         %userremove avahi
300         %groupremove avahi
301 fi
302
303 %post   libs -p /sbin/ldconfig
304 %postun libs -p /sbin/ldconfig
305
306 %post   glib -p /sbin/ldconfig
307 %postun glib -p /sbin/ldconfig
308
309 %post   qt3 -p /sbin/ldconfig
310 %postun qt3 -p /sbin/ldconfig
311
312 %files
313 %defattr(644,root,root,755)
314 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
315
316 %dir %{_sysconfdir}/avahi
317 %dir %{_sysconfdir}/avahi/services
318 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
319 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-dnsconfd.action
320 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
321 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
322
323 %attr(755,root,root) %{_bindir}/avahi-browse
324 %attr(755,root,root) %{_bindir}/avahi-publish
325 %attr(755,root,root) %{_bindir}/avahi-resolve
326
327 %attr(755,root,root) %{_sbindir}/avahi-daemon
328 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
329
330 %dir %{_datadir}/%{name}
331 %dir
332 %dir %{_datadir}/%{name}/introspection
333 %{_datadir}/%{name}/introspection/*.introspect
334 %{_datadir}/%{name}/avahi-service.dtd
335 %{_datadir}/%{name}/service-types
336 %{_datadir}/%{name}/service-types.db
337
338 %{_mandir}/man*/*
339
340 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
341 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
342
343 %files libs
344 %defattr(644,root,root,755)
345 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
346 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
347 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
348
349 %files devel
350 %defattr(644,root,root,755)
351 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
352 %attr(755,root,root) %{_libdir}/libavahi-client.so
353 %attr(755,root,root) %{_libdir}/libavahi-common.so
354 %attr(755,root,root) %{_libdir}/libavahi-core.so
355 %{_libdir}/libavahi-client.la
356 %{_libdir}/libavahi-common.la
357 %{_libdir}/libavahi-core.la
358 %{_includedir}/avahi-client
359 %{_includedir}/avahi-common
360 %{_includedir}/avahi-core
361 %{_pkgconfigdir}/avahi-client.pc
362 %{_pkgconfigdir}/avahi-core.pc
363
364 %files static
365 %defattr(644,root,root,755)
366 %{_libdir}/libavahi-client.a
367 %{_libdir}/libavahi-common.a
368 %{_libdir}/libavahi-core.a
369
370 %if %{with dotnet}
371 %files -n dotnet-avahi
372 %defattr(644,root,root,755)
373 %{_prefix}/lib/mono/gac/avahi-sharp
374
375 %files -n dotnet-avahi-devel
376 %defattr(644,root,root,755)
377 %{_prefix}/lib/monodoc/sources/avahi-*
378 %{_pkgconfigdir}/*.pc
379 %endif
380
381 %files glib
382 %defattr(644,root,root,755)
383 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
384
385 %files glib-devel
386 %defattr(644,root,root,755)
387 %attr(755,root,root) %{_libdir}/libavahi-glib.so
388 %{_libdir}/libavahi-glib.la
389 %{_includedir}/avahi-glib
390 %{_pkgconfigdir}/avahi-glib.pc
391
392 %files glib-static
393 %defattr(644,root,root,755)
394 %{_libdir}/libavahi-glib.a
395
396 %files qt3
397 %defattr(644,root,root,755)
398 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
399
400 %files qt3-devel
401 %defattr(644,root,root,755)
402 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
403 %{_libdir}/libavahi-qt3.la
404 %{_includedir}/avahi-qt3
405 %{_pkgconfigdir}/avahi-qt3.pc
406
407 %files qt3-static
408 %defattr(644,root,root,755)
409 %{_libdir}/libavahi-qt3.a
410
411 %files bookmarks
412 %defattr(644,root,root,755)
413 %attr(755,root,root) %{_bindir}/avahi-bookmarks
414
415 %files discover
416 %defattr(644,root,root,755)
417 %attr(755,root,root) %{_bindir}/avahi-discover
418 %{_datadir}/%{name}/interfaces/avahi-discover.glade
419 %{py_sitedir}/avahi
420 %{_desktopdir}/*.desktop
421 %{_pixmapsdir}/avahi.png
422
423 %files discover-standalone
424 %defattr(644,root,root,755)
425 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
426 %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade
427
428 %files utils
429 %defattr(644,root,root,755)
430 %attr(755,root,root) %{_bindir}/avahi-browse
431 %attr(755,root,root) %{_bindir}/avahi-publish
432 %attr(755,root,root) %{_bindir}/avahi-resolve
This page took 0.064196 seconds and 4 git commands to generate.