]> git.pld-linux.org Git - packages/avahi.git/blob - avahi.spec
- added init scripts
[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 %post
268 /sbin/chkconfig --add %{name}-daemon
269 %service %{name}-daemon restart
270 /sbin/chkconfig --add %{name}-dnsconfd
271 %service %{name}-dnsconfd restart
272
273 %preun
274 if [ "$1" = "0" ]; then
275         %service -q %{name}-dnsconfd stop
276         /sbin/chkconfig --del %{name}-dnsconfd
277         %service -q %{name}-daemon stop
278         /sbin/chkconfig --del %{name}-daemon
279 fi
280
281 %post   libs -p /sbin/ldconfig
282 %postun libs -p /sbin/ldconfig
283
284 %post   glib -p /sbin/ldconfig
285 %postun glib -p /sbin/ldconfig
286
287 %post   qt3 -p /sbin/ldconfig
288 %postun qt3 -p /sbin/ldconfig
289
290 %files
291 %defattr(644,root,root,755)
292 %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO
293
294 %dir %{_sysconfdir}/avahi
295 %dir %{_sysconfdir}/avahi/services
296 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf
297 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-dnsconfd.action
298 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service
299 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/*
300
301 %attr(755,root,root) %{_bindir}/avahi-browse
302 %attr(755,root,root) %{_bindir}/avahi-publish
303 %attr(755,root,root) %{_bindir}/avahi-resolve
304
305 %attr(755,root,root) %{_sbindir}/avahi-daemon
306 %attr(755,root,root) %{_sbindir}/avahi-dnsconfd
307
308 %dir %{_datadir}/%{name}
309 %dir 
310 %dir %{_datadir}/%{name}/introspection
311 %{_datadir}/%{name}/introspection/*.introspect
312 %{_datadir}/%{name}/avahi-service.dtd
313 %{_datadir}/%{name}/service-types
314 %{_datadir}/%{name}/service-types.db
315
316 %{_mandir}/man*/*
317
318 %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon
319 %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd
320
321 %files libs
322 %defattr(644,root,root,755)
323 %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.*
324 %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.*
325 %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.*
326
327 %files devel
328 %defattr(644,root,root,755)
329 %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC
330 %attr(755,root,root) %{_libdir}/libavahi-client.so
331 %attr(755,root,root) %{_libdir}/libavahi-common.so
332 %attr(755,root,root) %{_libdir}/libavahi-core.so
333 %{_libdir}/libavahi-client.la
334 %{_libdir}/libavahi-common.la
335 %{_libdir}/libavahi-core.la
336 %{_includedir}/avahi-client
337 %{_includedir}/avahi-common
338 %{_includedir}/avahi-core
339 %{_pkgconfigdir}/avahi-client.pc
340 %{_pkgconfigdir}/avahi-core.pc
341
342 %files static
343 %defattr(644,root,root,755)
344 %{_libdir}/libavahi-client.a
345 %{_libdir}/libavahi-common.a
346 %{_libdir}/libavahi-core.a
347
348 #%files -n dotnet-avahi
349 #%defattr(644,root,root,755)
350
351 #%files -n dotnet-avahi-devel
352 #%defattr(644,root,root,755)
353
354 %files glib
355 %defattr(644,root,root,755)
356 %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.*
357
358 %files glib-devel
359 %defattr(644,root,root,755)
360 %attr(755,root,root) %{_libdir}/libavahi-glib.so
361 %{_libdir}/libavahi-glib.la
362 %{_includedir}/avahi-glib
363 %{_pkgconfigdir}/avahi-glib.pc
364
365 %files glib-static
366 %defattr(644,root,root,755)
367 %{_libdir}/libavahi-glib.a
368
369 %files qt3
370 %defattr(644,root,root,755)
371 %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.*
372
373 %files qt3-devel
374 %defattr(644,root,root,755)
375 %attr(755,root,root) %{_libdir}/libavahi-qt3.so
376 %{_libdir}/libavahi-qt3.la
377 %{_includedir}/avahi-qt3
378 %{_pkgconfigdir}/avahi-qt3.pc
379
380 %files qt3-static
381 %defattr(644,root,root,755)
382 %{_libdir}/libavahi-qt3.a
383
384 %files bookmarks
385 %defattr(644,root,root,755)
386 %attr(755,root,root) %{_bindir}/avahi-bookmarks
387
388 %files discover
389 %defattr(644,root,root,755)
390 %attr(755,root,root) %{_bindir}/avahi-discover
391 %{_datadir}/%{name}/interfaces/avahi-discover.glade
392 %{py_sitedir}/avahi
393 %{_desktopdir}/*.desktop
394
395 %files discover-standalone
396 %defattr(644,root,root,755)
397 %attr(755,root,root) %{_bindir}/avahi-discover-standalone
398
399 %files utils
400 %defattr(644,root,root,755)
401 %attr(755,root,root) %{_bindir}/avahi-browse
402 %attr(755,root,root) %{_bindir}/avahi-publish
403 %attr(755,root,root) %{_bindir}/avahi-resolve
This page took 0.07195 seconds and 4 git commands to generate.