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