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