]> git.pld-linux.org Git - packages/avahi.git/blob - avahi.spec
- 0.6.5, added glade patch, require dbus >= 0.60-2, small fixes
[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
187 %description -n dotnet-avahi-devel
188 Development files for MONO Avahi bindings.
189
190 %description -n dotnet-avahi-devel -l pl
191 Pliki rozwojowe wi±zañ Avahi dla MONO.
192
193 %package bookmarks
194 Summary:        Miniature web server
195 Summary(pl):    Miniaturowy serwer web
196 Group:          Applications
197
198 %description bookmarks
199 A Python based miniature web server that browses for mDNS/DNS-SD
200 services of type '_http._tcp' (i.e. web sites) and makes them
201 available as HTML links on http://localhost:8080.
202
203 %description bookmarks -l pl
204 Napisany w Pythonie miniaturowy serwer web, pozwalaj±cy na
205 przegl±danie us³ug typu '_http._tcp' (np. stron web) i udostêpniaj±cy
206 je jako linki HTML na http://localhost:8080.
207
208 %package discover
209 Summary:        Avahi Zeroconf browser
210 Summary(pl):    Przegl±darka Zeroconf Avahi
211 Group:          Applications
212
213 %description discover
214 A tool for enumerating all available services on the local LAN
215 (python-pygtk implementation).
216
217 %description discover -l pl
218 Narzêdzie wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej LAN
219 (implementacja w python-pygtk).
220
221 %package discover-standalone
222 Summary:        Avahi Zeroconf browser
223 Summary(pl):    Przegl±darka Zeroconf Avahi
224 Group:          Applications
225
226 %description discover-standalone
227 GTK+ tool for enumerating all available services on the local LAN.
228
229 %description discover-standalone -l pl
230 Narzêdzie GTK+ wymieniaj±ce wszystkie dostêpne us³ugi w sieci lokalnej
231 LAN.
232
233 %package utils
234 Summary:        Avahi CLI utilities
235 Summary(pl):    Narzêdzia CLI Avahi
236 Group:          Applications
237
238 %description utils
239 Command line utilities using avahi-client.
240
241 %description utils -l pl
242 Narzêdzia linii poleceñ korzystaj±ce z avahi-client.
243
244 %prep
245 %setup -q
246 %patch0 -p1
247 %patch1 -p1
248
249 %build
250 %{__libtoolize}
251 %{__aclocal} -I common
252 %{__autoconf}
253 %{__autoheader}
254 %{__automake}
255 %configure \
256         --with-distro=none \
257         --disable-qt4 \
258         %{!?with_dotnet:--disable-mono} \
259         %{!?with_dotnet:--disable-monodoc}
260 %{__make}
261
262 %install
263 rm -rf $RPM_BUILD_ROOT
264 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d}
265
266 %{__make} install \
267         DESTDIR=$RPM_BUILD_ROOT \
268         pythondir=%{py_sitedir}
269
270 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
271 install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir}
272
273 rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/{__init__,SimpleGladeApp}.py
274
275 %clean
276 rm -rf $RPM_BUILD_ROOT
277
278 %pre
279 %groupadd -g 165 -r -f avahi
280 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
281
282 %post
283 /sbin/chkconfig --add %{name}-daemon
284 %service %{name}-daemon restart
285 /sbin/chkconfig --add %{name}-dnsconfd
286 %service %{name}-dnsconfd restart
287
288 %preun
289 if [ "$1" = "0" ]; then
290         %service -q %{name}-dnsconfd stop
291         /sbin/chkconfig --del %{name}-dnsconfd
292         %service -q %{name}-daemon stop
293         /sbin/chkconfig --del %{name}-daemon
294 fi
295
296 %postun
297 if [ "$1" = "0" ]; then
298         %userremove avahi
299         %groupremove avahi
300 fi
301
302 %post   libs -p /sbin/ldconfig
303 %postun libs -p /sbin/ldconfig
304
305 %post   glib -p /sbin/ldconfig
306 %postun glib -p /sbin/ldconfig
307
308 %post   qt3 -p /sbin/ldconfig
309 %postun qt3 -p /sbin/ldconfig
310
311 %files
312 %defattr(644,root,root,755)
313 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
314
315 %dir %{_sysconfdir}/avahi
316 %dir %{_sysconfdir}/avahi/services
317 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
318 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-dnsconfd.action
319 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
320 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
321
322 %attr(755,root,root) %{_bindir}/avahi-browse
323 %attr(755,root,root) %{_bindir}/avahi-publish
324 %attr(755,root,root) %{_bindir}/avahi-resolve
325
326 %attr(755,root,root) %{_sbindir}/avahi-daemon
327 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
328
329 %dir %{_datadir}/%{name}
330 %dir
331 %dir %{_datadir}/%{name}/introspection
332 %{_datadir}/%{name}/introspection/*.introspect
333 %{_datadir}/%{name}/avahi-service.dtd
334 %{_datadir}/%{name}/service-types
335 %{_datadir}/%{name}/service-types.db
336
337 %{_mandir}/man*/*
338
339 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
340 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
341
342 %files libs
343 %defattr(644,root,root,755)
344 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
345 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
346 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
347
348 %files devel
349 %defattr(644,root,root,755)
350 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
351 %attr(755,root,root) %{_libdir}/libavahi-client.so
352 %attr(755,root,root) %{_libdir}/libavahi-common.so
353 %attr(755,root,root) %{_libdir}/libavahi-core.so
354 %{_libdir}/libavahi-client.la
355 %{_libdir}/libavahi-common.la
356 %{_libdir}/libavahi-core.la
357 %{_includedir}/avahi-client
358 %{_includedir}/avahi-common
359 %{_includedir}/avahi-core
360 %{_pkgconfigdir}/avahi-client.pc
361 %{_pkgconfigdir}/avahi-core.pc
362
363 %files static
364 %defattr(644,root,root,755)
365 %{_libdir}/libavahi-client.a
366 %{_libdir}/libavahi-common.a
367 %{_libdir}/libavahi-core.a
368
369 #%files -n dotnet-avahi
370 #%defattr(644,root,root,755)
371
372 #%files -n dotnet-avahi-devel
373 #%defattr(644,root,root,755)
374
375 %files glib
376 %defattr(644,root,root,755)
377 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
378
379 %files glib-devel
380 %defattr(644,root,root,755)
381 %attr(755,root,root) %{_libdir}/libavahi-glib.so
382 %{_libdir}/libavahi-glib.la
383 %{_includedir}/avahi-glib
384 %{_pkgconfigdir}/avahi-glib.pc
385
386 %files glib-static
387 %defattr(644,root,root,755)
388 %{_libdir}/libavahi-glib.a
389
390 %files qt3
391 %defattr(644,root,root,755)
392 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
393
394 %files qt3-devel
395 %defattr(644,root,root,755)
396 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
397 %{_libdir}/libavahi-qt3.la
398 %{_includedir}/avahi-qt3
399 %{_pkgconfigdir}/avahi-qt3.pc
400
401 %files qt3-static
402 %defattr(644,root,root,755)
403 %{_libdir}/libavahi-qt3.a
404
405 %files bookmarks
406 %defattr(644,root,root,755)
407 %attr(755,root,root) %{_bindir}/avahi-bookmarks
408
409 %files discover
410 %defattr(644,root,root,755)
411 %attr(755,root,root) %{_bindir}/avahi-discover
412 %{_datadir}/%{name}/interfaces/avahi-discover.glade
413 %{py_sitedir}/avahi
414 %{_desktopdir}/*.desktop
415 %{_pixmapsdir}/avahi.png
416
417 %files discover-standalone
418 %defattr(644,root,root,755)
419 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
420 %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade
421
422 %files utils
423 %defattr(644,root,root,755)
424 %attr(755,root,root) %{_bindir}/avahi-browse
425 %attr(755,root,root) %{_bindir}/avahi-publish
426 %attr(755,root,root) %{_bindir}/avahi-resolve
This page took 0.063996 seconds and 3 git commands to generate.