]>
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 | 21 | Version: 0.6.20 |
f80c9b61 | 22 | Release: 6 |
e91ebdcb | 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 |
c675dfcc | 47 | BuildRequires: libselinux-devel |
84074ccc | 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 |
c675dfcc | 101 | Requires: libselinux-devel |
84074ccc | 102 | |
103 | %description devel | |
104 | This is the package containing the header files for Avahi library. | |
105 | ||
bdc824d1 JR |
106 | %description devel -l pl.UTF-8 |
107 | Ten pakiet zawiera pliki nagłówkowe biblioteki Avahi. | |
84074ccc | 108 | |
109 | %package static | |
110 | Summary: Static Avahi library | |
bfc0e078 | 111 | Summary(pl.UTF-8): Statyczna biblioteka Avahi |
84074ccc | 112 | Group: Development/Libraries |
113 | Requires: %{name}-devel = %{version}-%{release} | |
114 | ||
115 | %description static | |
116 | Static Avahi library. | |
117 | ||
bdc824d1 | 118 | %description static -l pl.UTF-8 |
84074ccc | 119 | Statyczna biblioteka Avahi. |
120 | ||
fcc1bce8 JB |
121 | %package ui |
122 | Summary: Avahi UI library | |
123 | Summary(pl.UTF-8): Biblioteka Avahi UI | |
124 | Group: X11/Libraries | |
125 | Requires: %{name}-libs = %{version}-%{release} | |
126 | Requires: gtk+2 >= 2:2.10.2 | |
127 | ||
128 | %description ui | |
129 | Common GTK+ UI support library for Avahi. | |
130 | ||
131 | %description ui -l pl.UTF-8 | |
132 | Biblioteka wspólnego interfejsu użytkownika GTK+ dla Avahi. | |
133 | ||
134 | %package ui-devel | |
135 | Summary: Header files for Avahi UI library | |
136 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi UI | |
137 | Group: X11/Development/Libraries | |
138 | Requires: %{name}-devel = %{version}-%{release} | |
139 | Requires: %{name}-ui = %{version}-%{release} | |
140 | Requires: gtk+2-devel >= 2:2.10.2 | |
141 | ||
142 | %description ui-devel | |
143 | Header files for Avahi UI library. | |
144 | ||
145 | %description ui-devel -l pl.UTF-8 | |
146 | Pliki nagłówkowe biblioteki Avahi UI. | |
147 | ||
148 | %package ui-static | |
149 | Summary: Static Avahi UI library | |
150 | Summary(pl.UTF-8): Statyczna biblioteka Avahi UI | |
151 | Group: X11/Development/Libraries | |
152 | Requires: %{name}-ui-devel = %{version}-%{release} | |
153 | ||
154 | %description ui-static | |
155 | Static Avahi UI library. | |
156 | ||
157 | %description ui-static -l pl.UTF-8 | |
158 | Statyczna biblioteka Avahi UI. | |
159 | ||
e5a53780 | 160 | %package compat-libdns_sd |
161 | Summary: Avahi Bonjour compat library | |
bfc0e078 | 162 | Summary(pl.UTF-8): Biblioteka Avahi zgodna z Bonjour |
e5a53780 | 163 | Group: Libraries |
097a1f90 | 164 | Provides: mdns-bonjour |
165 | Obsoletes: mDNSResponder-libs | |
e5a53780 | 166 | |
167 | %description compat-libdns_sd | |
168 | Avahi Bonjour compat library. | |
169 | ||
bdc824d1 | 170 | %description compat-libdns_sd -l pl.UTF-8 |
e5a53780 | 171 | Biblioteka Avahi zgodna z Bonjour. |
172 | ||
173 | %package compat-libdns_sd-devel | |
174 | Summary: Header files for Avahi Bonjour compat library | |
bfc0e078 | 175 | Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Bonjour |
e5a53780 | 176 | Group: Development/Libraries |
18aba392 | 177 | Requires: %{name}-compat-libdns_sd = %{version}-%{release} |
20654292 | 178 | Requires: %{name}-devel = %{version}-%{release} |
097a1f90 | 179 | Provides: mdns-bonjour-devel |
180 | Obsoletes: mDNSResponder-devel | |
e5a53780 | 181 | |
182 | %description compat-libdns_sd-devel | |
183 | Header files for Avahi Bonjour compat library. | |
184 | ||
bdc824d1 JR |
185 | %description compat-libdns_sd-devel -l pl.UTF-8 |
186 | Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Bonjour. | |
e5a53780 | 187 | |
188 | %package compat-libdns_sd-static | |
189 | Summary: Static Avahi Bonjour compat library | |
bfc0e078 | 190 | Summary(pl.UTF-8): Statyczna biblioteka Avahi zgodna z Bonjour |
e5a53780 | 191 | Group: Development/Libraries |
65db52cd | 192 | Requires: %{name}-compat-libdns_sd-devel = %{version}-%{release} |
097a1f90 | 193 | Provides: mdns-bonjour-static |
e5a53780 | 194 | |
195 | %description compat-libdns_sd-static | |
de4c7c2f | 196 | Static Avahi Bonjour compat library. |
e5a53780 | 197 | |
bdc824d1 | 198 | %description compat-libdns_sd-static -l pl.UTF-8 |
de4c7c2f | 199 | Statyczna biblioteka Avahi zgodna z Bonjour. |
e5a53780 | 200 | |
20c3c94e | 201 | %package compat-howl |
202 | Summary: Avahi Howl compat library | |
bfc0e078 | 203 | Summary(pl.UTF-8): Biblioteka Avahi zgodna z Howl |
20c3c94e | 204 | Group: Libraries |
dc5f5072 | 205 | Provides: mdns-howl-libs |
672bcc85 | 206 | Obsoletes: howl-libs |
20c3c94e | 207 | |
208 | %description compat-howl | |
209 | Avahi Howl compat library. | |
210 | ||
bdc824d1 | 211 | %description compat-howl -l pl.UTF-8 |
20c3c94e | 212 | Biblioteka Avahi zgodna z Howl. |
213 | ||
214 | %package compat-howl-devel | |
215 | Summary: Header files for Avahi Howl compat library | |
bfc0e078 | 216 | Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Howl |
20c3c94e | 217 | Group: Development/Libraries |
218 | Requires: %{name}-compat-howl = %{version}-%{release} | |
2e5aa879 | 219 | Requires: %{name}-devel = %{version}-%{release} |
dc5f5072 | 220 | Provides: mdns-howl-devel |
672bcc85 | 221 | Obsoletes: howl-devel |
20c3c94e | 222 | |
223 | %description compat-howl-devel | |
224 | Header files for Avahi Howl compat library. | |
225 | ||
bdc824d1 JR |
226 | %description compat-howl-devel -l pl.UTF-8 |
227 | Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Howl. | |
20c3c94e | 228 | |
229 | %package compat-howl-static | |
230 | Summary: Static Avahi Howl compat library | |
bfc0e078 | 231 | Summary(pl.UTF-8): Statyczna biblioteka Avahi zgodna z Howl |
20c3c94e | 232 | Group: Development/Libraries |
65db52cd | 233 | Requires: %{name}-compat-howl-devel = %{version}-%{release} |
dc5f5072 | 234 | Provides: mdns-howl-static |
672bcc85 | 235 | Obsoletes: howl-static |
20c3c94e | 236 | |
237 | %description compat-howl-static | |
238 | Static Avahi Howl compat library. | |
239 | ||
bdc824d1 | 240 | %description compat-howl-static -l pl.UTF-8 |
20c3c94e | 241 | Statyczna biblioteka Avahi zgodna z Howl. |
242 | ||
84074ccc | 243 | %package glib |
244 | Summary: Avahi GLib library bindings | |
bfc0e078 | 245 | Summary(pl.UTF-8): Wiązania Avahi dla bibioteki GLib |
84074ccc | 246 | Group: Libraries |
247 | ||
248 | %description glib | |
249 | Avahi GLib library bindings. | |
250 | ||
bdc824d1 JR |
251 | %description glib -l pl.UTF-8 |
252 | Wiązania Avahi dla bibioteki GLib. | |
84074ccc | 253 | |
254 | %package glib-devel | |
255 | Summary: Header files for Avahi GLib library bindings | |
bfc0e078 | 256 | Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki GLib |
84074ccc | 257 | Group: Development/Libraries |
a47dabc0 | 258 | Requires: %{name}-devel = %{version}-%{release} |
76a611b3 | 259 | Requires: %{name}-glib = %{version}-%{release} |
4da0d8d4 | 260 | Requires: glib2-devel >= 1:2.12.2 |
84074ccc | 261 | |
262 | %description glib-devel | |
76a611b3 | 263 | This is the package containing the header files for Avahi-glib |
264 | library. | |
84074ccc | 265 | |
bdc824d1 JR |
266 | %description glib-devel -l pl.UTF-8 |
267 | Ten pakiet zawiera pliki nagłówkowe biblioteki Avahi-glib. | |
84074ccc | 268 | |
269 | %package glib-static | |
270 | Summary: Static Avahi GLib library | |
bfc0e078 | 271 | Summary(pl.UTF-8): Statyczna biblioteka Avahi GLib |
84074ccc | 272 | Group: Development/Libraries |
273 | Requires: %{name}-glib-devel = %{version}-%{release} | |
274 | ||
275 | %description glib-static | |
276 | Static Avahi GLib library. | |
277 | ||
bdc824d1 | 278 | %description glib-static -l pl.UTF-8 |
84074ccc | 279 | Statyczna biblioteka Avahi GLib. |
280 | ||
91bdb504 | 281 | %package qt |
84074ccc | 282 | Summary: Avahi Qt 3 library bindings |
bfc0e078 | 283 | Summary(pl.UTF-8): Wiązania Avahi dla biblioteki Qt 3 |
84074ccc | 284 | Group: Libraries |
285 | Requires: %{name}-libs = %{version}-%{release} | |
91bdb504 | 286 | Obsoletes: avahi-qt3 |
84074ccc | 287 | |
91bdb504 | 288 | %description qt |
84074ccc | 289 | Avahi Qt 3 library bindings. |
290 | ||
bdc824d1 JR |
291 | %description qt -l pl.UTF-8 |
292 | Wiązania Avahi dla biblioteki Qt 3. | |
84074ccc | 293 | |
91bdb504 | 294 | %package qt-devel |
84074ccc | 295 | Summary: Header files for Avahi Qt 3 library bindings |
bfc0e078 | 296 | Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 3 |
84074ccc | 297 | Group: Development/Libraries |
a47dabc0 | 298 | Requires: %{name}-devel = %{version}-%{release} |
91bdb504 | 299 | Requires: %{name}-qt = %{version}-%{release} |
a546f551 | 300 | Requires: qt-devel >= 1:3.0 |
91bdb504 | 301 | Obsoletes: avahi-qt3-devel |
84074ccc | 302 | |
91bdb504 | 303 | %description qt-devel |
84074ccc | 304 | Header files for Avahi Qt 3 library bindings. |
305 | ||
bdc824d1 JR |
306 | %description qt-devel -l pl.UTF-8 |
307 | Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 3. | |
84074ccc | 308 | |
91bdb504 | 309 | %package qt-static |
84074ccc | 310 | Summary: Static Avahi Qt 3 library |
bfc0e078 | 311 | Summary(pl.UTF-8): Statyczna biblioteka Avahi Qt 3 |
84074ccc | 312 | Group: Development/Libraries |
1d021e1b | 313 | Requires: %{name}-qt-devel = %{version}-%{release} |
91bdb504 | 314 | Obsoletes: avahi-qt3-static |
84074ccc | 315 | |
91bdb504 | 316 | %description qt-static |
84074ccc | 317 | Static Avahi Qt 3 library. |
318 | ||
bdc824d1 | 319 | %description qt-static -l pl.UTF-8 |
84074ccc | 320 | Statyczna biblioteka Avahi Qt 3. |
321 | ||
91bdb504 PS |
322 | %package Qt |
323 | Summary: Avahi Qt 4 library bindings | |
bfc0e078 | 324 | Summary(pl.UTF-8): Wiązania Avahi dla biblioteki Qt 4 |
91bdb504 PS |
325 | Group: Libraries |
326 | Requires: %{name}-libs = %{version}-%{release} | |
327 | ||
328 | %description Qt | |
329 | Avahi Qt 4 library bindings. | |
330 | ||
bdc824d1 JR |
331 | %description Qt -l pl.UTF-8 |
332 | Wiązania Avahi dla biblioteki Qt 4. | |
91bdb504 PS |
333 | |
334 | %package Qt-devel | |
8aa3f304 | 335 | Summary: Header files for Avahi Qt 4 library bindings |
bfc0e078 | 336 | Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 4 |
91bdb504 PS |
337 | Group: Development/Libraries |
338 | Requires: %{name}-devel = %{version}-%{release} | |
339 | Requires: %{name}-Qt = %{version}-%{release} | |
340 | ||
341 | %description Qt-devel | |
342 | Header files for Avahi Qt 4 library bindings. | |
343 | ||
bdc824d1 JR |
344 | %description Qt-devel -l pl.UTF-8 |
345 | Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 4. | |
91bdb504 PS |
346 | |
347 | %package Qt-static | |
348 | Summary: Static Avahi Qt 4 library | |
bfc0e078 | 349 | Summary(pl.UTF-8): Statyczna biblioteka Avahi Qt 4 |
91bdb504 PS |
350 | Group: Development/Libraries |
351 | Requires: %{name}-Qt-devel = %{version}-%{release} | |
352 | ||
353 | %description Qt-static | |
354 | Static Avahi Qt 4 library. | |
355 | ||
bdc824d1 | 356 | %description Qt-static -l pl.UTF-8 |
91bdb504 PS |
357 | Statyczna biblioteka Avahi Qt 4. |
358 | ||
2fa0b6d5 PZ |
359 | %package -n python-avahi |
360 | Summary: Avahi Python bindings | |
361 | Summary(pl.UTF-8): Wiązania Avahi dla Pythona | |
362 | Group: Development/Languages/Python | |
fcc1bce8 | 363 | Requires: %{name}-libs = %{version}-%{release} |
2fa0b6d5 PZ |
364 | Requires: python-dbus >= 0.71 |
365 | ||
366 | %description -n python-avahi | |
367 | Avahi Python bindings. | |
368 | ||
369 | %description -n python-avahi -l pl.UTF-8 | |
370 | Wiązania Avahi dla Pythona. | |
371 | ||
84074ccc | 372 | %package -n dotnet-avahi |
373 | Summary: Avahi MONO bindings | |
bfc0e078 | 374 | Summary(pl.UTF-8): Wiązania Avahi dla MONO |
84074ccc | 375 | Group: Libraries |
fcc1bce8 | 376 | Requires: %{name}-libs = %{version}-%{release} |
84074ccc | 377 | |
378 | %description -n dotnet-avahi | |
379 | Avahi MONO bindings. | |
380 | ||
bdc824d1 JR |
381 | %description -n dotnet-avahi -l pl.UTF-8 |
382 | Wiązania Avahi dla MONO. | |
84074ccc | 383 | |
384 | %package -n dotnet-avahi-devel | |
385 | Summary: Development files for MONO Avahi bindings | |
bfc0e078 | 386 | Summary(pl.UTF-8): Pliki rozwojowe wiązań Avahi dla MONO |
84074ccc | 387 | Group: Development/Libraries |
76a611b3 | 388 | Requires: dotnet-avahi = %{version}-%{release} |
51f19ad8 | 389 | Requires: monodoc |
84074ccc | 390 | |
391 | %description -n dotnet-avahi-devel | |
392 | Development files for MONO Avahi bindings. | |
393 | ||
bdc824d1 JR |
394 | %description -n dotnet-avahi-devel -l pl.UTF-8 |
395 | Pliki rozwojowe wiązań Avahi dla MONO. | |
84074ccc | 396 | |
fcc1bce8 JB |
397 | %package -n dotnet-avahi-ui |
398 | Summary: Avahi UI MONO bindings | |
399 | Summary(pl.UTF-8): Wiązania Avahi UI dla MONO | |
400 | Group: X11/Libraries | |
401 | Requires: %{name}-ui = %{version}-%{release} | |
402 | Requires: dotnet-avahi = %{version}-%{release} | |
403 | ||
404 | %description -n dotnet-avahi-ui | |
405 | Avahi UI MONO bindings. | |
406 | ||
407 | %description -n dotnet-avahi-ui -l pl.UTF-8 | |
408 | Wiązania Avahi UI dla MONO. | |
409 | ||
410 | %package -n dotnet-avahi-ui-devel | |
411 | Summary: Development files for MONO Avahi UI bindings | |
412 | Summary(pl.UTF-8): Pliki rozwojowe wiązań Avahi UI dla MONO | |
413 | Group: X11/Development/Libraries | |
414 | Requires: dotnet-avahi-ui = %{version}-%{release} | |
415 | Requires: monodoc | |
416 | ||
417 | %description -n dotnet-avahi-ui-devel | |
418 | Development files for MONO Avahi UI bindings. | |
419 | ||
420 | %description -n dotnet-avahi-ui-devel -l pl.UTF-8 | |
421 | Pliki rozwojowe wiązań Avahi UI dla MONO. | |
422 | ||
84074ccc | 423 | %package bookmarks |
424 | Summary: Miniature web server | |
bfc0e078 | 425 | Summary(pl.UTF-8): Miniaturowy serwer web |
76a611b3 | 426 | Group: Applications |
84074ccc | 427 | |
428 | %description bookmarks | |
429 | A Python based miniature web server that browses for mDNS/DNS-SD | |
430 | services of type '_http._tcp' (i.e. web sites) and makes them | |
672bcc85 | 431 | available as HTML links on http://localhost:8080/. |
76a611b3 | 432 | |
bdc824d1 JR |
433 | %description bookmarks -l pl.UTF-8 |
434 | Napisany w Pythonie miniaturowy serwer WWW, pozwalający na | |
435 | przeglądanie usług typu '_http._tcp' (np. stron WWW) i udostępniający | |
436 | je jako odnośniki HTML na http://localhost:8080/. | |
84074ccc | 437 | |
438 | %package discover | |
439 | Summary: Avahi Zeroconf browser | |
bfc0e078 | 440 | Summary(pl.UTF-8): Przeglądarka Zeroconf Avahi |
76a611b3 | 441 | Group: Applications |
61721c26 | 442 | Requires: %{name} = %{version}-%{release} |
2fa0b6d5 | 443 | Requires: python-avahi = %{version}-%{release} |
a702b91a | 444 | Requires: python-pygtk-glade >= 2:2.9.6 |
84074ccc | 445 | |
446 | %description discover | |
76a611b3 | 447 | A tool for enumerating all available services on the local LAN |
448 | (python-pygtk implementation). | |
84074ccc | 449 | |
bdc824d1 JR |
450 | %description discover -l pl.UTF-8 |
451 | Narzędzie wymieniające wszystkie dostępne usługi w sieci lokalnej LAN | |
76a611b3 | 452 | (implementacja w python-pygtk). |
84074ccc | 453 | |
454 | %package discover-standalone | |
455 | Summary: Avahi Zeroconf browser | |
bfc0e078 | 456 | Summary(pl.UTF-8): Przeglądarka Zeroconf Avahi |
76a611b3 | 457 | Group: Applications |
61721c26 | 458 | Requires: %{name} = %{version}-%{release} |
a702b91a | 459 | Requires: python-dbus >= 0.71 |
460 | Requires: python-pygtk-glade >= 2:2.9.6 | |
84074ccc | 461 | |
462 | %description discover-standalone | |
463 | GTK+ tool for enumerating all available services on the local LAN. | |
464 | ||
bdc824d1 JR |
465 | %description discover-standalone -l pl.UTF-8 |
466 | Narzędzie GTK+ wymieniające wszystkie dostępne usługi w sieci lokalnej | |
76a611b3 | 467 | LAN. |
84074ccc | 468 | |
469 | %package utils | |
470 | Summary: Avahi CLI utilities | |
bfc0e078 | 471 | Summary(pl.UTF-8): Narzędzia CLI Avahi |
76a611b3 | 472 | Group: Applications |
84074ccc | 473 | |
474 | %description utils | |
475 | Command line utilities using avahi-client. | |
476 | ||
bdc824d1 JR |
477 | %description utils -l pl.UTF-8 |
478 | Narzędzia linii poleceń korzystające z avahi-client. | |
84074ccc | 479 | |
480 | %prep | |
481 | %setup -q | |
cf57cb18 | 482 | %patch0 -p1 |
483 | %patch1 -p1 | |
65db52cd | 484 | %patch2 -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 |