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