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