]> git.pld-linux.org Git - packages/avahi.git/blob - avahi.spec
- provide group/user
[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 Provides:       group(avahi)                                                                    
39 Provides:       user(avahi)
40 Requires:       %{name}-libs = %{version}-%{release}
41 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43 %description
44 Avahi is an implementation the DNS Service Discovery and Multicast
45 DNS specifications for Zeroconf Computing. It uses D-BUS for
46 communication between user applications and a system daemon.
47
48 %description -l pl
49 Avahi jest implementacj± specyfikacji DNS Service Discovery
50 i Multicast DNS dla Zeroconf Computing. U¿ywa D-BUSa dla komunikacji
51 pomiêdzy programami u¿ytkownika a demonem systemowym.
52
53 %package libs
54 Summary:        Avahi client, common and core libraries
55 Summary(pl):    Biblioteki Avahi: klienta, wspólna i g³ówna
56 Group:          Libraries
57
58 %description libs
59 Avahi client, common and core libraries.
60
61 %description libs -l pl
62 Biblioteki Avahi: klienta, wspólna i g³ówna.
63
64 %package devel
65 Summary:        Header files for Avahi library
66 Summary(pl):    Pliki nag³ówkowe biblioteki Avahi
67 Group:          Development/Libraries
68 Requires:       %{name}-libs = %{version}-%{release}
69 Requires:       expat-devel
70 Requires:       libdaemon-devel >= 0.5
71
72 %description devel
73 This is the package containing the header files for Avahi library.
74
75 %description devel -l pl
76 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi.
77
78 %package static
79 Summary:        Static Avahi library
80 Summary(pl):    Statyczna biblioteka Avahi
81 Group:          Development/Libraries
82 Requires:       %{name}-devel = %{version}-%{release}
83
84 %description static
85 Static Avahi library.
86
87 %description static -l pl
88 Statyczna biblioteka Avahi.
89
90 %package glib
91 Summary:        Avahi GLib library bindings
92 Summary(pl):    Wi±zania Avahi dla bibioteki GLib
93 Group:          Libraries
94
95 %description glib
96 Avahi GLib library bindings.
97
98 %description glib -l pl
99 Wi±zania Avahi dla bibioteki GLib.
100
101 %package glib-devel
102 Summary:        Header files for Avahi GLib library bindings
103 Summary(pl):    Pliki nag³ówkowe wi±zañ Avahi dla biblioteki GLib
104 Group:          Development/Libraries
105 Requires:       %{name}-libs = %{version}-%{release}
106 Requires:       glib2-devel >= 1:2.4.0
107
108 %description glib-devel
109 This is the package containing the header files for Avahi-glib library.
110
111 %description glib-devel -l pl
112 Ten pakiet zawiera pliki nag³ówkowe biblioteki Avahi-glib.
113
114 %package glib-static
115 Summary:        Static Avahi GLib library
116 Summary(pl):    Statyczna biblioteka Avahi GLib
117 Group:          Development/Libraries
118 Requires:       %{name}-glib-devel = %{version}-%{release}
119
120 %description glib-static
121 Static Avahi GLib library.
122
123 %description glib-static -l pl
124 Statyczna biblioteka Avahi GLib.
125
126 %package qt3
127 Summary:        Avahi Qt 3 library bindings
128 Summary(pl):    Wi±zania Avahi dla biblioteki Qt 3
129 Group:          Libraries
130 Requires:       %{name}-libs = %{version}-%{release}
131
132 %description qt3
133 Avahi Qt 3 library bindings.
134
135 %description qt3 -l pl
136 Wi±zania Avahi dla biblioteki Qt 3.
137
138 %package qt3-devel
139 Summary:        Header files for Avahi Qt 3 library bindings
140 Summary(pl):    Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3 
141 Group:          Development/Libraries
142 Requires:       %{name}-qt3 = %{version}-%{release}
143 Requires:       qt-devel
144
145 %description qt3-devel
146 Header files for Avahi Qt 3 library bindings.
147
148 %description qt3-devel -l pl
149 Pliki nag³ówkowe wi±zañ Avahi dla biblioteki Qt 3.
150
151 %package qt3-static
152 Summary:        Static Avahi Qt 3 library
153 Summary(pl):    Statyczna biblioteka Avahi Qt 3
154 Group:          Development/Libraries
155 Requires:       %{name}-qt3-devel = %{version}-%{release}
156
157 %description qt3-static
158 Static Avahi Qt 3 library.
159
160 %description qt3-static -l pl
161 Statyczna biblioteka Avahi Qt 3.
162
163 %package -n dotnet-avahi
164 Summary:        Avahi MONO bindings
165 Summary(pl):    Wi±zania Avahi dla MONO
166 Group:          Libraries
167
168 %description -n dotnet-avahi
169 Avahi MONO bindings.
170
171 %description -n dotnet-avahi -l pl
172 Wi±zania Avahi dla MONO.
173
174 %package -n dotnet-avahi-devel
175 Summary:        Development files for MONO Avahi bindings
176 Summary(pl):    Pliki rozwojowe wi±zañ Avahi dla MONO
177 Group:          Development/Libraries
178 Requires:       %{name}-libs = %{version}-%{release}
179
180 %description -n dotnet-avahi-devel
181 Development files for MONO Avahi bindings.
182
183 %description -n dotnet-avahi-devel -l pl
184 Pliki rozwojowe wi±zañ Avahi dla MONO.
185
186 %package bookmarks
187 Summary:        Miniature web server
188 Summary(pl):    Miniaturowy serwer web
189 Group:          Application
190
191 %description bookmarks
192 A Python based miniature web server that browses for mDNS/DNS-SD
193 services of type '_http._tcp' (i.e. web sites) and makes them
194 available as HTML links on http://localhost:8080. 
195     
196 %description bookmarks -l pl
197 Napisany w Pythonie miniaturowy serwer web, pozwalaj±cy nap
198 przegl±danie us³ug typu '_http._tcp' (np. stron web) i
199 udostêpniaj±cy je jako linki HTML na http://localhost:8080.
200
201 %package discover
202 Summary:        Avahi Zeroconf browser
203 Summary(pl):    Przegl±darka Zeroconf Avahi
204 Group:          Application
205
206 %description discover
207 A tool for enumerating all available services on the
208 local LAN (python-pygtk implementation).
209
210 %description discover -l pl
211 Narzêdzie wymieniaj±ce wszystkie dostêpne us³ugi w sieci
212 lokalnej LAN (implementacja w python-pygtk).
213
214 %package discover-standalone
215 Summary:        Avahi Zeroconf browser
216 Summary(pl):    Przegl±darka Zeroconf Avahi
217 Group:          Application
218
219 %description discover-standalone
220 GTK+ tool for enumerating all available services on the local LAN.
221
222 %description discover-standalone -l pl
223 Narzêdzie GTK+ wymieniaj±ce wszystkie dostêpne us³ugi w sieci
224 lokalnej LAN.
225
226 %package utils
227 Summary:        Avahi CLI utilities
228 Summary(pl):    Narzêdzia CLI Avahi
229 Group:          Application
230
231 %description utils
232 Command line utilities using avahi-client.
233
234 %description utils -l pl
235 Narzêdzia linii poleceñ korzystaj±ce z avahi-client.
236
237 %prep
238 %setup -q
239
240 %build
241 %{__libtoolize}
242 %{__aclocal} -I common
243 %{__autoconf}
244 %{__autoheader}
245 %{__automake}
246 %configure \
247         --with-distro=none \
248         --disable-qt4 \
249         %{!?with_dotnet:--disable-mono} \
250         %{!?with_dotnet:--disable-monodoc}
251 %{__make}
252
253 %install
254 rm -rf $RPM_BUILD_ROOT
255 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
256
257 %{__make} install \
258         DESTDIR=$RPM_BUILD_ROOT \
259         pythondir=%{py_sitedir}
260
261 install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
262
263 #rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/*.py
264
265 %clean
266 rm -rf $RPM_BUILD_ROOT
267
268 %pre
269 %groupadd -g 165 -r -f avahi
270 %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
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.062999 seconds and 4 git commands to generate.