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