]>
Commit | Line | Data |
---|---|---|
0605e631 | 1 | # TODO |
b990428a | 2 | # - finish with_apidocs |
4f99a994 | 3 | # |
84074ccc | 4 | # Conditional build: |
87384157 JB |
5 | %bcond_with apidocs # API documentation |
6 | %bcond_without dotnet # .NET (mono) bindings | |
7 | %bcond_without gtk2 # GTK+ 2 UI (+ bshell and avahi-discover-standalone utilities if no gtk3) | |
8 | %bcond_without gtk3 # GTK+ 3 UI (+ bshell and avahi-discover-standalone utilities) | |
9 | %bcond_without pygobject # PyGObject based avahi-discover utility | |
10 | %bcond_without libevent # libevent main loop integration | |
11 | %bcond_without qt # (any) Qt main loop integration | |
12 | %bcond_without qt3 # Qt 3 main loop integration | |
13 | %bcond_without qt4 # Qt 4 main loop integration | |
14 | %bcond_without qt5 # Qt 5 main loop integration | |
15 | ||
16 | %ifnarch %{ix86} %{x8664} alpha %{arm} hppa ia64 mips ppc s390 s390x sparc sparcv9 | |
b8100891 | 17 | %undefine with_dotnet |
ac2efde5 | 18 | %endif |
19 | %ifarch i386 | |
b8100891 | 20 | %undefine with_dotnet |
ac2efde5 | 21 | %endif |
22 | ||
65bff097 | 23 | %if %{without qt} |
0b1041d5 JB |
24 | %undefine with_qt3 |
25 | %undefine with_qt4 | |
87384157 | 26 | %undefine with_qt5 |
0b1041d5 | 27 | %endif |
65bff097 | 28 | |
130dbb9c AF |
29 | # see http://lists.pld-linux.org/mailman/pipermail/pld-devel-pl/2012-October/155984.html |
30 | %undefine _ssp_cflags | |
31 | ||
b2d6640f JK |
32 | Summary: Free mDNS/DNS-SD/Zeroconf implementation |
33 | Summary(pl.UTF-8): Wolna implementacja mDNS/DNS-SD/Zeroconf | |
84074ccc | 34 | Name: avahi |
87384157 | 35 | Version: 0.8 |
9bb63cda | 36 | Release: 2 |
e91ebdcb | 37 | License: LGPL v2.1+ |
b9952f5b | 38 | Group: Applications/Networking |
c630703e | 39 | #Source0Download: https://github.com/lathiat/avahi/releases |
87384157 JB |
40 | Source0: https://github.com/lathiat/avahi/releases/download/v%{version}/%{name}-%{version}.tar.gz |
41 | # Source0-md5: 229c6aa30674fc43c202b22c5f8c2be7 | |
385ef799 | 42 | Source1: %{name}-daemon |
43 | Source2: %{name}-dnsconfd | |
76a611b3 | 44 | Source3: %{name}.png |
cf57cb18 | 45 | Patch0: %{name}-desktop.patch |
87384157 | 46 | Patch1: %{name}-missing.patch |
65db52cd | 47 | Patch2: %{name}-destdir.patch |
844a35c9 | 48 | Patch3: %{name}-mono-dir.patch |
65bff097 | 49 | Patch4: nss-mdns-package.patch |
6823ab8f JK |
50 | Patch5: %{name}-dhclient_hooks.patch |
51 | Patch6: %{name}-autoipd-sbin_ip.patch | |
87384157 JB |
52 | Patch7: %{name}-man-conditions.patch |
53 | Patch8: %{name}-qt3.patch | |
54 | Patch9: %{name}-libevent.patch | |
55 | Patch10: %{name}-localedir.patch | |
84074ccc | 56 | URL: http://avahi.org/ |
f6770c7e JB |
57 | BuildRequires: autoconf >= 2.63 |
58 | BuildRequires: automake >= 1:1.11 | |
4da0d8d4 | 59 | BuildRequires: dbus-devel >= 0.92 |
4f99a994 | 60 | %if %{with apidocs} |
84074ccc | 61 | BuildRequires: doxygen |
4f99a994 JK |
62 | # for the 'dot' tool used by doxygen |
63 | BuildRequires: graphviz | |
64 | %endif | |
84074ccc | 65 | BuildRequires: expat-devel |
66 | BuildRequires: gdbm-devel | |
87384157 | 67 | BuildRequires: gettext-tools >= 0.19.8 |
b9952f5b | 68 | BuildRequires: glib2-devel >= 1:2.12.2 |
f6770c7e | 69 | BuildRequires: gobject-introspection-devel >= 0.9.5 |
87384157 | 70 | %if %{with gtk2} |
f6770c7e | 71 | BuildRequires: gtk+2-devel >= 2:2.14.0 |
4f99a994 | 72 | %endif |
e3a440ad | 73 | %if %{with gtk3} |
c42a51ef | 74 | BuildRequires: glib2-devel >= 1:2.28.0 |
1ff1727a | 75 | BuildRequires: gtk+3-devel >= 3.0.0 |
e3a440ad | 76 | %endif |
df02d559 | 77 | BuildRequires: libcap-devel |
f6770c7e | 78 | BuildRequires: libdaemon-devel >= 0.14 |
87384157 | 79 | %{?with_libevent:BuildRequires: libevent-devel >= 2.0.21} |
84074ccc | 80 | BuildRequires: libtool |
81 | %if %{with dotnet} | |
fcc1bce8 | 82 | BuildRequires: dotnet-gtk-sharp2-devel >= 2.10 |
312e39be | 83 | BuildRequires: mono-csharp |
e0c273b1 | 84 | BuildRequires: monodoc >= 2.6 |
84074ccc | 85 | %endif |
91126bd8 | 86 | BuildRequires: pkgconfig |
1f7404db | 87 | BuildRequires: python >= 1:2.6 |
a702b91a | 88 | BuildRequires: python-dbus >= 0.71 |
87384157 | 89 | %{?with_pygobject:BuildRequires: python-pygobject3-devel >= 3.0} |
0b1041d5 | 90 | %if %{with qt3} |
a546f551 | 91 | BuildRequires: qt-devel >= 1:3.0 |
0b1041d5 JB |
92 | %endif |
93 | %if %{with qt4} | |
f6770c7e | 94 | BuildRequires: QtCore-devel >= 4.0.0 |
1f7404db | 95 | BuildRequires: qt4-build >= 4.0.0 |
528a0e79 | 96 | %endif |
87384157 JB |
97 | %if %{with qt5} |
98 | BuildRequires: Qt5Core-devel >= 5.0.0 | |
99 | BuildRequires: qt5-build >= 5.0.0 | |
100 | %endif | |
9e3cdda2 | 101 | BuildRequires: rpm-pythonprov |
a0461649 | 102 | BuildRequires: rpmbuild(macros) >= 1.626 |
c84146bc | 103 | BuildRequires: xmltoman |
84074ccc | 104 | Requires(post,preun): /sbin/chkconfig |
6316d682 | 105 | Requires(post,preun,postun): systemd-units >= 38 |
84074ccc | 106 | Requires: %{name}-libs = %{version}-%{release} |
11dac41a | 107 | Requires: dbus >= 0.92 |
f6770c7e | 108 | Requires: libdaemon >= 0.14 |
438dba17 | 109 | Requires: rc-scripts >= 0.4.3 |
6316d682 | 110 | Requires: systemd-units >= 38 |
78a19f26 | 111 | Suggests: nss_mdns >= 0.10-2 |
76a611b3 | 112 | Provides: group(avahi) |
5a4d6742 | 113 | Provides: user(avahi) |
7047114e | 114 | Obsoletes: avahi-systemd |
84074ccc | 115 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
116 | ||
117 | %description | |
76a611b3 | 118 | Avahi is an implementation the DNS Service Discovery and Multicast DNS |
119 | specifications for Zeroconf Computing. It uses D-BUS for communication | |
120 | between user applications and a system daemon. | |
84074ccc | 121 | |
bdc824d1 JR |
122 | %description -l pl.UTF-8 |
123 | Avahi jest implementacją specyfikacji DNS Service Discovery i | |
124 | Multicast DNS dla Zeroconf Computing. Używa D-BUSa dla komunikacji | |
125 | pomiędzy programami użytkownika a demonem systemowym. | |
84074ccc | 126 | |
b2d6640f JK |
127 | %package autoipd |
128 | Summary: IPv4LL network address configuration daemon | |
129 | Summary(pl.UTF-8): Demon configurujący adresy IPv4LL | |
130 | Group: Networking/Daemons | |
45e53a0f ER |
131 | Requires(postun): /usr/sbin/groupdel |
132 | Requires(postun): /usr/sbin/userdel | |
133 | Requires(pre): /bin/id | |
134 | Requires(pre): /usr/bin/getgid | |
135 | Requires(pre): /usr/sbin/groupadd | |
136 | Requires(pre): /usr/sbin/useradd | |
3fe97cfe JK |
137 | Provides: group(avahi) |
138 | Provides: user(avahi) | |
b2d6640f JK |
139 | |
140 | %description autoipd | |
45e53a0f ER |
141 | avahi-autoipd implements IPv4LL, "Dynamic Configuration of IPv4 Link- |
142 | Local Addresses" (IETF RFC3927), a protocol for automatic IP address | |
143 | configuration from the link-local 169.254.0.0/16 range without the | |
144 | need for a central server. It is primarily intended to be used in | |
145 | ad-hoc networks which lack a DHCP server. | |
b2d6640f JK |
146 | |
147 | IPv4LL is part of the Zeroconf stack. | |
148 | ||
149 | %description autoipd -l pl.UTF-8 | |
150 | avahi-autoipd jest implementacją IPv4LL, protokołu umożliwiającego | |
151 | automatyczną konfigurację adresu z zakresu 169.254.0.0/16 bez potrzeby | |
45e53a0f ER |
152 | użycia centralnego serwera. Jego głównym zastosowaniem są sieci |
153 | ad-hoc, w których brakuje serwera DHCP. | |
b2d6640f JK |
154 | |
155 | IPv4LL jest częścią stosu Zeroconf. | |
156 | ||
84074ccc | 157 | %package libs |
158 | Summary: Avahi client, common and core libraries | |
bfc0e078 | 159 | Summary(pl.UTF-8): Biblioteki Avahi: klienta, wspólna i główna |
84074ccc | 160 | Group: Libraries |
161 | ||
162 | %description libs | |
163 | Avahi client, common and core libraries. | |
164 | ||
bdc824d1 JR |
165 | %description libs -l pl.UTF-8 |
166 | Biblioteki Avahi: klienta, wspólna i główna. | |
84074ccc | 167 | |
168 | %package devel | |
169 | Summary: Header files for Avahi library | |
bfc0e078 | 170 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi |
84074ccc | 171 | Group: Development/Libraries |
172 | Requires: %{name}-libs = %{version}-%{release} | |
4da0d8d4 | 173 | Requires: dbus-devel >= 0.92 |
84074ccc | 174 | Requires: expat-devel |
84074ccc | 175 | |
176 | %description devel | |
177 | This is the package containing the header files for Avahi library. | |
178 | ||
bdc824d1 JR |
179 | %description devel -l pl.UTF-8 |
180 | Ten pakiet zawiera pliki nagłówkowe biblioteki Avahi. | |
84074ccc | 181 | |
182 | %package static | |
183 | Summary: Static Avahi library | |
bfc0e078 | 184 | Summary(pl.UTF-8): Statyczna biblioteka Avahi |
84074ccc | 185 | Group: Development/Libraries |
186 | Requires: %{name}-devel = %{version}-%{release} | |
187 | ||
188 | %description static | |
189 | Static Avahi library. | |
190 | ||
bdc824d1 | 191 | %description static -l pl.UTF-8 |
84074ccc | 192 | Statyczna biblioteka Avahi. |
193 | ||
fcc1bce8 JB |
194 | %package ui |
195 | Summary: Avahi UI library | |
196 | Summary(pl.UTF-8): Biblioteka Avahi UI | |
197 | Group: X11/Libraries | |
198 | Requires: %{name}-libs = %{version}-%{release} | |
f6770c7e | 199 | Requires: gtk+2 >= 2:2.14.0 |
fcc1bce8 JB |
200 | |
201 | %description ui | |
202 | Common GTK+ UI support library for Avahi. | |
203 | ||
204 | %description ui -l pl.UTF-8 | |
205 | Biblioteka wspólnego interfejsu użytkownika GTK+ dla Avahi. | |
206 | ||
207 | %package ui-devel | |
208 | Summary: Header files for Avahi UI library | |
209 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi UI | |
210 | Group: X11/Development/Libraries | |
211 | Requires: %{name}-devel = %{version}-%{release} | |
212 | Requires: %{name}-ui = %{version}-%{release} | |
f97a9b3d | 213 | Requires: %{name}-ui-devel-common = %{version}-%{release} |
f6770c7e | 214 | Requires: gtk+2-devel >= 2:2.14.0 |
fcc1bce8 JB |
215 | |
216 | %description ui-devel | |
217 | Header files for Avahi UI library. | |
218 | ||
219 | %description ui-devel -l pl.UTF-8 | |
220 | Pliki nagłówkowe biblioteki Avahi UI. | |
221 | ||
222 | %package ui-static | |
223 | Summary: Static Avahi UI library | |
224 | Summary(pl.UTF-8): Statyczna biblioteka Avahi UI | |
225 | Group: X11/Development/Libraries | |
226 | Requires: %{name}-ui-devel = %{version}-%{release} | |
227 | ||
228 | %description ui-static | |
229 | Static Avahi UI library. | |
230 | ||
231 | %description ui-static -l pl.UTF-8 | |
232 | Statyczna biblioteka Avahi UI. | |
233 | ||
f97a9b3d AF |
234 | %package ui-devel-common |
235 | Summary: Header files for Avahi UI library | |
236 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi UI | |
237 | Group: X11/Development/Libraries | |
238 | Requires: %{name}-devel = %{version}-%{release} | |
239 | ||
240 | %description ui-devel-common | |
241 | Header files for Avahi UI library. | |
242 | ||
243 | %description ui-devel-common -l pl.UTF-8 | |
244 | Pliki nagłówkowe biblioteki Avahi GTK+ UI. | |
245 | ||
246 | %package ui-gtk3 | |
247 | Summary: Avahi UI library - GTK+ 3.x version | |
248 | Summary(pl.UTF-8): Biblioteka Avahi UI - wersja dla GTK+ 3.x | |
249 | Group: X11/Libraries | |
250 | Requires: %{name}-libs = %{version}-%{release} | |
87384157 JB |
251 | Requires: glib2 >= 1:2.28.0 |
252 | Requires: gtk+3 >= 3.0.0 | |
f97a9b3d AF |
253 | |
254 | %description ui-gtk3 | |
255 | Common GTK+ 3.x UI support library for Avahi. | |
256 | ||
257 | %description ui-gtk3 -l pl.UTF-8 | |
258 | Biblioteka wspólnego interfejsu użytkownika GTK+ 3.x dla Avahi. | |
259 | ||
260 | %package ui-gtk3-devel | |
261 | Summary: Header files for Avahi UI library - GTK+ 3.x version | |
262 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Avahi UI - wersja dla GTK+ 3.x | |
263 | Group: X11/Development/Libraries | |
264 | Requires: %{name}-devel = %{version}-%{release} | |
265 | Requires: %{name}-ui-devel-common = %{version}-%{release} | |
266 | Requires: %{name}-ui-gtk3 = %{version}-%{release} | |
87384157 JB |
267 | Requires: glib2-devel >= 1:2.28.0 |
268 | Requires: gtk+3-devel >= 3.0.0 | |
f97a9b3d AF |
269 | |
270 | %description ui-gtk3-devel | |
271 | Header files for Avahi GTK+ 3.x UI library. | |
272 | ||
273 | %description ui-devel -l pl.UTF-8 | |
274 | Pliki nagłówkowe biblioteki Avahi GTK+ 3.x UI. | |
275 | ||
276 | %package ui-gtk3-static | |
277 | Summary: Static Avahi UI library - GTK+ 3.x version | |
278 | Summary(pl.UTF-8): Statyczna biblioteka Avahi UI - wersja GTK+ 3.x | |
279 | Group: X11/Development/Libraries | |
280 | Requires: %{name}-ui-gtk3-devel = %{version}-%{release} | |
281 | ||
282 | %description ui-gtk3-static | |
283 | Static Avahi GTK+ 3.x UI library. | |
284 | ||
285 | %description ui-gtk3-static -l pl.UTF-8 | |
286 | Statyczna biblioteka Avahi GTK+ 3.x UI. | |
287 | ||
e5a53780 | 288 | %package compat-libdns_sd |
289 | Summary: Avahi Bonjour compat library | |
bfc0e078 | 290 | Summary(pl.UTF-8): Biblioteka Avahi zgodna z Bonjour |
e5a53780 | 291 | Group: Libraries |
0466d113 | 292 | Requires: %{name}-libs = %{version}-%{release} |
097a1f90 | 293 | Provides: mdns-bonjour |
294 | Obsoletes: mDNSResponder-libs | |
e5a53780 | 295 | |
296 | %description compat-libdns_sd | |
297 | Avahi Bonjour compat library. | |
298 | ||
bdc824d1 | 299 | %description compat-libdns_sd -l pl.UTF-8 |
e5a53780 | 300 | Biblioteka Avahi zgodna z Bonjour. |
301 | ||
302 | %package compat-libdns_sd-devel | |
303 | Summary: Header files for Avahi Bonjour compat library | |
bfc0e078 | 304 | Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Bonjour |
e5a53780 | 305 | Group: Development/Libraries |
18aba392 | 306 | Requires: %{name}-compat-libdns_sd = %{version}-%{release} |
20654292 | 307 | Requires: %{name}-devel = %{version}-%{release} |
097a1f90 | 308 | Provides: mdns-bonjour-devel |
309 | Obsoletes: mDNSResponder-devel | |
e5a53780 | 310 | |
311 | %description compat-libdns_sd-devel | |
312 | Header files for Avahi Bonjour compat library. | |
313 | ||
bdc824d1 JR |
314 | %description compat-libdns_sd-devel -l pl.UTF-8 |
315 | Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Bonjour. | |
e5a53780 | 316 | |
317 | %package compat-libdns_sd-static | |
318 | Summary: Static Avahi Bonjour compat library | |
bfc0e078 | 319 | Summary(pl.UTF-8): Statyczna biblioteka Avahi zgodna z Bonjour |
e5a53780 | 320 | Group: Development/Libraries |
65db52cd | 321 | Requires: %{name}-compat-libdns_sd-devel = %{version}-%{release} |
097a1f90 | 322 | Provides: mdns-bonjour-static |
e5a53780 | 323 | |
324 | %description compat-libdns_sd-static | |
de4c7c2f | 325 | Static Avahi Bonjour compat library. |
e5a53780 | 326 | |
bdc824d1 | 327 | %description compat-libdns_sd-static -l pl.UTF-8 |
de4c7c2f | 328 | Statyczna biblioteka Avahi zgodna z Bonjour. |
e5a53780 | 329 | |
20c3c94e | 330 | %package compat-howl |
331 | Summary: Avahi Howl compat library | |
bfc0e078 | 332 | Summary(pl.UTF-8): Biblioteka Avahi zgodna z Howl |
20c3c94e | 333 | Group: Libraries |
dc5f5072 | 334 | Provides: mdns-howl-libs |
672bcc85 | 335 | Obsoletes: howl-libs |
20c3c94e | 336 | |
337 | %description compat-howl | |
338 | Avahi Howl compat library. | |
339 | ||
bdc824d1 | 340 | %description compat-howl -l pl.UTF-8 |
20c3c94e | 341 | Biblioteka Avahi zgodna z Howl. |
342 | ||
343 | %package compat-howl-devel | |
344 | Summary: Header files for Avahi Howl compat library | |
bfc0e078 | 345 | Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Howl |
20c3c94e | 346 | Group: Development/Libraries |
347 | Requires: %{name}-compat-howl = %{version}-%{release} | |
2e5aa879 | 348 | Requires: %{name}-devel = %{version}-%{release} |
dc5f5072 | 349 | Provides: mdns-howl-devel |
672bcc85 | 350 | Obsoletes: howl-devel |
20c3c94e | 351 | |
352 | %description compat-howl-devel | |
353 | Header files for Avahi Howl compat library. | |
354 | ||
bdc824d1 JR |
355 | %description compat-howl-devel -l pl.UTF-8 |
356 | Pliki nagłówkowe wiązań Avahi dla biblioteki zgodnej z Howl. | |
20c3c94e | 357 | |
358 | %package compat-howl-static | |
359 | Summary: Static Avahi Howl compat library | |
bfc0e078 | 360 | Summary(pl.UTF-8): Statyczna biblioteka Avahi zgodna z Howl |
20c3c94e | 361 | Group: Development/Libraries |
65db52cd | 362 | Requires: %{name}-compat-howl-devel = %{version}-%{release} |
dc5f5072 | 363 | Provides: mdns-howl-static |
672bcc85 | 364 | Obsoletes: howl-static |
20c3c94e | 365 | |
366 | %description compat-howl-static | |
367 | Static Avahi Howl compat library. | |
368 | ||
bdc824d1 | 369 | %description compat-howl-static -l pl.UTF-8 |
20c3c94e | 370 | Statyczna biblioteka Avahi zgodna z Howl. |
371 | ||
84074ccc | 372 | %package glib |
373 | Summary: Avahi GLib library bindings | |
bfc0e078 | 374 | Summary(pl.UTF-8): Wiązania Avahi dla bibioteki GLib |
84074ccc | 375 | Group: Libraries |
87384157 | 376 | Requires: %{name}-libs = %{version}-%{release} |
b9952f5b | 377 | Requires: glib2 >= 1:2.12.2 |
84074ccc | 378 | |
379 | %description glib | |
380 | Avahi GLib library bindings. | |
381 | ||
bdc824d1 JR |
382 | %description glib -l pl.UTF-8 |
383 | Wiązania Avahi dla bibioteki GLib. | |
84074ccc | 384 | |
385 | %package glib-devel | |
386 | Summary: Header files for Avahi GLib library bindings | |
bfc0e078 | 387 | Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki GLib |
84074ccc | 388 | Group: Development/Libraries |
a47dabc0 | 389 | Requires: %{name}-devel = %{version}-%{release} |
76a611b3 | 390 | Requires: %{name}-glib = %{version}-%{release} |
4da0d8d4 | 391 | Requires: glib2-devel >= 1:2.12.2 |
84074ccc | 392 | |
393 | %description glib-devel | |
76a611b3 | 394 | This is the package containing the header files for Avahi-glib |
395 | library. | |
84074ccc | 396 | |
bdc824d1 JR |
397 | %description glib-devel -l pl.UTF-8 |
398 | Ten pakiet zawiera pliki nagłówkowe biblioteki Avahi-glib. | |
84074ccc | 399 | |
400 | %package glib-static | |
401 | Summary: Static Avahi GLib library | |
bfc0e078 | 402 | Summary(pl.UTF-8): Statyczna biblioteka Avahi GLib |
84074ccc | 403 | Group: Development/Libraries |
404 | Requires: %{name}-glib-devel = %{version}-%{release} | |
405 | ||
406 | %description glib-static | |
407 | Static Avahi GLib library. | |
408 | ||
bdc824d1 | 409 | %description glib-static -l pl.UTF-8 |
84074ccc | 410 | Statyczna biblioteka Avahi GLib. |
411 | ||
844a35c9 JB |
412 | %package gobject |
413 | Summary: Avahi GObject interface | |
414 | Summary(pl.UTF-8): Interfejs GObject do Avahi | |
415 | Group: Libraries | |
87384157 | 416 | Requires: %{name}-glib = %{version}-%{release} |
844a35c9 JB |
417 | |
418 | %description gobject | |
419 | Avahi GObject interface. | |
420 | ||
421 | %description gobject -l pl.UTF-8 | |
422 | Interfejs GObject do Avahi. | |
423 | ||
424 | %package gobject-devel | |
425 | Summary: Header files for Avahi GObject interface | |
426 | Summary(pl.UTF-8): Pliki nagłówkowe interfejsu GObject do Avahi | |
427 | Group: Development/Libraries | |
87384157 | 428 | Requires: %{name}-glib-devel = %{version}-%{release} |
844a35c9 | 429 | Requires: %{name}-gobject = %{version}-%{release} |
844a35c9 JB |
430 | |
431 | %description gobject-devel | |
432 | This is the package containing the header files for Avahi GObject | |
433 | interface. | |
434 | ||
435 | %description gobject-devel -l pl.UTF-8 | |
436 | Ten pakiet zawiera pliki nagłówkowe interfejsu GObject do Avahi. | |
437 | ||
438 | %package gobject-static | |
439 | Summary: Static Avahi GObject library | |
440 | Summary(pl.UTF-8): Statyczna biblioteka Avahi GObject | |
441 | Group: Development/Libraries | |
442 | Requires: %{name}-gobject-devel = %{version}-%{release} | |
443 | ||
444 | %description gobject-static | |
445 | Static Avahi GObject library. | |
446 | ||
447 | %description gobject-static -l pl.UTF-8 | |
448 | Statyczna biblioteka Avahi GObject. | |
449 | ||
87384157 JB |
450 | %package libevent |
451 | Summary: Avahi libevent support library | |
452 | Summary(pl.UTF-8): Wiązania Avahi obsługująca libevent | |
453 | Group: Libraries | |
454 | Requires: %{name}-libs = %{version}-%{release} | |
455 | Requires: libevent >= 2.0.21 | |
456 | ||
457 | %description libevent | |
458 | Avahi libevent support library. | |
459 | ||
460 | %description libevent -l pl.UTF-8 | |
461 | Biblioteka Avahi obsługująca libevent. | |
462 | ||
463 | %package libevent-devel | |
464 | Summary: Header files for Avahi libevent support library | |
465 | Summary(pl.UTF-8): Pliki nagłówkowe Avahi dla biblioteki obsługującej libevent | |
466 | Group: Development/Libraries | |
467 | Requires: %{name}-devel = %{version}-%{release} | |
468 | Requires: %{name}-libevent = %{version}-%{release} | |
469 | Requires: libevent-devel >= 2.0.21 | |
470 | ||
471 | %description libevent-devel | |
472 | This is the package containing the header files for Avahi libevent | |
473 | library. | |
474 | ||
475 | %description libevent-devel -l pl.UTF-8 | |
476 | Ten pakiet zawiera pliki nagłówkowe biblioteki Avahi libevent. | |
477 | ||
478 | %package libevent-static | |
479 | Summary: Static Avahi libevent library | |
480 | Summary(pl.UTF-8): Statyczna biblioteka Avahi libevent | |
481 | Group: Development/Libraries | |
482 | Requires: %{name}-libevent-devel = %{version}-%{release} | |
483 | ||
484 | %description libevent-static | |
485 | Static Avahi libevent library. | |
486 | ||
487 | %description libevent-static -l pl.UTF-8 | |
488 | Statyczna biblioteka Avahi libevent. | |
489 | ||
490 | %package qt3 | |
84074ccc | 491 | Summary: Avahi Qt 3 library bindings |
bfc0e078 | 492 | Summary(pl.UTF-8): Wiązania Avahi dla biblioteki Qt 3 |
84074ccc | 493 | Group: Libraries |
494 | Requires: %{name}-libs = %{version}-%{release} | |
87384157 JB |
495 | Provides: avahi-qt = %{version}-%{release} |
496 | Obsoletes: avahi-qt < 0.8 | |
84074ccc | 497 | |
87384157 | 498 | %description qt3 |
84074ccc | 499 | Avahi Qt 3 library bindings. |
500 | ||
87384157 | 501 | %description qt3 -l pl.UTF-8 |
bdc824d1 | 502 | Wiązania Avahi dla biblioteki Qt 3. |
84074ccc | 503 | |
87384157 | 504 | %package qt3-devel |
84074ccc | 505 | Summary: Header files for Avahi Qt 3 library bindings |
bfc0e078 | 506 | Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 3 |
84074ccc | 507 | Group: Development/Libraries |
a47dabc0 | 508 | Requires: %{name}-devel = %{version}-%{release} |
87384157 | 509 | Requires: %{name}-qt3 = %{version}-%{release} |
9bb63cda | 510 | Requires: qt-devel >= 1:3.0 |
87384157 JB |
511 | Provides: avahi-qt-devel = %{version}-%{release} |
512 | Obsoletes: avahi-qt-devel < 0.8 | |
84074ccc | 513 | |
87384157 | 514 | %description qt3-devel |
84074ccc | 515 | Header files for Avahi Qt 3 library bindings. |
516 | ||
87384157 | 517 | %description qt3-devel -l pl.UTF-8 |
bdc824d1 | 518 | Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 3. |
84074ccc | 519 | |
87384157 | 520 | %package qt3-static |
84074ccc | 521 | Summary: Static Avahi Qt 3 library |
bfc0e078 | 522 | Summary(pl.UTF-8): Statyczna biblioteka Avahi Qt 3 |
84074ccc | 523 | Group: Development/Libraries |
87384157 JB |
524 | Requires: %{name}-qt3-devel = %{version}-%{release} |
525 | Provides: avahi-qt-static = %{version}-%{release} | |
526 | Obsoletes: avahi-qt-static < 0.8 | |
84074ccc | 527 | |
87384157 | 528 | %description qt3-static |
84074ccc | 529 | Static Avahi Qt 3 library. |
530 | ||
87384157 | 531 | %description qt3-static -l pl.UTF-8 |
84074ccc | 532 | Statyczna biblioteka Avahi Qt 3. |
533 | ||
87384157 | 534 | %package qt4 |
91bdb504 | 535 | Summary: Avahi Qt 4 library bindings |
bfc0e078 | 536 | Summary(pl.UTF-8): Wiązania Avahi dla biblioteki Qt 4 |
91bdb504 PS |
537 | Group: Libraries |
538 | Requires: %{name}-libs = %{version}-%{release} | |
87384157 JB |
539 | Provides: avahi-Qt = %{version}-%{release} |
540 | Obsoletes: avahi-Qt < 0.8 | |
91bdb504 | 541 | |
87384157 | 542 | %description qt4 |
91bdb504 PS |
543 | Avahi Qt 4 library bindings. |
544 | ||
87384157 | 545 | %description qt4 -l pl.UTF-8 |
bdc824d1 | 546 | Wiązania Avahi dla biblioteki Qt 4. |
91bdb504 | 547 | |
87384157 | 548 | %package qt4-devel |
8aa3f304 | 549 | Summary: Header files for Avahi Qt 4 library bindings |
bfc0e078 | 550 | Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 4 |
91bdb504 | 551 | Group: Development/Libraries |
87384157 | 552 | Requires: %{name}-qt4 = %{version}-%{release} |
9e3cdda2 | 553 | Requires: %{name}-devel = %{version}-%{release} |
87384157 JB |
554 | Requires: QtCore-devel >= 4.0.0 |
555 | Provides: avahi-Qt-devel = %{version}-%{release} | |
556 | Obsoletes: avahi-Qt-devel < 0.8 | |
91bdb504 | 557 | |
87384157 | 558 | %description qt4-devel |
91bdb504 PS |
559 | Header files for Avahi Qt 4 library bindings. |
560 | ||
87384157 | 561 | %description qt4-devel -l pl.UTF-8 |
bdc824d1 | 562 | Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 4. |
91bdb504 | 563 | |
87384157 | 564 | %package qt4-static |
91bdb504 | 565 | Summary: Static Avahi Qt 4 library |
bfc0e078 | 566 | Summary(pl.UTF-8): Statyczna biblioteka Avahi Qt 4 |
91bdb504 | 567 | Group: Development/Libraries |
87384157 JB |
568 | Requires: %{name}-qt4-devel = %{version}-%{release} |
569 | Provides: avahi-Qt-static = %{version}-%{release} | |
570 | Obsoletes: avahi-Qt-static < 0.8 | |
91bdb504 | 571 | |
87384157 | 572 | %description qt4-static |
91bdb504 PS |
573 | Static Avahi Qt 4 library. |
574 | ||
87384157 | 575 | %description qt4-static -l pl.UTF-8 |
91bdb504 PS |
576 | Statyczna biblioteka Avahi Qt 4. |
577 | ||
87384157 JB |
578 | %package qt5 |
579 | Summary: Avahi Qt 5 library bindings | |
580 | Summary(pl.UTF-8): Wiązania Avahi dla biblioteki Qt 5 | |
581 | Group: Libraries | |
582 | Requires: %{name}-libs = %{version}-%{release} | |
583 | ||
584 | %description qt5 | |
585 | Avahi Qt 5 library bindings. | |
586 | ||
587 | %description qt5 -l pl.UTF-8 | |
588 | Wiązania Avahi dla biblioteki Qt 5. | |
589 | ||
590 | %package qt5-devel | |
591 | Summary: Header files for Avahi Qt 5 library bindings | |
592 | Summary(pl.UTF-8): Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 5 | |
593 | Group: Development/Libraries | |
594 | Requires: %{name}-qt5 = %{version}-%{release} | |
595 | Requires: %{name}-devel = %{version}-%{release} | |
596 | Requires: Qt5Core-devel >= 5.0.0 | |
597 | ||
598 | %description qt5-devel | |
599 | Header files for Avahi Qt 5 library bindings. | |
600 | ||
601 | %description qt5-devel -l pl.UTF-8 | |
602 | Pliki nagłówkowe wiązań Avahi dla biblioteki Qt 5. | |
603 | ||
604 | %package qt5-static | |
605 | Summary: Static Avahi Qt 5 library | |
606 | Summary(pl.UTF-8): Statyczna biblioteka Avahi Qt 5 | |
607 | Group: Development/Libraries | |
608 | Requires: %{name}-qt5-devel = %{version}-%{release} | |
609 | ||
610 | %description qt5-static | |
611 | Static Avahi Qt 5 library. | |
612 | ||
613 | %description qt5-static -l pl.UTF-8 | |
614 | Statyczna biblioteka Avahi Qt 5. | |
615 | ||
2fa0b6d5 PZ |
616 | %package -n python-avahi |
617 | Summary: Avahi Python bindings | |
618 | Summary(pl.UTF-8): Wiązania Avahi dla Pythona | |
619 | Group: Development/Languages/Python | |
fcc1bce8 | 620 | Requires: %{name}-libs = %{version}-%{release} |
2fa0b6d5 PZ |
621 | Requires: python-dbus >= 0.71 |
622 | ||
623 | %description -n python-avahi | |
624 | Avahi Python bindings. | |
625 | ||
626 | %description -n python-avahi -l pl.UTF-8 | |
627 | Wiązania Avahi dla Pythona. | |
628 | ||
84074ccc | 629 | %package -n dotnet-avahi |
630 | Summary: Avahi MONO bindings | |
bfc0e078 | 631 | Summary(pl.UTF-8): Wiązania Avahi dla MONO |
84074ccc | 632 | Group: Libraries |
fcc1bce8 | 633 | Requires: %{name}-libs = %{version}-%{release} |
84074ccc | 634 | |
635 | %description -n dotnet-avahi | |
636 | Avahi MONO bindings. | |
637 | ||
bdc824d1 JR |
638 | %description -n dotnet-avahi -l pl.UTF-8 |
639 | Wiązania Avahi dla MONO. | |
84074ccc | 640 | |
641 | %package -n dotnet-avahi-devel | |
642 | Summary: Development files for MONO Avahi bindings | |
bfc0e078 | 643 | Summary(pl.UTF-8): Pliki rozwojowe wiązań Avahi dla MONO |
84074ccc | 644 | Group: Development/Libraries |
76a611b3 | 645 | Requires: dotnet-avahi = %{version}-%{release} |
e0c273b1 | 646 | Requires: monodoc >= 2.6 |
84074ccc | 647 | |
648 | %description -n dotnet-avahi-devel | |
649 | Development files for MONO Avahi bindings. | |
650 | ||
bdc824d1 JR |
651 | %description -n dotnet-avahi-devel -l pl.UTF-8 |
652 | Pliki rozwojowe wiązań Avahi dla MONO. | |
84074ccc | 653 | |
fcc1bce8 JB |
654 | %package -n dotnet-avahi-ui |
655 | Summary: Avahi UI MONO bindings | |
656 | Summary(pl.UTF-8): Wiązania Avahi UI dla MONO | |
657 | Group: X11/Libraries | |
658 | Requires: %{name}-ui = %{version}-%{release} | |
659 | Requires: dotnet-avahi = %{version}-%{release} | |
660 | ||
661 | %description -n dotnet-avahi-ui | |
662 | Avahi UI MONO bindings. | |
663 | ||
664 | %description -n dotnet-avahi-ui -l pl.UTF-8 | |
665 | Wiązania Avahi UI dla MONO. | |
666 | ||
667 | %package -n dotnet-avahi-ui-devel | |
668 | Summary: Development files for MONO Avahi UI bindings | |
669 | Summary(pl.UTF-8): Pliki rozwojowe wiązań Avahi UI dla MONO | |
670 | Group: X11/Development/Libraries | |
671 | Requires: dotnet-avahi-ui = %{version}-%{release} | |
e0c273b1 | 672 | Requires: monodoc >= 2.6 |
fcc1bce8 JB |
673 | |
674 | %description -n dotnet-avahi-ui-devel | |
675 | Development files for MONO Avahi UI bindings. | |
676 | ||
677 | %description -n dotnet-avahi-ui-devel -l pl.UTF-8 | |
678 | Pliki rozwojowe wiązań Avahi UI dla MONO. | |
679 | ||
84074ccc | 680 | %package bookmarks |
681 | Summary: Miniature web server | |
87265823 | 682 | Summary(pl.UTF-8): Miniaturowy serwer WWW |
87384157 | 683 | Group: Applications/Networking |
84074ccc | 684 | |
685 | %description bookmarks | |
686 | A Python based miniature web server that browses for mDNS/DNS-SD | |
687 | services of type '_http._tcp' (i.e. web sites) and makes them | |
672bcc85 | 688 | available as HTML links on http://localhost:8080/. |
76a611b3 | 689 | |
bdc824d1 JR |
690 | %description bookmarks -l pl.UTF-8 |
691 | Napisany w Pythonie miniaturowy serwer WWW, pozwalający na | |
692 | przeglądanie usług typu '_http._tcp' (np. stron WWW) i udostępniający | |
693 | je jako odnośniki HTML na http://localhost:8080/. | |
84074ccc | 694 | |
695 | %package discover | |
696 | Summary: Avahi Zeroconf browser | |
bfc0e078 | 697 | Summary(pl.UTF-8): Przeglądarka Zeroconf Avahi |
87384157 JB |
698 | Group: X11/Applications/Networking |
699 | Requires: gtk+3 >= 3.0 | |
2fa0b6d5 | 700 | Requires: python-avahi = %{version}-%{release} |
87384157 | 701 | Requires: python-pygobject3 >= 3.0 |
84074ccc | 702 | |
703 | %description discover | |
76a611b3 | 704 | A tool for enumerating all available services on the local LAN |
87384157 | 705 | (Python/PyGObject implementation). |
84074ccc | 706 | |
bdc824d1 JR |
707 | %description discover -l pl.UTF-8 |
708 | Narzędzie wymieniające wszystkie dostępne usługi w sieci lokalnej LAN | |
87384157 | 709 | (implementacja oparta na szkielecie Python/PyGObject). |
84074ccc | 710 | |
711 | %package discover-standalone | |
712 | Summary: Avahi Zeroconf browser | |
bfc0e078 | 713 | Summary(pl.UTF-8): Przeglądarka Zeroconf Avahi |
87384157 | 714 | Group: X11/Applications/Networking |
844a35c9 | 715 | Requires: %{name}-glib = %{version}-%{release} |
87384157 JB |
716 | %if %{with gtk3} |
717 | Requires: gtk+3 >= 3.0.0 | |
718 | %else | |
719 | Requires: gtk+2 >= 2:2.14.0 | |
720 | %endif | |
84074ccc | 721 | |
722 | %description discover-standalone | |
723 | GTK+ tool for enumerating all available services on the local LAN. | |
724 | ||
bdc824d1 JR |
725 | %description discover-standalone -l pl.UTF-8 |
726 | Narzędzie GTK+ wymieniające wszystkie dostępne usługi w sieci lokalnej | |
76a611b3 | 727 | LAN. |
84074ccc | 728 | |
87384157 JB |
729 | %package bshell |
730 | Summary: Avahi SSH/VNC servers browser | |
731 | Summary(pl.UTF-8): Przeglądarka serwerów SSH/VNC oparta na Avahi | |
732 | Group: X11/Applications/Networking | |
733 | %if %{with gtk3} | |
734 | Requires: %{name}-ui-gtk3 = %{version}-%{release} | |
735 | %else | |
736 | Requires: %{name}-ui = %{version}-%{release} | |
737 | %endif | |
738 | ||
739 | %description bshell | |
740 | bshell/bssh/bvnc browses for SSH/VNC servers on the local network, | |
741 | shows them in a GUI for the user to select one and finally calls | |
742 | ssh/vncviewer after a selection was made. | |
743 | ||
744 | %description bshell -l pl.UTF-8 | |
745 | bshell/bssh/bvnc pozwala przeglądać serwery SSH/VNC w sieci lokalnej, | |
746 | pokazywać je w graficznym interfejsie, aby któryś wybrać i wywołać | |
747 | dla niego ssh/vncviewer. | |
748 | ||
84074ccc | 749 | %package utils |
750 | Summary: Avahi CLI utilities | |
bfc0e078 | 751 | Summary(pl.UTF-8): Narzędzia CLI Avahi |
87384157 | 752 | Group: Applications/Networking |
84074ccc | 753 | |
754 | %description utils | |
755 | Command line utilities using avahi-client. | |
756 | ||
bdc824d1 JR |
757 | %description utils -l pl.UTF-8 |
758 | Narzędzia linii poleceń korzystające z avahi-client. | |
84074ccc | 759 | |
760 | %prep | |
761 | %setup -q | |
cf57cb18 | 762 | %patch0 -p1 |
87384157 | 763 | %patch1 -p1 |
65db52cd | 764 | %patch2 -p1 |
e3381b19 | 765 | %patch3 -p1 |
65bff097 | 766 | %patch4 -p1 |
6823ab8f JK |
767 | %patch5 -p1 |
768 | %patch6 -p1 | |
87384157 JB |
769 | %patch7 -p1 |
770 | %patch8 -p1 | |
771 | %patch9 -p1 | |
772 | %patch10 -p1 | |
84074ccc | 773 | |
774 | %build | |
775 | %{__libtoolize} | |
776 | %{__aclocal} -I common | |
777 | %{__autoconf} | |
778 | %{__autoheader} | |
779 | %{__automake} | |
780 | %configure \ | |
87384157 | 781 | PYTHON=%{__python} \ |
e5a53780 | 782 | --enable-compat-libdns_sd \ |
20c3c94e | 783 | --enable-compat-howl \ |
4f99a994 | 784 | %{!?with_apidocs:--disable-doxygen-doc} \ |
87384157 | 785 | %{?with_gtk2:--enable-gtk} \ |
e3a440ad | 786 | %{!?with_gtk3:--disable-gtk3} \ |
87384157 JB |
787 | %{!?with_pygobject:--disable-pygobject} \ |
788 | %{!?with_libevent:--disable-libevent} \ | |
84074ccc | 789 | %{!?with_dotnet:--disable-mono} \ |
b34bc075 | 790 | %{!?with_dotnet:--disable-monodoc} \ |
87384157 JB |
791 | %{?with_qt3:--enable-qt3} \ |
792 | %{?with_qt4:--enable-qt4} \ | |
793 | %{!?with_qt5:--disable-qt5} \ | |
794 | --disable-silent-rules \ | |
795 | --disable-stack-protector \ | |
b34bc075 | 796 | --with-autoipd-user=avahi \ |
87384157 JB |
797 | --with-autoipd-group=avahi \ |
798 | --with-avahi-priv-access-group=adm \ | |
799 | --with-distro=none \ | |
800 | --with-systemdsystemunitdir=%{systemdunitdir} | |
801 | ||
84074ccc | 802 | %{__make} |
803 | ||
804 | %install | |
805 | rm -rf $RPM_BUILD_ROOT | |
4d8ba2b7 | 806 | install -d $RPM_BUILD_ROOT{%{_pixmapsdir},/etc/rc.d/init.d} |
84074ccc | 807 | |
808 | %{__make} install \ | |
809 | DESTDIR=$RPM_BUILD_ROOT \ | |
810 | pythondir=%{py_sitedir} | |
385ef799 | 811 | |
65bff097 | 812 | install -p %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d |
4a2b845e | 813 | cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_pixmapsdir} |
385ef799 | 814 | |
c3bb95bb | 815 | ln -sf %{_includedir}/avahi-compat-libdns_sd/dns_sd.h \ |
816 | $RPM_BUILD_ROOT%{_includedir}/dns_sd.h | |
817 | ||
20c3c94e | 818 | ln -sf %{_pkgconfigdir}/avahi-compat-howl.pc \ |
819 | $RPM_BUILD_ROOT%{_pkgconfigdir}/howl.pc | |
820 | ||
438dba17 JK |
821 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} |
822 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
823 | %py_postclean | |
84074ccc | 824 | |
164ba8a1 | 825 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/avahi-{browse-domains,publish-address,publish-service,resolve-address,resolve-host-name}.1 |
4abede57 MB |
826 | echo '.so avahi-browse.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-browse-domains.1 |
827 | echo '.so avahi-publish.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-publish-address.1 | |
828 | echo '.so avahi-publish.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-publish-service.1 | |
829 | echo '.so avahi-resolve.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-resolve-address.1 | |
830 | echo '.so avahi-resolve.1' > $RPM_BUILD_ROOT%{_mandir}/man1/avahi-resolve-host-name.1 | |
87384157 JB |
831 | %if %{with gtk2} || %{with gtk3} |
832 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/bvnc.1 | |
5234c9c3 | 833 | echo '.so bssh.1' > $RPM_BUILD_ROOT%{_mandir}/man1/bvnc.1 |
f97a9b3d | 834 | echo '.so bssh.1' > $RPM_BUILD_ROOT%{_mandir}/man1/bshell.1 |
ef3b7772 | 835 | %endif |
f97a9b3d AF |
836 | |
837 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la | |
021eb35e | 838 | |
844a35c9 JB |
839 | %find_lang %{name} |
840 | ||
84074ccc | 841 | %clean |
842 | rm -rf $RPM_BUILD_ROOT | |
843 | ||
f97f8264 | 844 | %pre |
611ce39d | 845 | %groupadd -g 165 -r -f avahi |
846 | %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi | |
f97f8264 | 847 | |
3fe97cfe JK |
848 | %pre autoipd |
849 | %groupadd -g 165 -r -f avahi | |
850 | %useradd -u 165 -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi | |
851 | ||
84074ccc | 852 | %post |
385ef799 | 853 | /sbin/chkconfig --add %{name}-daemon |
854 | %service %{name}-daemon restart | |
855 | /sbin/chkconfig --add %{name}-dnsconfd | |
856 | %service %{name}-dnsconfd restart | |
5c33a843 | 857 | %systemd_post avahi-daemon.service avahi-dnsconfd.service avahi-daemon.socket |
84074ccc | 858 | |
859 | %preun | |
860 | if [ "$1" = "0" ]; then | |
385ef799 | 861 | %service -q %{name}-dnsconfd stop |
862 | /sbin/chkconfig --del %{name}-dnsconfd | |
863 | %service -q %{name}-daemon stop | |
864 | /sbin/chkconfig --del %{name}-daemon | |
84074ccc | 865 | fi |
5c33a843 | 866 | %systemd_preun avahi-daemon.service avahi-dnsconfd.service avahi-daemon.socket |
84074ccc | 867 | |
76a611b3 | 868 | %postun |
869 | if [ "$1" = "0" ]; then | |
45e53a0f ER |
870 | %userremove avahi |
871 | %groupremove avahi | |
872 | fi | |
5c33a843 JR |
873 | %systemd_reload |
874 | ||
875 | %triggerpostun -- avahi < 0.6.30-7 | |
876 | %systemd_trigger avahi-daemon.service avahi-dnsconfd.service avahi-daemon.socket | |
45e53a0f ER |
877 | |
878 | %postun autoipd | |
879 | if [ "$1" = "0" ]; then | |
880 | %userremove avahi | |
f97f8264 | 881 | %groupremove avahi |
882 | fi | |
f97f8264 | 883 | |
84074ccc | 884 | %post libs -p /sbin/ldconfig |
885 | %postun libs -p /sbin/ldconfig | |
886 | ||
fcc1bce8 JB |
887 | %post ui -p /sbin/ldconfig |
888 | %postun ui -p /sbin/ldconfig | |
889 | ||
f97a9b3d AF |
890 | %post ui-gtk3 -p /sbin/ldconfig |
891 | %postun ui-gtk3 -p /sbin/ldconfig | |
892 | ||
e5a53780 | 893 | %post compat-libdns_sd -p /sbin/ldconfig |
894 | %postun compat-libdns_sd -p /sbin/ldconfig | |
895 | ||
20c3c94e | 896 | %post compat-howl -p /sbin/ldconfig |
897 | %postun compat-howl -p /sbin/ldconfig | |
898 | ||
84074ccc | 899 | %post glib -p /sbin/ldconfig |
900 | %postun glib -p /sbin/ldconfig | |
901 | ||
844a35c9 JB |
902 | %post gobject -p /sbin/ldconfig |
903 | %postun gobject -p /sbin/ldconfig | |
904 | ||
87384157 JB |
905 | %post libevent -p /sbin/ldconfig |
906 | %postun libevent -p /sbin/ldconfig | |
907 | ||
908 | %post qt3 -p /sbin/ldconfig | |
909 | %postun qt3 -p /sbin/ldconfig | |
910 | ||
911 | %post qt4 -p /sbin/ldconfig | |
912 | %postun qt4 -p /sbin/ldconfig | |
91bdb504 | 913 | |
87384157 JB |
914 | %post qt5 -p /sbin/ldconfig |
915 | %postun qt5 -p /sbin/ldconfig | |
84074ccc | 916 | |
917 | %files | |
918 | %defattr(644,root,root,755) | |
919 | %doc docs/AUTHORS docs/COMPAT-LAYERS docs/NEWS docs/README docs/TODO | |
920 | ||
921 | %dir %{_sysconfdir}/avahi | |
922 | %dir %{_sysconfdir}/avahi/services | |
4a2b845e | 923 | %attr(755,root,root) %{_sysconfdir}/avahi/avahi-dnsconfd.action |
84074ccc | 924 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/avahi-daemon.conf |
56321bc5 | 925 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/hosts |
84074ccc | 926 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/ssh.service |
87585768 | 927 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/avahi/services/sftp-ssh.service |
b990428a | 928 | %config(noreplace) %verify(not md5 mtime size) /etc/dbus-1/system.d/avahi-dbus.conf |
84074ccc | 929 | |
5c33a843 JR |
930 | %{systemdunitdir}/avahi-daemon.service |
931 | %{systemdunitdir}/avahi-daemon.socket | |
932 | %{systemdunitdir}/avahi-dnsconfd.service | |
933 | %{_datadir}/dbus-1/system-services/org.freedesktop.Avahi.service | |
934 | ||
4da0d8d4 | 935 | %attr(755,root,root) %{_bindir}/avahi-set-host-name |
84074ccc | 936 | |
937 | %attr(755,root,root) %{_sbindir}/avahi-daemon | |
938 | %attr(755,root,root) %{_sbindir}/avahi-dnsconfd | |
87265823 JB |
939 | %dir %{_libdir}/%{name} |
940 | %{_libdir}/%{name}/service-types.db | |
84074ccc | 941 | %{_datadir}/%{name}/avahi-service.dtd |
87265823 | 942 | %{_datadir}/dbus-1/interfaces/org.freedesktop.Avahi.*.xml |
84074ccc | 943 | |
844a35c9 JB |
944 | %{_mandir}/man1/avahi-set-host-name.1* |
945 | %{_mandir}/man5/avahi-daemon.conf.5* | |
946 | %{_mandir}/man5/avahi.hosts.5* | |
947 | %{_mandir}/man5/avahi.service.5* | |
948 | %{_mandir}/man8/avahi-daemon.8* | |
949 | %{_mandir}/man8/avahi-dnsconfd.8* | |
950 | %{_mandir}/man8/avahi-dnsconfd.action.8* | |
84074ccc | 951 | |
385ef799 | 952 | %attr(754,root,root) /etc/rc.d/init.d/%{name}-daemon |
953 | %attr(754,root,root) /etc/rc.d/init.d/%{name}-dnsconfd | |
84074ccc | 954 | |
b2d6640f JK |
955 | %files autoipd |
956 | %defattr(644,root,root,755) | |
957 | %dir %{_sysconfdir}/avahi | |
87585768 | 958 | %attr(755,root,root) %{_sysconfdir}/%{name}/avahi-autoipd.action |
6823ab8f JK |
959 | %config(noreplace) %verify(not md5 mtime size) /etc/dhclient-enter-hooks.d/avahi-autoipd |
960 | %config(noreplace) %verify(not md5 mtime size) /etc/dhclient-exit-hooks.d/avahi-autoipd | |
87585768 | 961 | %attr(755,root,root) %{_sbindir}/avahi-autoipd |
844a35c9 JB |
962 | %{_mandir}/man8/avahi-autoipd.8* |
963 | %{_mandir}/man8/avahi-autoipd.action.8* | |
87585768 | 964 | |
844a35c9 | 965 | %files libs -f %{name}.lang |
84074ccc | 966 | %defattr(644,root,root,755) |
967 | %attr(755,root,root) %{_libdir}/libavahi-client.so.*.*.* | |
844a35c9 | 968 | %attr(755,root,root) %ghost %{_libdir}/libavahi-client.so.3 |
84074ccc | 969 | %attr(755,root,root) %{_libdir}/libavahi-common.so.*.*.* |
844a35c9 | 970 | %attr(755,root,root) %ghost %{_libdir}/libavahi-common.so.3 |
84074ccc | 971 | %attr(755,root,root) %{_libdir}/libavahi-core.so.*.*.* |
e3a440ad | 972 | %attr(755,root,root) %ghost %{_libdir}/libavahi-core.so.7 |
844a35c9 JB |
973 | # common for -discover* |
974 | %dir %{_datadir}/%{name} | |
975 | %dir %{_datadir}/%{name}/interfaces | |
84074ccc | 976 | |
977 | %files devel | |
978 | %defattr(644,root,root,755) | |
979 | %doc docs/API-CHANGES-0.6 docs/DBUS-API docs/HACKING docs/MALLOC | |
980 | %attr(755,root,root) %{_libdir}/libavahi-client.so | |
981 | %attr(755,root,root) %{_libdir}/libavahi-common.so | |
982 | %attr(755,root,root) %{_libdir}/libavahi-core.so | |
84074ccc | 983 | %{_includedir}/avahi-client |
984 | %{_includedir}/avahi-common | |
985 | %{_includedir}/avahi-core | |
986 | %{_pkgconfigdir}/avahi-client.pc | |
987 | %{_pkgconfigdir}/avahi-core.pc | |
988 | ||
989 | %files static | |
990 | %defattr(644,root,root,755) | |
991 | %{_libdir}/libavahi-client.a | |
992 | %{_libdir}/libavahi-common.a | |
993 | %{_libdir}/libavahi-core.a | |
994 | ||
87384157 | 995 | %if %{with gtk2} |
fcc1bce8 JB |
996 | %files ui |
997 | %defattr(644,root,root,755) | |
f97a9b3d AF |
998 | %attr(755,root,root) %{_libdir}/libavahi-ui.so.*.*.* |
999 | %attr(755,root,root) %ghost %{_libdir}/libavahi-ui.so.0 | |
fcc1bce8 JB |
1000 | |
1001 | %files ui-devel | |
1002 | %defattr(644,root,root,755) | |
51860451 | 1003 | %attr(755,root,root) %{_libdir}/libavahi-ui.so |
fcc1bce8 JB |
1004 | %{_pkgconfigdir}/avahi-ui.pc |
1005 | ||
1006 | %files ui-static | |
1007 | %defattr(644,root,root,755) | |
51860451 | 1008 | %{_libdir}/libavahi-ui.a |
4f99a994 | 1009 | %endif |
fcc1bce8 | 1010 | |
87384157 | 1011 | %if %{with gtk2} || %{with gtk3} |
f97a9b3d AF |
1012 | %files ui-devel-common |
1013 | %defattr(644,root,root,755) | |
1014 | %{_includedir}/avahi-ui | |
1015 | %endif | |
1016 | ||
1017 | %if %{with gtk3} | |
1018 | %files ui-gtk3 | |
1019 | %defattr(644,root,root,755) | |
f97a9b3d AF |
1020 | %attr(755,root,root) %{_libdir}/libavahi-ui-gtk3.so.*.*.* |
1021 | %attr(755,root,root) %ghost %{_libdir}/libavahi-ui-gtk3.so.0 | |
f97a9b3d AF |
1022 | |
1023 | %files ui-gtk3-devel | |
1024 | %defattr(644,root,root,755) | |
1025 | %attr(755,root,root) %{_libdir}/libavahi-ui-gtk3.so | |
1026 | %{_pkgconfigdir}/avahi-ui-gtk3.pc | |
1027 | ||
1028 | %files ui-gtk3-static | |
1029 | %defattr(644,root,root,755) | |
1030 | %{_libdir}/libavahi-ui-gtk3.a | |
1031 | %endif | |
1032 | ||
e5a53780 | 1033 | %files compat-libdns_sd |
1034 | %defattr(644,root,root,755) | |
1035 | %attr(755,root,root) %{_libdir}/libdns_sd.so.*.*.* | |
844a35c9 | 1036 | %attr(755,root,root) %ghost %{_libdir}/libdns_sd.so.1 |
e5a53780 | 1037 | |
1038 | %files compat-libdns_sd-devel | |
1039 | %defattr(644,root,root,755) | |
1040 | %attr(755,root,root) %{_libdir}/libdns_sd.so | |
e5a53780 | 1041 | %{_includedir}/avahi-compat-libdns_sd |
c3bb95bb | 1042 | %{_includedir}/dns_sd.h |
e5a53780 | 1043 | %{_pkgconfigdir}/avahi-compat-libdns_sd.pc |
1044 | ||
1045 | %files compat-libdns_sd-static | |
1046 | %defattr(644,root,root,755) | |
1047 | %{_libdir}/libdns_sd.a | |
1048 | ||
20c3c94e | 1049 | %files compat-howl |
1050 | %defattr(644,root,root,755) | |
1051 | %attr(755,root,root) %{_libdir}/libhowl.so.*.*.* | |
844a35c9 | 1052 | %attr(755,root,root) %ghost %{_libdir}/libhowl.so.0 |
20c3c94e | 1053 | |
1054 | %files compat-howl-devel | |
1055 | %defattr(644,root,root,755) | |
1056 | %attr(755,root,root) %{_libdir}/libhowl.so | |
20c3c94e | 1057 | %{_includedir}/avahi-compat-howl |
1058 | %{_pkgconfigdir}/avahi-compat-howl.pc | |
1059 | %{_pkgconfigdir}/howl.pc | |
1060 | ||
1061 | %files compat-howl-static | |
1062 | %defattr(644,root,root,755) | |
1063 | %{_libdir}/libhowl.a | |
1064 | ||
2fa0b6d5 PZ |
1065 | %files -n python-avahi |
1066 | %defattr(644,root,root,755) | |
1067 | %{py_sitedir}/avahi | |
1068 | ||
51f19ad8 | 1069 | %if %{with dotnet} |
1070 | %files -n dotnet-avahi | |
1071 | %defattr(644,root,root,755) | |
1072 | %{_prefix}/lib/mono/gac/avahi-sharp | |
84074ccc | 1073 | |
51f19ad8 | 1074 | %files -n dotnet-avahi-devel |
1075 | %defattr(644,root,root,755) | |
5bd74609 | 1076 | %{_prefix}/lib/mono/avahi-sharp |
88f6455e | 1077 | %{_prefix}/lib/monodoc/sources/avahi-sharp-docs.* |
48163b45 | 1078 | %{_pkgconfigdir}/avahi-sharp.pc |
fcc1bce8 JB |
1079 | |
1080 | %files -n dotnet-avahi-ui | |
1081 | %defattr(644,root,root,755) | |
1082 | %{_prefix}/lib/mono/gac/avahi-ui-sharp | |
1083 | ||
1084 | %files -n dotnet-avahi-ui-devel | |
1085 | %defattr(644,root,root,755) | |
fcc1bce8 | 1086 | %{_prefix}/lib/mono/avahi-ui-sharp |
88f6455e | 1087 | %{_prefix}/lib/monodoc/sources/avahi-ui-sharp-docs.* |
fcc1bce8 | 1088 | %{_pkgconfigdir}/avahi-ui-sharp.pc |
51f19ad8 | 1089 | %endif |
84074ccc | 1090 | |
1091 | %files glib | |
1092 | %defattr(644,root,root,755) | |
1093 | %attr(755,root,root) %{_libdir}/libavahi-glib.so.*.*.* | |
844a35c9 | 1094 | %attr(755,root,root) %ghost %{_libdir}/libavahi-glib.so.1 |
84074ccc | 1095 | |
1096 | %files glib-devel | |
1097 | %defattr(644,root,root,755) | |
1098 | %attr(755,root,root) %{_libdir}/libavahi-glib.so | |
84074ccc | 1099 | %{_includedir}/avahi-glib |
1100 | %{_pkgconfigdir}/avahi-glib.pc | |
1101 | ||
1102 | %files glib-static | |
1103 | %defattr(644,root,root,755) | |
1104 | %{_libdir}/libavahi-glib.a | |
1105 | ||
844a35c9 JB |
1106 | %files gobject |
1107 | %defattr(644,root,root,755) | |
1108 | %attr(755,root,root) %{_libdir}/libavahi-gobject.so.*.*.* | |
1109 | %attr(755,root,root) %ghost %{_libdir}/libavahi-gobject.so.0 | |
87265823 JB |
1110 | %{_libdir}/girepository-1.0/Avahi-0.6.typelib |
1111 | %{_libdir}/girepository-1.0/AvahiCore-0.6.typelib | |
844a35c9 JB |
1112 | |
1113 | %files gobject-devel | |
1114 | %defattr(644,root,root,755) | |
1115 | %attr(755,root,root) %{_libdir}/libavahi-gobject.so | |
844a35c9 JB |
1116 | %{_includedir}/avahi-gobject |
1117 | %{_pkgconfigdir}/avahi-gobject.pc | |
87265823 JB |
1118 | %{_datadir}/gir-1.0/Avahi-0.6.gir |
1119 | %{_datadir}/gir-1.0/AvahiCore-0.6.gir | |
844a35c9 JB |
1120 | |
1121 | %files gobject-static | |
1122 | %defattr(644,root,root,755) | |
1123 | %{_libdir}/libavahi-gobject.a | |
1124 | ||
87384157 JB |
1125 | %if %{with libevent} |
1126 | %files libevent | |
1127 | %defattr(644,root,root,755) | |
1128 | %attr(755,root,root) %{_libdir}/libavahi-libevent.so.*.*.* | |
1129 | %attr(755,root,root) %ghost %{_libdir}/libavahi-libevent.so.1 | |
1130 | ||
1131 | %files libevent-devel | |
1132 | %defattr(644,root,root,755) | |
1133 | %attr(755,root,root) %{_libdir}/libavahi-libevent.so | |
1134 | %{_includedir}/avahi-libevent | |
1135 | %{_pkgconfigdir}/avahi-libevent.pc | |
1136 | ||
1137 | %files libevent-static | |
1138 | %defattr(644,root,root,755) | |
1139 | %{_libdir}/libavahi-libevent.a | |
1140 | %endif | |
1141 | ||
0b1041d5 | 1142 | %if %{with qt3} |
87384157 | 1143 | %files qt3 |
84074ccc | 1144 | %defattr(644,root,root,755) |
1145 | %attr(755,root,root) %{_libdir}/libavahi-qt3.so.*.*.* | |
844a35c9 | 1146 | %attr(755,root,root) %ghost %{_libdir}/libavahi-qt3.so.1 |
84074ccc | 1147 | |
87384157 | 1148 | %files qt3-devel |
84074ccc | 1149 | %defattr(644,root,root,755) |
1150 | %attr(755,root,root) %{_libdir}/libavahi-qt3.so | |
84074ccc | 1151 | %{_includedir}/avahi-qt3 |
1152 | %{_pkgconfigdir}/avahi-qt3.pc | |
1153 | ||
87384157 | 1154 | %files qt3-static |
84074ccc | 1155 | %defattr(644,root,root,755) |
1156 | %{_libdir}/libavahi-qt3.a | |
0b1041d5 | 1157 | %endif |
91bdb504 | 1158 | |
0b1041d5 | 1159 | %if %{with qt4} |
87384157 | 1160 | %files qt4 |
91bdb504 PS |
1161 | %defattr(644,root,root,755) |
1162 | %attr(755,root,root) %{_libdir}/libavahi-qt4.so.*.*.* | |
844a35c9 | 1163 | %attr(755,root,root) %ghost %{_libdir}/libavahi-qt4.so.1 |
91bdb504 | 1164 | |
87384157 | 1165 | %files qt4-devel |
91bdb504 PS |
1166 | %defattr(644,root,root,755) |
1167 | %attr(755,root,root) %{_libdir}/libavahi-qt4.so | |
91bdb504 PS |
1168 | %{_includedir}/avahi-qt4 |
1169 | %{_pkgconfigdir}/avahi-qt4.pc | |
1170 | ||
87384157 | 1171 | %files qt4-static |
91bdb504 PS |
1172 | %defattr(644,root,root,755) |
1173 | %{_libdir}/libavahi-qt4.a | |
528a0e79 | 1174 | %endif |
84074ccc | 1175 | |
87384157 JB |
1176 | %if %{with qt5} |
1177 | %files qt5 | |
1178 | %defattr(644,root,root,755) | |
1179 | %attr(755,root,root) %{_libdir}/libavahi-qt5.so.*.*.* | |
1180 | %attr(755,root,root) %ghost %{_libdir}/libavahi-qt5.so.1 | |
1181 | ||
1182 | %files qt5-devel | |
1183 | %defattr(644,root,root,755) | |
1184 | %attr(755,root,root) %{_libdir}/libavahi-qt5.so | |
1185 | %{_includedir}/avahi-qt5 | |
1186 | %{_pkgconfigdir}/avahi-qt5.pc | |
1187 | ||
1188 | %files qt5-static | |
1189 | %defattr(644,root,root,755) | |
1190 | %{_libdir}/libavahi-qt5.a | |
1191 | %endif | |
1192 | ||
84074ccc | 1193 | %files bookmarks |
1194 | %defattr(644,root,root,755) | |
1195 | %attr(755,root,root) %{_bindir}/avahi-bookmarks | |
844a35c9 | 1196 | %{_mandir}/man1/avahi-bookmarks.1* |
84074ccc | 1197 | |
87384157 | 1198 | %if %{with pygobject} |
84074ccc | 1199 | %files discover |
1200 | %defattr(644,root,root,755) | |
1201 | %attr(755,root,root) %{_bindir}/avahi-discover | |
51860451 | 1202 | %{_datadir}/%{name}/interfaces/avahi-discover.ui |
5acf6365 | 1203 | %{_desktopdir}/avahi-discover.desktop |
76a611b3 | 1204 | %{_pixmapsdir}/avahi.png |
844a35c9 | 1205 | %{_mandir}/man1/avahi-discover.1* |
4f99a994 | 1206 | %endif |
84074ccc | 1207 | |
87384157 | 1208 | %if %{with gtk2} || %{with gtk3} |
84074ccc | 1209 | %files discover-standalone |
1210 | %defattr(644,root,root,755) | |
51860451 | 1211 | %attr(755,root,root) %{_bindir}/avahi-discover-standalone |
87384157 JB |
1212 | |
1213 | %files bshell | |
1214 | %defattr(644,root,root,755) | |
1215 | %attr(755,root,root) %{_bindir}/bshell | |
1216 | %attr(755,root,root) %{_bindir}/bssh | |
1217 | %attr(755,root,root) %{_bindir}/bvnc | |
1218 | %{_mandir}/man1/bshell.1* | |
1219 | %{_mandir}/man1/bssh.1* | |
1220 | %{_mandir}/man1/bvnc.1* | |
1221 | %{_desktopdir}/bssh.desktop | |
1222 | %{_desktopdir}/bvnc.desktop | |
4f99a994 | 1223 | %endif |
84074ccc | 1224 | |
1225 | %files utils | |
1226 | %defattr(644,root,root,755) | |
1227 | %attr(755,root,root) %{_bindir}/avahi-browse | |
844a35c9 | 1228 | %attr(755,root,root) %{_bindir}/avahi-browse-domains |
84074ccc | 1229 | %attr(755,root,root) %{_bindir}/avahi-publish |
844a35c9 JB |
1230 | %attr(755,root,root) %{_bindir}/avahi-publish-address |
1231 | %attr(755,root,root) %{_bindir}/avahi-publish-service | |
84074ccc | 1232 | %attr(755,root,root) %{_bindir}/avahi-resolve |
844a35c9 JB |
1233 | %attr(755,root,root) %{_bindir}/avahi-resolve-address |
1234 | %attr(755,root,root) %{_bindir}/avahi-resolve-host-name | |
1235 | %{_mandir}/man1/avahi-browse.1* | |
1236 | %{_mandir}/man1/avahi-browse-domains.1* | |
1237 | %{_mandir}/man1/avahi-publish.1* | |
1238 | %{_mandir}/man1/avahi-publish-address.1* | |
1239 | %{_mandir}/man1/avahi-publish-service.1* | |
1240 | %{_mandir}/man1/avahi-resolve.1* | |
1241 | %{_mandir}/man1/avahi-resolve-address.1* | |
1242 | %{_mandir}/man1/avahi-resolve-host-name.1* |