]>
Commit | Line | Data |
---|---|---|
84074ccc | 1 | # |
87585768 AF |
2 | # TODO: |
3 | # - autoip subpackage ? | |
4 | # - autoip start script ? | |
5 | # | |
84074ccc | 6 | # Conditional build: |
0b1041d5 JB |
7 | %bcond_without dotnet # build without dotnet bindings |
8 | %bcond_without qt # build without (any) qt bindings | |
9 | %bcond_without qt3 # build without qt3 bindings | |
10 | %bcond_without qt4 # build without qt4 bindings | |
84074ccc | 11 | # |
cc36e8d9 | 12 | %if !%{with qt} |
0b1041d5 JB |
13 | %undefine with_qt3 |
14 | %undefine with_qt4 | |
15 | %endif | |
22d92961 | 16 | %include /usr/lib/rpm/macros.mono |
17 | # | |
84074ccc | 18 | Summary: Free mDNS/DNS-SD implementation |
bfc0e078 | 19 | Summary(pl.UTF-8): Wolna implementacja mDNS/DNS-SD |
84074ccc | 20 | Name: avahi |
e91ebdcb JB |
21 | Version: 0.6.20 |
22 | Release: 1 | |
23 | License: LGPL v2.1+ | |
84074ccc | 24 | Group: Applications |
021eb35e | 25 | Source0: http://avahi.org/download/%{name}-%{version}.tar.gz |
e91ebdcb | 26 | # Source0-md5: 6acdff79afa2631f765f3bbbc3e25a74 |
385ef799 | 27 | Source1: %{name}-daemon |
28 | Source2: %{name}-dnsconfd | |
76a611b3 | 29 | Source3: %{name}.png |
cf57cb18 | 30 | Patch0: %{name}-desktop.patch |
31 | Patch1: %{name}-glade.patch | |
65db52cd | 32 | Patch2: %{name}-destdir.patch |
84074ccc | 33 | URL: http://avahi.org/ |
34 | BuildRequires: autoconf | |
35 | BuildRequires: automake | |
4da0d8d4 | 36 | BuildRequires: dbus-devel >= 0.92 |
84074ccc | 37 | BuildRequires: doxygen |
38 | BuildRequires: expat-devel | |
39 | BuildRequires: gdbm-devel | |
4da0d8d4 | 40 | BuildRequires: glib2-devel >= 1:2.12.2 |
84074ccc | 41 | BuildRequires: graphviz |
4da0d8d4 | 42 | BuildRequires: gtk+2-devel >= 2:2.10.2 |
df02d559 | 43 | BuildRequires: libcap-devel |
b616b955 | 44 | BuildRequires: libdaemon-devel >= 0.11 |
a702b91a | 45 | BuildRequires: libglade2-devel >= 1:2.6.0 |
84074ccc | 46 | BuildRequires: libtool |
47 | %if %{with dotnet} | |
fcc1bce8 | 48 | BuildRequires: dotnet-gtk-sharp2-devel >= 2.10 |
312e39be | 49 | BuildRequires: mono-csharp |
84074ccc | 50 | BuildRequires: monodoc |
51 | %endif | |
91126bd8 | 52 | BuildRequires: pkgconfig |
5adae992 | 53 | BuildRequires: python >= 1:2.4 |
a702b91a | 54 | BuildRequires: python-dbus >= 0.71 |
4da0d8d4 | 55 | BuildRequires: python-pygtk-devel >= 2:2.9.6 |
0b1041d5 | 56 | %if %{with qt3} |
a546f551 | 57 | BuildRequires: qt-devel >= 1:3.0 |
0b1041d5 JB |
58 | %endif |
59 | %if %{with qt4} | |
60 | BuildRequires: QtCore-devel | |
91bdb504 | 61 | BuildRequires: qt4-build |
528a0e79 | 62 | %endif |
84074ccc | 63 | BuildRequires: rpmbuild(macros) >= 1.228 |
64 | Requires(post,preun): /sbin/chkconfig | |
4da0d8d4 | 65 | Requires: dbus >= 0.92 |
84074ccc | 66 | Requires: %{name}-libs = %{version}-%{release} |
76a611b3 | 67 | Provides: group(avahi) |
5a4d6742 | 68 | Provides: user(avahi) |
84074ccc | 69 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
70 | ||
71 | %description | |
76a611b3 | 72 | Avahi is an implementation the DNS Service Discovery and Multicast DNS |
73 | specifications for Zeroconf Computing. It uses D-BUS for communication | |
74 | between user applications and a system daemon. | |
84074ccc | 75 | |
bdc824d1 JR |
76 | %description -l pl.UTF-8 |
77 | Avahi jest implementacją specyfikacji DNS Service Discovery i | |
78 | Multicast DNS dla Zeroconf Computing. Używa D-BUSa dla komunikacji | |
79 | pomiędzy programami użytkownika a demonem systemowym. | |
84074ccc | 80 | |
81 | %package libs | |
82 | Summary: Avahi client, common and core libraries | |
bfc0e078 | 83 | Summary(pl.UTF-8): Biblioteki Avahi: klienta, wspólna i główna |
84074ccc | 84 | Group: Libraries |
85 | ||
86 | %description libs | |
87 | Avahi client, common and core libraries. | |
88 | ||
bdc824d1 JR |
89 | %description libs -l pl.UTF-8 |
90 | Biblioteki Avahi: klienta, wspólna i główna. | |
84074ccc | 91 | |
92 | %package devel | |
93 | Summary: Header files for Avahi library | |
bfc0e078 | 94 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi |
84074ccc | 95 | Group: Development/Libraries |
96 | Requires: %{name}-libs = %{version}-%{release} | |
4da0d8d4 | 97 | Requires: dbus-devel >= 0.92 |
84074ccc | 98 | Requires: expat-devel |
99 | Requires: libdaemon-devel >= 0.5 | |
100 | ||
101 | %description devel | |
102 | This is the package containing the header files for Avahi library. | |
103 | ||
bdc824d1 JR |
104 | %description devel -l pl.UTF-8 |
105 | Ten pakiet zawiera pliki nagłówkowe biblioteki Avahi. | |
84074ccc | 106 | |
107 | %package static | |
108 | Summary: Static Avahi library | |
bfc0e078 | 109 | Summary(pl.UTF-8): Statyczna biblioteka Avahi |
84074ccc | 110 | Group: Development/Libraries |
111 | Requires: %{name}-devel = %{version}-%{release} | |
112 | ||
113 | %description static | |
114 | Static Avahi library. | |
115 | ||
bdc824d1 | 116 | %description static -l pl.UTF-8 |
84074ccc | 117 | Statyczna biblioteka Avahi. |
118 | ||
fcc1bce8 JB |
119 | %package ui |
120 | Summary: Avahi UI library | |
121 | Summary(pl.UTF-8): Biblioteka Avahi UI | |
122 | Group: X11/Libraries | |
123 | Requires: %{name}-libs = %{version}-%{release} | |
124 | Requires: gtk+2 >= 2:2.10.2 | |
125 | ||
126 | %description ui | |
127 | Common GTK+ UI support library for Avahi. | |
128 | ||
129 | %description ui -l pl.UTF-8 | |
130 | Biblioteka wspólnego interfejsu użytkownika GTK+ dla Avahi. | |
131 | ||
132 | %package ui-devel | |
133 | Summary: Header files for Avahi UI library | |
134 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi UI | |
135 | Group: X11/Development/Libraries | |
136 | Requires: %{name}-devel = %{version}-%{release} | |
137 | Requires: %{name}-ui = %{version}-%{release} | |
138 | Requires: gtk+2-devel >= 2:2.10.2 | |
139 | ||
140 | %description ui-devel | |
141 | Header files for Avahi UI library. | |
142 | ||
143 | %description ui-devel -l pl.UTF-8 | |
144 | Pliki nagłówkowe biblioteki Avahi UI. | |
145 | ||
146 | %package ui-static | |
147 | Summary: Static Avahi UI library | |
148 | Summary(pl.UTF-8): Statyczna biblioteka Avahi UI | |
149 | Group: X11/Development/Libraries | |
150 | Requires: %{name}-ui-devel = %{version}-%{release} | |
151 | ||
152 | %description ui-static | |
153 | Static Avahi UI library. | |
154 | ||
155 | %description ui-static -l pl.UTF-8 | |
156 | Statyczna biblioteka Avahi UI. | |
157 | ||
e5a53780 | 158 | %package compat-libdns_sd |
159 | Summary: Avahi Bonjour compat library | |
bfc0e078 | 160 | Summary(pl.UTF-8): Biblioteka Avahi zgodna z Bonjour |
e5a53780 | 161 | Group: Libraries |
097a1f90 | 162 | Provides: mdns-bonjour |
163 | Obsoletes: mDNSResponder-libs | |
e5a53780 | 164 | |
165 | %description compat-libdns_sd | |
166 | Avahi Bonjour compat library. | |
167 | ||
bdc824d1 | 168 | %description compat-libdns_sd -l pl.UTF-8 |
e5a53780 | 169 | Biblioteka Avahi zgodna z Bonjour. |
170 | ||
171 | %package compat-libdns_sd-devel | |
172 | Summary: Header files for Avahi Bonjour compat library | |
bfc0e078 | 173 | Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Bonjour |
e5a53780 | 174 | Group: Development/Libraries |
18aba392 | 175 | Requires: %{name}-compat-libdns_sd = %{version}-%{release} |
20654292 | 176 | Requires: %{name}-devel = %{version}-%{release} |
097a1f90 | 177 | Provides: mdns-bonjour-devel |
178 | Obsoletes: mDNSResponder-devel | |
e5a53780 | 179 | |
180 | %description compat-libdns_sd-devel | |
181 | Header files for Avahi Bonjour compat library. | |
182 | ||
bdc824d1 JR |
183 | %description compat-libdns_sd-devel -l pl.UTF-8 |
184 | Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Bonjour. | |
e5a53780 | 185 | |
186 | %package compat-libdns_sd-static | |
187 | Summary: Static Avahi Bonjour compat library | |
bfc0e078 | 188 | Summary(pl.UTF-8): Statyczna biblioteka Avahi zgodna z Bonjour |
e5a53780 | 189 | Group: Development/Libraries |
65db52cd | 190 | Requires: %{name}-compat-libdns_sd-devel = %{version}-%{release} |
097a1f90 | 191 | Provides: mdns-bonjour-static |
e5a53780 | 192 | |
193 | %description compat-libdns_sd-static | |
de4c7c2f | 194 | Static Avahi Bonjour compat library. |
e5a53780 | 195 | |
bdc824d1 | 196 | %description compat-libdns_sd-static -l pl.UTF-8 |
de4c7c2f | 197 | Statyczna biblioteka Avahi zgodna z Bonjour. |
e5a53780 | 198 | |
20c3c94e | 199 | %package compat-howl |
200 | Summary: Avahi Howl compat library | |
bfc0e078 | 201 | Summary(pl.UTF-8): Biblioteka Avahi zgodna z Howl |
20c3c94e | 202 | Group: Libraries |
dc5f5072 | 203 | Provides: mdns-howl-libs |
672bcc85 | 204 | Obsoletes: howl-libs |
20c3c94e | 205 | |
206 | %description compat-howl | |
207 | Avahi Howl compat library. | |
208 | ||
bdc824d1 | 209 | %description compat-howl -l pl.UTF-8 |
20c3c94e | 210 | Biblioteka Avahi zgodna z Howl. |
211 | ||
212 | %package compat-howl-devel | |
213 | Summary: Header files for Avahi Howl compat library | |
bfc0e078 | 214 | Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Howl |
20c3c94e | 215 | Group: Development/Libraries |
216 | Requires: %{name}-compat-howl = %{version}-%{release} | |
2e5aa879 | 217 | Requires: %{name}-devel = %{version}-%{release} |
dc5f5072 | 218 | Provides: mdns-howl-devel |
672bcc85 | 219 | Obsoletes: howl-devel |
20c3c94e | 220 | |
221 | %description compat-howl-devel | |
222 | Header files for Avahi Howl compat library. | |
223 | ||
bdc824d1 JR |
224 | %description compat-howl-devel -l pl.UTF-8 |
225 | Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Howl. | |
20c3c94e | 226 | |
227 | %package compat-howl-static | |
228 | Summary: Static Avahi Howl compat library | |
bfc0e078 | 229 | Summary(pl.UTF-8): Statyczna biblioteka Avahi zgodna z Howl |
20c3c94e | 230 | Group: Development/Libraries |
65db52cd | 231 | Requires: %{name}-compat-howl-devel = %{version}-%{release} |
dc5f5072 | 232 | Provides: mdns-howl-static |
672bcc85 | 233 | Obsoletes: howl-static |
20c3c94e | 234 | |
235 | %description compat-howl-static | |
236 | Static Avahi Howl compat library. | |
237 | ||
bdc824d1 | 238 | %description compat-howl-static -l pl.UTF-8 |
20c3c94e | 239 | Statyczna biblioteka Avahi zgodna z Howl. |
240 | ||
84074ccc | 241 | %package glib |
242 | Summary: Avahi GLib library bindings | |
bfc0e078 | 243 | Summary(pl.UTF-8): Wiązania Avahi dla bibioteki GLib |
84074ccc | 244 | Group: Libraries |
245 | ||
246 | %description glib | |
247 | Avahi GLib library bindings. | |
248 | ||
bdc824d1 JR |
249 | %description glib -l pl.UTF-8 |
250 | Wiązania Avahi dla bibioteki GLib. | |
84074ccc | 251 | |
252 | %package glib-devel | |
253 | Summary: Header files for Avahi GLib library bindings | |
bfc0e078 | 254 | Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki GLib |
84074ccc | 255 | Group: Development/Libraries |
a47dabc0 | 256 | Requires: %{name}-devel = %{version}-%{release} |
76a611b3 | 257 | Requires: %{name}-glib = %{version}-%{release} |
4da0d8d4 | 258 | Requires: glib2-devel >= 1:2.12.2 |
84074ccc | 259 | |
260 | %description glib-devel | |
76a611b3 | 261 | This is the package containing the header files for Avahi-glib |
262 | library. | |
84074ccc | 263 | |
bdc824d1 JR |
264 | %description glib-devel -l pl.UTF-8 |
265 | Ten pakiet zawiera pliki nagłówkowe biblioteki Avahi-glib. | |
84074ccc | 266 | |
267 | %package glib-static | |
268 | Summary: Static Avahi GLib library | |
bfc0e078 | 269 | Summary(pl.UTF-8): Statyczna biblioteka Avahi GLib |
84074ccc | 270 | Group: Development/Libraries |
271 | Requires: %{name}-glib-devel = %{version}-%{release} | |
272 | ||
273 | %description glib-static | |
274 | Static Avahi GLib library. | |
275 | ||
bdc824d1 | 276 | %description glib-static -l pl.UTF-8 |
84074ccc | 277 | Statyczna biblioteka Avahi GLib. |
278 | ||
91bdb504 | 279 | %package qt |
84074ccc | 280 | Summary: Avahi Qt 3 library bindings |
bfc0e078 | 281 | Summary(pl.UTF-8): Wiązania Avahi dla biblioteki Qt 3 |
84074ccc | 282 | Group: Libraries |
283 | Requires: %{name}-libs = %{version}-%{release} | |
91bdb504 | 284 | Obsoletes: avahi-qt3 |
84074ccc | 285 | |
91bdb504 | 286 | %description qt |
84074ccc | 287 | Avahi Qt 3 library bindings. |
288 | ||
bdc824d1 JR |
289 | %description qt -l pl.UTF-8 |
290 | Wiązania Avahi dla biblioteki Qt 3. | |
84074ccc | 291 | |
91bdb504 | 292 | %package qt-devel |
84074ccc | 293 | Summary: Header files for Avahi Qt 3 library bindings |
bfc0e078 | 294 | Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 3 |
84074ccc | 295 | Group: Development/Libraries |
a47dabc0 | 296 | Requires: %{name}-devel = %{version}-%{release} |
91bdb504 | 297 | Requires: %{name}-qt = %{version}-%{release} |
a546f551 | 298 | Requires: qt-devel >= 1:3.0 |
91bdb504 | 299 | Obsoletes: avahi-qt3-devel |
84074ccc | 300 | |
91bdb504 | 301 | %description qt-devel |
84074ccc | 302 | Header files for Avahi Qt 3 library bindings. |
303 | ||
bdc824d1 JR |
304 | %description qt-devel -l pl.UTF-8 |
305 | Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 3. | |
84074ccc | 306 | |
91bdb504 | 307 | %package qt-static |
84074ccc | 308 | Summary: Static Avahi Qt 3 library |
bfc0e078 | 309 | Summary(pl.UTF-8): Statyczna biblioteka Avahi Qt 3 |
84074ccc | 310 | Group: Development/Libraries |
1d021e1b | 311 | Requires: %{name}-qt-devel = %{version}-%{release} |
91bdb504 | 312 | Obsoletes: avahi-qt3-static |
84074ccc | 313 | |
91bdb504 | 314 | %description qt-static |
84074ccc | 315 | Static Avahi Qt 3 library. |
316 | ||
bdc824d1 | 317 | %description qt-static -l pl.UTF-8 |
84074ccc | 318 | Statyczna biblioteka Avahi Qt 3. |
319 | ||
91bdb504 PS |
320 | %package Qt |
321 | Summary: Avahi Qt 4 library bindings | |
bfc0e078 | 322 | Summary(pl.UTF-8): Wiązania Avahi dla biblioteki Qt 4 |
91bdb504 PS |
323 | Group: Libraries |
324 | Requires: %{name}-libs = %{version}-%{release} | |
325 | ||
326 | %description Qt | |
327 | Avahi Qt 4 library bindings. | |
328 | ||
bdc824d1 JR |
329 | %description Qt -l pl.UTF-8 |
330 | Wiązania Avahi dla biblioteki Qt 4. | |
91bdb504 PS |
331 | |
332 | %package Qt-devel | |
8aa3f304 | 333 | Summary: Header files for Avahi Qt 4 library bindings |
bfc0e078 | 334 | Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 4 |
91bdb504 PS |
335 | Group: Development/Libraries |
336 | Requires: %{name}-devel = %{version}-%{release} | |
337 | Requires: %{name}-Qt = %{version}-%{release} | |
338 | ||
339 | %description Qt-devel | |
340 | Header files for Avahi Qt 4 library bindings. | |
341 | ||
bdc824d1 JR |
342 | %description Qt-devel -l pl.UTF-8 |
343 | Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 4. | |
91bdb504 PS |
344 | |
345 | %package Qt-static | |
346 | Summary: Static Avahi Qt 4 library | |
bfc0e078 | 347 | Summary(pl.UTF-8): Statyczna biblioteka Avahi Qt 4 |
91bdb504 PS |
348 | Group: Development/Libraries |
349 | Requires: %{name}-Qt-devel = %{version}-%{release} | |
350 | ||
351 | %description Qt-static | |
352 | Static Avahi Qt 4 library. | |
353 | ||
bdc824d1 | 354 | %description Qt-static -l pl.UTF-8 |
91bdb504 PS |
355 | Statyczna biblioteka Avahi Qt 4. |
356 | ||
2fa0b6d5 PZ |
357 | %package -n python-avahi |
358 | Summary: Avahi Python bindings | |
359 | Summary(pl.UTF-8): Wiązania Avahi dla Pythona | |
360 | Group: Development/Languages/Python | |
fcc1bce8 | 361 | Requires: %{name}-libs = %{version}-%{release} |
2fa0b6d5 PZ |
362 | Requires: python-dbus >= 0.71 |
363 | ||
364 | %description -n python-avahi | |
365 | Avahi Python bindings. | |
366 | ||
367 | %description -n python-avahi -l pl.UTF-8 | |
368 | Wiązania Avahi dla Pythona. | |
369 | ||
84074ccc | 370 | %package -n dotnet-avahi |
371 | Summary: Avahi MONO bindings | |
bfc0e078 | 372 | Summary(pl.UTF-8): Wiązania Avahi dla MONO |
84074ccc | 373 | Group: Libraries |
fcc1bce8 | 374 | Requires: %{name}-libs = %{version}-%{release} |
84074ccc | 375 | |
376 | %description -n dotnet-avahi | |
377 | Avahi MONO bindings. | |
378 | ||
bdc824d1 JR |
379 | %description -n dotnet-avahi -l pl.UTF-8 |
380 | Wiązania Avahi dla MONO. | |
84074ccc | 381 | |
382 | %package -n dotnet-avahi-devel | |
383 | Summary: Development files for MONO Avahi bindings | |
bfc0e078 | 384 | Summary(pl.UTF-8): Pliki rozwojowe wiązań Avahi dla MONO |
84074ccc | 385 | Group: Development/Libraries |
76a611b3 | 386 | Requires: dotnet-avahi = %{version}-%{release} |
51f19ad8 | 387 | Requires: monodoc |
84074ccc | 388 | |
389 | %description -n dotnet-avahi-devel | |
390 | Development files for MONO Avahi bindings. | |
391 | ||
bdc824d1 JR |
392 | %description -n dotnet-avahi-devel -l pl.UTF-8 |
393 | Pliki rozwojowe wiązań Avahi dla MONO. | |
84074ccc | 394 | |
fcc1bce8 JB |
395 | %package -n dotnet-avahi-ui |
396 | Summary: Avahi UI MONO bindings | |
397 | Summary(pl.UTF-8): Wiązania Avahi UI dla MONO | |
398 | Group: X11/Libraries | |
399 | Requires: %{name}-ui = %{version}-%{release} | |
400 | Requires: dotnet-avahi = %{version}-%{release} | |
401 | ||
402 | %description -n dotnet-avahi-ui | |
403 | Avahi UI MONO bindings. | |
404 | ||
405 | %description -n dotnet-avahi-ui -l pl.UTF-8 | |
406 | Wiązania Avahi UI dla MONO. | |
407 | ||
408 | %package -n dotnet-avahi-ui-devel | |
409 | Summary: Development files for MONO Avahi UI bindings | |
410 | Summary(pl.UTF-8): Pliki rozwojowe wiązań Avahi UI dla MONO | |
411 | Group: X11/Development/Libraries | |
412 | Requires: dotnet-avahi-ui = %{version}-%{release} | |
413 | Requires: monodoc | |
414 | ||
415 | %description -n dotnet-avahi-ui-devel | |
416 | Development files for MONO Avahi UI bindings. | |
417 | ||
418 | %description -n dotnet-avahi-ui-devel -l pl.UTF-8 | |
419 | Pliki rozwojowe wiązań Avahi UI dla MONO. | |
420 | ||
84074ccc | 421 | %package bookmarks |
422 | Summary: Miniature web server | |
bfc0e078 | 423 | Summary(pl.UTF-8): Miniaturowy serwer web |
76a611b3 | 424 | Group: Applications |
84074ccc | 425 | |
426 | %description bookmarks | |
427 | A Python based miniature web server that browses for mDNS/DNS-SD | |
428 | services of type '_http._tcp' (i.e. web sites) and makes them | |
672bcc85 | 429 | available as HTML links on http://localhost:8080/. |
76a611b3 | 430 | |
bdc824d1 JR |
431 | %description bookmarks -l pl.UTF-8 |
432 | Napisany w Pythonie miniaturowy serwer WWW, pozwalający na | |
433 | przeglądanie usług typu '_http._tcp' (np. stron WWW) i udostępniający | |
434 | je jako odnośniki HTML na http://localhost:8080/. | |
84074ccc | 435 | |
436 | %package discover | |
437 | Summary: Avahi Zeroconf browser | |
bfc0e078 | 438 | Summary(pl.UTF-8): Przeglądarka Zeroconf Avahi |
76a611b3 | 439 | Group: Applications |
61721c26 | 440 | Requires: %{name} = %{version}-%{release} |
2fa0b6d5 | 441 | Requires: python-avahi = %{version}-%{release} |
a702b91a | 442 | Requires: python-pygtk-glade >= 2:2.9.6 |
84074ccc | 443 | |
444 | %description discover | |
76a611b3 | 445 | A tool for enumerating all available services on the local LAN |
446 | (python-pygtk implementation). | |
84074ccc | 447 | |
bdc824d1 JR |
448 | %description discover -l pl.UTF-8 |
449 | Narzędzie wymieniające wszystkie dostępne usługi w sieci lokalnej LAN | |
76a611b3 | 450 | (implementacja w python-pygtk). |
84074ccc | 451 | |
452 | %package discover-standalone | |
453 | Summary: Avahi Zeroconf browser | |
bfc0e078 | 454 | Summary(pl.UTF-8): Przeglądarka Zeroconf Avahi |
76a611b3 | 455 | Group: Applications |
61721c26 | 456 | Requires: %{name} = %{version}-%{release} |
a702b91a | 457 | Requires: python-dbus >= 0.71 |
458 | Requires: python-pygtk-glade >= 2:2.9.6 | |
84074ccc | 459 | |
460 | %description discover-standalone | |
461 | GTK+ tool for enumerating all available services on the local LAN. | |
462 | ||
bdc824d1 JR |
463 | %description discover-standalone -l pl.UTF-8 |
464 | Narzędzie GTK+ wymieniające wszystkie dostępne usługi w sieci lokalnej | |
76a611b3 | 465 | LAN. |
84074ccc | 466 | |
467 | %package utils | |
468 | Summary: Avahi CLI utilities | |
bfc0e078 | 469 | Summary(pl.UTF-8): Narzędzia CLI Avahi |
76a611b3 | 470 | Group: Applications |
84074ccc | 471 | |
472 | %description utils | |
473 | Command line utilities using avahi-client. | |
474 | ||
bdc824d1 JR |
475 | %description utils -l pl.UTF-8 |
476 | Narzędzia linii poleceń korzystające z avahi-client. | |
84074ccc | 477 | |
478 | %prep | |
479 | %setup -q | |
cf57cb18 | 480 | %patch0 -p1 |
481 | %patch1 -p1 | |
65db52cd | 482 | %patch2 -p1 |
84074ccc | 483 | |
484 | %build | |
485 | %{__libtoolize} | |
486 | %{__aclocal} -I common | |
487 | %{__autoconf} | |
488 | %{__autoheader} | |
489 | %{__automake} | |
490 | %configure \ | |
e5a53780 | 491 | --enable-compat-libdns_sd \ |
20c3c94e | 492 | --enable-compat-howl \ |
84074ccc | 493 | --with-distro=none \ |
0b1041d5 JB |
494 | %{!?with_qt3:--disable-qt3} \ |
495 | %{!?with_qt4:--disable-qt4} \ | |
84074ccc | 496 | %{!?with_dotnet:--disable-mono} \ |
497 | %{!?with_dotnet:--disable-monodoc} | |
498 | %{__make} | |
499 | ||
500 | %install | |
501 | rm -rf $RPM_BUILD_ROOT | |
76a611b3 | 502 | install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d} |
84074ccc | 503 | |
504 | %{__make} install \ | |
505 | DESTDIR=$RPM_BUILD_ROOT \ | |
506 | pythondir=%{py_sitedir} | |
385ef799 | 507 | |
508 | install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d | |
76a611b3 | 509 | install %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir} |
385ef799 | 510 | |
c3bb95bb | 511 | ln -sf %{_includedir}/avahi-compat-libdns_sd/dns_sd.h \ |
512 | $RPM_BUILD_ROOT%{_includedir}/dns_sd.h | |
513 | ||
20c3c94e | 514 | ln -sf %{_pkgconfigdir}/avahi-compat-howl.pc \ |
515 | $RPM_BUILD_ROOT%{_pkgconfigdir}/howl.pc | |
516 | ||
cf57cb18 | 517 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/avahi/{__init__,SimpleGladeApp}.py |
84074ccc | 518 | |
5234c9c3 | 519 | rm -f $RPM_BUILD_ROOT%{_mandir}/man1/{avahi-{browse-domains,publish-address,publish-service,resolve-address,resolve-host-name},bvnc}.1 |
4abede57 MB |
520 | echo '.so avahi-browse.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-browse-domains.1 |
521 | echo '.so avahi-publish.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-publish-address.1 | |
522 | echo '.so avahi-publish.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-publish-service.1 | |
523 | echo '.so avahi-resolve.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-resolve-address.1 | |
524 | echo '.so avahi-resolve.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-resolve-host-name.1 | |
5234c9c3 | 525 | echo '.so bssh.1' > $RPM_BUILD_ROOT%{_mandir}/man1/bvnc.1 |
021eb35e | 526 | |
84074ccc | 527 | %clean |
528 | rm -rf $RPM_BUILD_ROOT | |
529 | ||
f97f8264 | 530 | %pre |
611ce39d | 531 | %groupadd -g 165 -r -f avahi |
532 | %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi | |
f97f8264 | 533 | |
84074ccc | 534 | %post |
385ef799 | 535 | /sbin/chkconfig --add %{name}-daemon |
536 | %service %{name}-daemon restart | |
537 | /sbin/chkconfig --add %{name}-dnsconfd | |
538 | %service %{name}-dnsconfd restart | |
84074ccc | 539 | |
540 | %preun | |
541 | if [ "$1" = "0" ]; then | |
385ef799 | 542 | %service -q %{name}-dnsconfd stop |
543 | /sbin/chkconfig --del %{name}-dnsconfd | |
544 | %service -q %{name}-daemon stop | |
545 | /sbin/chkconfig --del %{name}-daemon | |
84074ccc | 546 | fi |
84074ccc | 547 | |
76a611b3 | 548 | %postun |
549 | if [ "$1" = "0" ]; then | |
f97f8264 | 550 | %userremove avahi |
551 | %groupremove avahi | |
552 | fi | |
f97f8264 | 553 | |
84074ccc | 554 | %post libs -p /sbin/ldconfig |
555 | %postun libs -p /sbin/ldconfig | |
556 | ||
fcc1bce8 JB |
557 | %post ui -p /sbin/ldconfig |
558 | %postun ui -p /sbin/ldconfig | |
559 | ||
e5a53780 | 560 | %post compat-libdns_sd -p /sbin/ldconfig |
561 | %postun compat-libdns_sd -p /sbin/ldconfig | |
562 | ||
20c3c94e | 563 | %post compat-howl -p /sbin/ldconfig |
564 | %postun compat-howl -p /sbin/ldconfig | |
565 | ||
84074ccc | 566 | %post glib -p /sbin/ldconfig |
567 | %postun glib -p /sbin/ldconfig | |
568 | ||
91bdb504 PS |
569 | %post qt -p /sbin/ldconfig |
570 | %postun qt -p /sbin/ldconfig | |
571 | ||
572 | %post Qt -p /sbin/ldconfig | |
573 | %postun Qt -p /sbin/ldconfig | |
84074ccc | 574 | |
575 | %files | |
576 | %defattr(644,root,root,755) | |
577 | %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO | |
578 | ||
579 | %dir %{_sysconfdir}/avahi | |
580 | %dir %{_sysconfdir}/avahi/services | |
581 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf | |
582 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-dnsconfd.action | |
56321bc5 | 583 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/hosts |
84074ccc | 584 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service |
87585768 | 585 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/sftp-ssh.service |
84074ccc | 586 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dbus-1/system.d/* |
587 | ||
4da0d8d4 | 588 | %attr(755,root,root) %{_bindir}/avahi-set-host-name |
84074ccc | 589 | |
590 | %attr(755,root,root) %{_sbindir}/avahi-daemon | |
591 | %attr(755,root,root) %{_sbindir}/avahi-dnsconfd | |
592 | ||
593 | %dir %{_datadir}/%{name} | |
84074ccc | 594 | %dir %{_datadir}/%{name}/introspection |
595 | %{_datadir}/%{name}/introspection/*.introspect | |
596 | %{_datadir}/%{name}/avahi-service.dtd | |
597 | %{_datadir}/%{name}/service-types | |
598 | %{_datadir}/%{name}/service-types.db | |
599 | ||
600 | %{_mandir}/man*/* | |
601 | ||
385ef799 | 602 | %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon |
603 | %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd | |
84074ccc | 604 | |
87585768 AF |
605 | %attr(755,root,root) %{_sysconfdir}/%{name}/avahi-autoipd.action |
606 | %attr(755,root,root) %{_sbindir}/avahi-autoipd | |
607 | ||
84074ccc | 608 | %files libs |
609 | %defattr(644,root,root,755) | |
610 | %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.* | |
611 | %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.* | |
612 | %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.* | |
613 | ||
614 | %files devel | |
615 | %defattr(644,root,root,755) | |
616 | %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC | |
617 | %attr(755,root,root) %{_libdir}/libavahi-client.so | |
618 | %attr(755,root,root) %{_libdir}/libavahi-common.so | |
619 | %attr(755,root,root) %{_libdir}/libavahi-core.so | |
620 | %{_libdir}/libavahi-client.la | |
621 | %{_libdir}/libavahi-common.la | |
622 | %{_libdir}/libavahi-core.la | |
623 | %{_includedir}/avahi-client | |
624 | %{_includedir}/avahi-common | |
625 | %{_includedir}/avahi-core | |
626 | %{_pkgconfigdir}/avahi-client.pc | |
627 | %{_pkgconfigdir}/avahi-core.pc | |
628 | ||
629 | %files static | |
630 | %defattr(644,root,root,755) | |
631 | %{_libdir}/libavahi-client.a | |
632 | %{_libdir}/libavahi-common.a | |
633 | %{_libdir}/libavahi-core.a | |
634 | ||
fcc1bce8 JB |
635 | %files ui |
636 | %defattr(644,root,root,755) | |
637 | %attr(755,root,root) %{_bindir}/bssh | |
5acf6365 | 638 | %attr(755,root,root) %{_bindir}/bvnc |
fcc1bce8 | 639 | %attr(755,root,root) %{_libdir}/libavahi-ui.so.*.*.* |
5acf6365 PZ |
640 | %{_desktopdir}/bssh.desktop |
641 | %{_desktopdir}/bvnc.desktop | |
fcc1bce8 JB |
642 | |
643 | %files ui-devel | |
644 | %defattr(644,root,root,755) | |
645 | %attr(755,root,root) %{_libdir}/libavahi-ui.so | |
646 | %{_libdir}/libavahi-ui.la | |
647 | %{_includedir}/avahi-ui | |
648 | %{_pkgconfigdir}/avahi-ui.pc | |
649 | ||
650 | %files ui-static | |
651 | %defattr(644,root,root,755) | |
652 | %{_libdir}/libavahi-ui.a | |
653 | ||
e5a53780 | 654 | %files compat-libdns_sd |
655 | %defattr(644,root,root,755) | |
656 | %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.* | |
657 | ||
658 | %files compat-libdns_sd-devel | |
659 | %defattr(644,root,root,755) | |
660 | %attr(755,root,root) %{_libdir}/libdns_sd.so | |
661 | %{_libdir}/libdns_sd.la | |
662 | %{_includedir}/avahi-compat-libdns_sd | |
c3bb95bb | 663 | %{_includedir}/dns_sd.h |
e5a53780 | 664 | %{_pkgconfigdir}/avahi-compat-libdns_sd.pc |
665 | ||
666 | %files compat-libdns_sd-static | |
667 | %defattr(644,root,root,755) | |
668 | %{_libdir}/libdns_sd.a | |
669 | ||
20c3c94e | 670 | %files compat-howl |
671 | %defattr(644,root,root,755) | |
672 | %attr(755,root,root) %{_libdir}/libhowl.so.*.*.* | |
673 | ||
674 | %files compat-howl-devel | |
675 | %defattr(644,root,root,755) | |
676 | %attr(755,root,root) %{_libdir}/libhowl.so | |
677 | %{_libdir}/libhowl.la | |
678 | %{_includedir}/avahi-compat-howl | |
679 | %{_pkgconfigdir}/avahi-compat-howl.pc | |
680 | %{_pkgconfigdir}/howl.pc | |
681 | ||
682 | %files compat-howl-static | |
683 | %defattr(644,root,root,755) | |
684 | %{_libdir}/libhowl.a | |
685 | ||
2fa0b6d5 PZ |
686 | %files -n python-avahi |
687 | %defattr(644,root,root,755) | |
688 | %{py_sitedir}/avahi | |
689 | ||
51f19ad8 | 690 | %if %{with dotnet} |
691 | %files -n dotnet-avahi | |
692 | %defattr(644,root,root,755) | |
693 | %{_prefix}/lib/mono/gac/avahi-sharp | |
84074ccc | 694 | |
51f19ad8 | 695 | %files -n dotnet-avahi-devel |
696 | %defattr(644,root,root,755) | |
fcc1bce8 | 697 | %{_libdir}/monodoc/sources/avahi-sharp-docs.* |
5bd74609 | 698 | %{_prefix}/lib/mono/avahi-sharp |
48163b45 | 699 | %{_pkgconfigdir}/avahi-sharp.pc |
fcc1bce8 JB |
700 | |
701 | %files -n dotnet-avahi-ui | |
702 | %defattr(644,root,root,755) | |
703 | %{_prefix}/lib/mono/gac/avahi-ui-sharp | |
704 | ||
705 | %files -n dotnet-avahi-ui-devel | |
706 | %defattr(644,root,root,755) | |
707 | %{_libdir}/monodoc/sources/avahi-ui-sharp-docs.* | |
708 | %{_prefix}/lib/mono/avahi-ui-sharp | |
709 | %{_pkgconfigdir}/avahi-ui-sharp.pc | |
51f19ad8 | 710 | %endif |
84074ccc | 711 | |
712 | %files glib | |
713 | %defattr(644,root,root,755) | |
714 | %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.* | |
715 | ||
716 | %files glib-devel | |
717 | %defattr(644,root,root,755) | |
718 | %attr(755,root,root) %{_libdir}/libavahi-glib.so | |
719 | %{_libdir}/libavahi-glib.la | |
720 | %{_includedir}/avahi-glib | |
721 | %{_pkgconfigdir}/avahi-glib.pc | |
722 | ||
723 | %files glib-static | |
724 | %defattr(644,root,root,755) | |
725 | %{_libdir}/libavahi-glib.a | |
726 | ||
0b1041d5 | 727 | %if %{with qt3} |
91bdb504 | 728 | %files qt |
84074ccc | 729 | %defattr(644,root,root,755) |
730 | %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.* | |
731 | ||
91bdb504 | 732 | %files qt-devel |
84074ccc | 733 | %defattr(644,root,root,755) |
734 | %attr(755,root,root) %{_libdir}/libavahi-qt3.so | |
735 | %{_libdir}/libavahi-qt3.la | |
736 | %{_includedir}/avahi-qt3 | |
737 | %{_pkgconfigdir}/avahi-qt3.pc | |
738 | ||
91bdb504 | 739 | %files qt-static |
84074ccc | 740 | %defattr(644,root,root,755) |
741 | %{_libdir}/libavahi-qt3.a | |
0b1041d5 | 742 | %endif |
91bdb504 | 743 | |
0b1041d5 | 744 | %if %{with qt4} |
91bdb504 PS |
745 | %files Qt |
746 | %defattr(644,root,root,755) | |
747 | %attr(755,root,root) %{_libdir}/libavahi-qt4.so.*.*.* | |
748 | ||
749 | %files Qt-devel | |
750 | %defattr(644,root,root,755) | |
751 | %attr(755,root,root) %{_libdir}/libavahi-qt4.so | |
752 | %{_libdir}/libavahi-qt4.la | |
753 | %{_includedir}/avahi-qt4 | |
754 | %{_pkgconfigdir}/avahi-qt4.pc | |
755 | ||
756 | %files Qt-static | |
757 | %defattr(644,root,root,755) | |
758 | %{_libdir}/libavahi-qt4.a | |
528a0e79 | 759 | %endif |
84074ccc | 760 | |
761 | %files bookmarks | |
762 | %defattr(644,root,root,755) | |
763 | %attr(755,root,root) %{_bindir}/avahi-bookmarks | |
764 | ||
765 | %files discover | |
766 | %defattr(644,root,root,755) | |
767 | %attr(755,root,root) %{_bindir}/avahi-discover | |
672bcc85 JB |
768 | # XXX: possibly missing %{_datadir}/%{name} dir, shared subdir |
769 | %dir %{_datadir}/%{name}/interfaces | |
84074ccc | 770 | %{_datadir}/%{name}/interfaces/avahi-discover.glade |
5acf6365 | 771 | %{_desktopdir}/avahi-discover.desktop |
76a611b3 | 772 | %{_pixmapsdir}/avahi.png |
84074ccc | 773 | |
774 | %files discover-standalone | |
775 | %defattr(644,root,root,755) | |
776 | %attr(755,root,root) %{_bindir}/avahi-discover-standalone | |
672bcc85 JB |
777 | # XXX: possibly missing %{_datadir}/%{name} dir, shared subdir |
778 | %dir %{_datadir}/%{name}/interfaces | |
cf57cb18 | 779 | %{_datadir}/%{name}/interfaces/avahi-discover-standalone.glade |
84074ccc | 780 | |
781 | %files utils | |
782 | %defattr(644,root,root,755) | |
783 | %attr(755,root,root) %{_bindir}/avahi-browse | |
784 | %attr(755,root,root) %{_bindir}/avahi-publish | |
785 | %attr(755,root,root) %{_bindir}/avahi-resolve |