]>
Commit | Line | Data |
---|---|---|
1 | # Conditional build: | |
2 | %bcond_without apidocs # without API docs | |
3 | %bcond_without x # build with X11 support | |
4 | ||
5 | Summary: VMWare guest utilities | |
6 | Summary(pl.UTF-8): Narzędzia dla systemu-gościa dla VMware | |
7 | Name: open-vm-tools | |
8 | Version: 12.3.0 | |
9 | Release: 1 | |
10 | Epoch: 1 | |
11 | License: GPL | |
12 | Group: Applications/System | |
13 | Source0: https://github.com/vmware/open-vm-tools/archive/stable-%{version}.tar.gz | |
14 | # Source0-md5: 7f4c11b8e63a1cae6a77d80dd353a792 | |
15 | Source1: %{name}-packaging | |
16 | Source2: %{name}-modprobe.d | |
17 | Source3: %{name}-init | |
18 | Source4: %{name}-vmware-user.desktop | |
19 | Source5: vmware-vmblock-fuse.service | |
20 | Source6: vmtoolsd.pamd | |
21 | Patch0: %{name}-dnd.patch | |
22 | Patch1: iopl.patch | |
23 | URL: https://github.com/vmware/open-vm-tools | |
24 | BuildRequires: autoconf | |
25 | BuildRequires: doxygen | |
26 | BuildRequires: glib2-devel >= 1:2.34.0 | |
27 | BuildRequires: libdnet-devel | |
28 | BuildRequires: libdrm-devel | |
29 | BuildRequires: libfuse-devel | |
30 | BuildRequires: libicu-devel | |
31 | BuildRequires: libmspack-devel | |
32 | BuildRequires: libstdc++-devel | |
33 | BuildRequires: libtirpc-devel | |
34 | BuildRequires: openssl-devel >= 1.0.1 | |
35 | BuildRequires: pam-devel | |
36 | BuildRequires: pkgconfig | |
37 | BuildRequires: rpcsvc-proto | |
38 | BuildRequires: rpm-build >= 4.6 | |
39 | BuildRequires: rpmbuild(macros) >= 1.752 | |
40 | BuildRequires: udev-devel | |
41 | BuildRequires: xml-security-c-devel | |
42 | BuildRequires: xmlsec1-devel | |
43 | %if %{with x} | |
44 | BuildRequires: gtk+3-devel >= 3.0.0 | |
45 | BuildRequires: gtkmm3-devel >= 3.0.0 | |
46 | BuildRequires: libsigc++-devel >= 2.5.1 | |
47 | BuildRequires: xorg-lib-libICE-devel | |
48 | BuildRequires: xorg-lib-libSM-devel | |
49 | BuildRequires: xorg-lib-libX11-devel | |
50 | BuildRequires: xorg-lib-libXcomposite-devel | |
51 | BuildRequires: xorg-lib-libXext-devel | |
52 | BuildRequires: xorg-lib-libXi-devel | |
53 | BuildRequires: xorg-lib-libXinerama-devel | |
54 | BuildRequires: xorg-lib-libXrandr-devel | |
55 | BuildRequires: xorg-lib-libXrender-devel | |
56 | BuildRequires: xorg-lib-libXtst-devel | |
57 | %endif | |
58 | Requires: ethtool | |
59 | Requires: glib2 >= 1:2.34.0 | |
60 | Requires: libdnet | |
61 | Requires: libicu | |
62 | Requires: openssl >= 1.0.1 | |
63 | ExclusiveArch: %{ix86} %{x8664} aarch64 | |
64 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
65 | ||
66 | %define skip_post_check_so libDeployPkg.so.0.0.0 | |
67 | ||
68 | %description | |
69 | VMWare guest utilities. | |
70 | ||
71 | %description -l pl.UTF-8 | |
72 | Narzędzia dla systemu-gościa dla VMware. | |
73 | ||
74 | %package devel | |
75 | Summary: Header files for open-vm-tools | |
76 | Summary(pl.UTF-8): Pliki nagłówkowe open-vm-tools | |
77 | Group: Development/Libraries | |
78 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
79 | ||
80 | %description devel | |
81 | Header files for open-vm-tools. | |
82 | ||
83 | %description devel -l pl.UTF-8 | |
84 | Pliki nagłówkowe open-vm-tools. | |
85 | ||
86 | %package sdmp | |
87 | Summary: Service Discovery Plugin | |
88 | Summary(pl.UTF-8): Wtyczka Service Discovery | |
89 | Group: Libraries | |
90 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
91 | ||
92 | %description sdmp | |
93 | The Service Discovery plugin connects with the vRealize Operations | |
94 | Manager product. This plug-in provides fabric admins with more | |
95 | information to better manage VMs at large scale. VMware Tools already | |
96 | collects some data from VMs, but it is not sufficient. This plug-in | |
97 | collects additional data and relays it to vRealize Operations Manager | |
98 | if the management feature is enabled. The plugin is enabled by default | |
99 | and can be disabled at any time by the guest administrator inside the | |
100 | guest. | |
101 | ||
102 | %description sdmp -l pl.UTF-8 | |
103 | Wtyczka Service Discovery łączy się z produktem vRealize Operations | |
104 | Manager. Ta wtyczka zapewnia administratorom sieci szkieletowej więcej | |
105 | informacji w celu lepszego zarządzania maszynami wirtualnymi na dużą | |
106 | skalę. VMware Tools już zbiera pewne dane z maszyn wirtualnych, ale to | |
107 | nie wystarcza. Ta wtyczka zbiera dodatkowe dane i przekazuje je do | |
108 | vRealize Operations Manager, jeśli funkcja zarządzania jest włączona. | |
109 | Wtyczka jest domyślnie włączona i może zostać wyłączona w dowolnym | |
110 | momencie przez administratora gościa wewnątrz gościa. | |
111 | ||
112 | %package salt-minion | |
113 | Summary: Script file to install/uninstall salt-minion | |
114 | Summary(pl.UTF-8): Skrypt do instalowania/usuwania salt-minion | |
115 | Group: Libraries | |
116 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
117 | Requires: coreutils | |
118 | Requires: curl | |
119 | Requires: gawk | |
120 | Requires: grep | |
121 | Requires: systemd | |
122 | ExclusiveArch: x86_64 | |
123 | ||
124 | %description salt-minion | |
125 | Salt Project is a Python based open-source software for event driven | |
126 | IT automation, remote task execution and configuration management. | |
127 | Salt requires a salt-minion to be deployed in the guest. Salt specific | |
128 | guest variables are set on the host side per VM basis and subsequently | |
129 | read by VMware Tools inside guest. VMware Tools then downloads the | |
130 | salt bundle and spins up a salt-minion instance inside the guest. | |
131 | Supports only 64 bit OSes. | |
132 | ||
133 | %description salt-minion -l pl.UTF-8 | |
134 | Projekt Salt to oparte na języku Python oprogramowanie open source do | |
135 | automatyzacji IT sterowanej zdarzeniami, zdalnego wykonywania zadań i | |
136 | zarządzania konfiguracją. Salt wymaga użycia salt-minion'a | |
137 | uruchomionego w gościu. Zmienne gościa specyficzne dla Salt są | |
138 | ustawiane po stronie hosta dla każdej maszyny wirtualnej, a następnie | |
139 | odczytywane przez narzędzia VMware Tools wewnątrz gościa. VMware Tools | |
140 | następnie pobiera pakiet salt i uruchamia instancję salt-minion | |
141 | wewnątrz gościa. Wspierane są tylko 64-bitowe systemy operacyjne | |
142 | ||
143 | %package static | |
144 | Summary: Static open-vm-tools libraries | |
145 | Summary(pl.UTF-8): Statyczne biblioteki open-vm-tools | |
146 | Group: Development/Libraries | |
147 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
148 | ||
149 | %description static | |
150 | Static open-vm-tools libraries. | |
151 | ||
152 | %description static -l pl.UTF-8 | |
153 | Statyczne biblioteki open-vm-tools. | |
154 | ||
155 | %package gui | |
156 | Summary: VMware guest utitities | |
157 | Summary(pl.UTF-8): Narzędzia dla systemu-gościa dla VMware. | |
158 | Group: Applications/System | |
159 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
160 | Requires: libsigc++ >= 2.5.1 | |
161 | ||
162 | %description gui | |
163 | VMWare guest utilities. This package contains GUI part of tools. | |
164 | ||
165 | %description gui -l pl.UTF-8 | |
166 | Narzędzia dla systemu-gościa dla VMware. Ten pakiet zawiera graficzną | |
167 | część narzędzi. | |
168 | ||
169 | %package apidocs | |
170 | Summary: VMware API documentation | |
171 | Summary(pl.UTF-8): Dokumentacja do API VMware | |
172 | Group: Documentation | |
173 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
174 | BuildArch: noarch | |
175 | ||
176 | %description apidocs | |
177 | This package contains VMware API documentation. | |
178 | ||
179 | %description apidocs -l pl.UTF-8 | |
180 | Ten pakiet zawiera dokumentację do API VMware. | |
181 | ||
182 | %package -n udev-open-vm-tools | |
183 | Summary: UDEV rules for open-vm-tools | |
184 | Summary(pl.UTF-8): Reguły UDEV dla open-vm-tools | |
185 | Group: Applications/System | |
186 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
187 | Requires: udev-core | |
188 | ||
189 | %description -n udev-open-vm-tools | |
190 | UDEV rules for open-vm-tools. | |
191 | ||
192 | %description -n udev-open-vm-tools -l pl.UTF-8 | |
193 | Reguły UDEV dla open-vm-tools. | |
194 | ||
195 | %prep | |
196 | %setup -q -n %{name}-stable-%{version} | |
197 | %patch0 -p1 | |
198 | %patch1 -p1 | |
199 | ||
200 | cp %{SOURCE1} open-vm-tools/packaging | |
201 | %{__sed} -i '1s,%{_bindir}/env bash$,%{__bash},' \ | |
202 | open-vm-tools/services/plugins/componentMgr/svtminion.sh | |
203 | ||
204 | %build | |
205 | cd open-vm-tools | |
206 | rm -rf autom4te.cache | |
207 | install -d config | |
208 | %{__libtoolize} | |
209 | %{__aclocal} -I m4 | |
210 | %{__automake} | |
211 | %{__autoconf} | |
212 | %configure2_13 \ | |
213 | --disable-tests \ | |
214 | --without-kernel-modules \ | |
215 | --enable-resolutionkms \ | |
216 | --enable-servicediscovery \ | |
217 | --enable-salt-minion \ | |
218 | %if %{with x} | |
219 | --with-x | |
220 | %else | |
221 | --without-x | |
222 | %endif | |
223 | %{__make} \ | |
224 | CFLAGS="%{rpmcflags} -Wno-unused-but-set-variable" \ | |
225 | CXXFLAGS="%{rpmcxxflags} -std=c++11 -Wno-unused-but-set-variable" | |
226 | ||
227 | %install | |
228 | rm -rf $RPM_BUILD_ROOT | |
229 | ||
230 | cd open-vm-tools | |
231 | %{__make} install \ | |
232 | DESTDIR=$RPM_BUILD_ROOT | |
233 | ||
234 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/open-vm-tools/plugins/common/*.la | |
235 | ||
236 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} | |
237 | ||
238 | install -d $RPM_BUILD_ROOT/etc/{modprobe.d,rc.d/init.d,xdg/autostart} | |
239 | cp %{SOURCE2} $RPM_BUILD_ROOT/etc/modprobe.d/%{name}.conf | |
240 | cp %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} | |
241 | cp %{SOURCE4} $RPM_BUILD_ROOT/etc/xdg/autostart/vmware-user.desktop | |
242 | cp %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/vmtoolsd | |
243 | ||
244 | install -d $RPM_BUILD_ROOT%{systemdunitdir} | |
245 | cp %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir} | |
246 | ||
247 | %clean | |
248 | rm -rf $RPM_BUILD_ROOT | |
249 | ||
250 | %post | |
251 | /sbin/ldconfig | |
252 | /sbin/chkconfig --add open-vm-tools | |
253 | %service open-vm-tools restart "Open Virtual Machine" | |
254 | %systemd_post vmware-vmblock-fuse.service | |
255 | ||
256 | %post sdmp | |
257 | %service open-vm-tools restart "Open Virtual Machine" | |
258 | ||
259 | %preun | |
260 | if [ "$1" = "0" ]; then | |
261 | %service open-vm-tools stop | |
262 | /sbin/chkconfig --del open-vm-tools | |
263 | fi | |
264 | %systemd_preun vmware-vmblock-fuse.service | |
265 | ||
266 | %postun | |
267 | /sbin/ldconfig | |
268 | %systemd_reload | |
269 | ||
270 | %postun sdmp | |
271 | %service open-vm-tools restart "Open Virtual Machine" | |
272 | ||
273 | %files | |
274 | %defattr(644,root,root,755) | |
275 | %doc README.md ReleaseNotes.md open-vm-tools/AUTHORS open-vm-tools/ChangeLog open-vm-tools/README open-vm-tools/packaging | |
276 | %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/vmtoolsd | |
277 | %dir %{_sysconfdir}/vmware-tools | |
278 | %attr(755,root,root) %{_sysconfdir}/vmware-tools/*vm-* | |
279 | %{_sysconfdir}/vmware-tools/tools.conf.example | |
280 | %{_sysconfdir}/vmware-tools/vgauth.conf | |
281 | %dir %{_sysconfdir}/vmware-tools/vgauth | |
282 | %{_sysconfdir}/vmware-tools/vgauth/schemas | |
283 | %attr(755,root,root) %{_sysconfdir}/vmware-tools/statechange.subr | |
284 | %dir %{_sysconfdir}/vmware-tools/scripts | |
285 | %dir %{_sysconfdir}/vmware-tools/scripts/vmware | |
286 | %attr(755,root,root) %{_sysconfdir}/vmware-tools/scripts/vmware/network | |
287 | %attr(755,root,root) %{_bindir}/VGAuthService | |
288 | %attr(755,root,root) %{_bindir}/vm-support | |
289 | %attr(755,root,root) %{_bindir}/vmhgfs-fuse | |
290 | %attr(755,root,root) %{_bindir}/vmtoolsd | |
291 | %attr(755,root,root) %{_bindir}/vmware-alias-import | |
292 | %attr(755,root,root) %{_bindir}/vmware-checkvm | |
293 | %attr(755,root,root) %{_bindir}/vmware-hgfsclient | |
294 | %attr(755,root,root) %{_bindir}/vmware-namespace-cmd | |
295 | %attr(755,root,root) %{_bindir}/vmware-rpctool | |
296 | %attr(755,root,root) %{_bindir}/vmware-toolbox-cmd | |
297 | %attr(755,root,root) %{_bindir}/vmware-xferlogs | |
298 | %attr(755,root,root) %{_bindir}/vmware-vgauth-cmd | |
299 | %attr(755,root,root) %{_bindir}/vmware-vgauth-smoketest | |
300 | %attr(755,root,root) %{_bindir}/vmware-vmblock-fuse | |
301 | %attr(755,root,root) %{_libdir}/libDeployPkg.so.*.*.* | |
302 | %attr(755,root,root) %ghost %{_libdir}/libDeployPkg.so.0 | |
303 | %attr(755,root,root) %{_libdir}/libguestStoreClient.so.*.*.* | |
304 | %attr(755,root,root) %ghost %{_libdir}/libguestStoreClient.so.0 | |
305 | %attr(755,root,root) %{_libdir}/libguestlib.so.*.*.* | |
306 | %attr(755,root,root) %ghost %{_libdir}/libguestlib.so.0 | |
307 | %attr(755,root,root) %{_libdir}/libvgauth.so.*.*.* | |
308 | %attr(755,root,root) %ghost %{_libdir}/libvgauth.so.0 | |
309 | %attr(755,root,root) %{_libdir}/libvmtools.so.*.*.* | |
310 | %attr(755,root,root) %ghost %{_libdir}/libvmtools.so.0 | |
311 | %attr(755,root,root) %{_libdir}/libhgfs.so.*.*.* | |
312 | %attr(755,root,root) %ghost %{_libdir}/libhgfs.so.0 | |
313 | %dir %{_libdir}/open-vm-tools | |
314 | %dir %{_libdir}/open-vm-tools/plugins | |
315 | %dir %{_libdir}/open-vm-tools/plugins/vmsvc | |
316 | %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libappInfo.so | |
317 | %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libcomponentMgr.so | |
318 | %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libdeployPkgPlugin.so | |
319 | %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libgdp.so | |
320 | %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libguestInfo.so | |
321 | %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libguestStore.so | |
322 | %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libpowerOps.so | |
323 | %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libresolutionKMS.so | |
324 | %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libtimeSync.so | |
325 | %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libvmbackup.so | |
326 | %dir %{_libdir}/open-vm-tools/plugins/common | |
327 | %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/common/libhgfsServer.so | |
328 | %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/common/libvix.so | |
329 | %attr(754,root,root) /etc/rc.d/init.d/%{name} | |
330 | %{systemdunitdir}/vmware-vmblock-fuse.service | |
331 | /etc/modprobe.d/%{name}.conf | |
332 | %dir %{_datadir}/open-vm-tools | |
333 | %dir %{_datadir}/open-vm-tools/messages | |
334 | %lang(de) %{_datadir}/open-vm-tools/messages/de | |
335 | %lang(en) %{_datadir}/open-vm-tools/messages/en | |
336 | %lang(es) %{_datadir}/open-vm-tools/messages/es | |
337 | %lang(fr) %{_datadir}/open-vm-tools/messages/fr | |
338 | %lang(it) %{_datadir}/open-vm-tools/messages/it | |
339 | %lang(ja) %{_datadir}/open-vm-tools/messages/ja | |
340 | %lang(ko) %{_datadir}/open-vm-tools/messages/ko | |
341 | %lang(zh_CN) %{_datadir}/open-vm-tools/messages/zh_CN | |
342 | %lang(zh_TW) %{_datadir}/open-vm-tools/messages/zh_TW | |
343 | ||
344 | %files devel | |
345 | %defattr(644,root,root,755) | |
346 | %attr(755,root,root) %{_libdir}/libDeployPkg.so | |
347 | %attr(755,root,root) %{_libdir}/libguestlib.so | |
348 | %attr(755,root,root) %{_libdir}/libguestStoreClient.so | |
349 | %attr(755,root,root) %{_libdir}/libvgauth.so | |
350 | %attr(755,root,root) %{_libdir}/libvmtools.so | |
351 | %attr(755,root,root) %{_libdir}/libhgfs.so | |
352 | %dir %{_includedir}/libDeployPkg | |
353 | %{_includedir}/libDeployPkg/*.h | |
354 | %dir %{_includedir}/vmGuestLib | |
355 | %{_includedir}/vmGuestLib/includeCheck.h | |
356 | %{_includedir}/vmGuestLib/vmGuestLib.h | |
357 | %{_includedir}/vmGuestLib/vmSessionId.h | |
358 | %{_includedir}/vmGuestLib/vm_basic_types.h | |
359 | %{_libdir}/libDeployPkg.la | |
360 | %{_libdir}/libguestlib.la | |
361 | %{_libdir}/libguestStoreClient.la | |
362 | %{_libdir}/libvgauth.la | |
363 | %{_libdir}/libvmtools.la | |
364 | %{_libdir}/libhgfs.la | |
365 | %{_pkgconfigdir}/libDeployPkg.pc | |
366 | %{_pkgconfigdir}/vmguestlib.pc | |
367 | ||
368 | %ifarch x86_64 | |
369 | %files salt-minion | |
370 | %defattr(644,root,root,755) | |
371 | %dir %{_libdir}/%{name}/componentMgr/ | |
372 | %dir %{_libdir}/%{name}/componentMgr/saltMinion/ | |
373 | %attr(755,root,root) %{_libdir}/%{name}/componentMgr/saltMinion/svtminion.sh | |
374 | %endif | |
375 | ||
376 | %files sdmp | |
377 | %defattr(644,root,root,755) | |
378 | %dir %{_libdir}/%{name}/serviceDiscovery/ | |
379 | %dir %{_libdir}/%{name}/serviceDiscovery/scripts/ | |
380 | %attr(755,root,root) %{_libdir}/%{name}/plugins/vmsvc/libserviceDiscovery.so | |
381 | %attr(755,root,root) %{_libdir}/%{name}/serviceDiscovery/scripts/get-connection-info.sh | |
382 | %attr(755,root,root) %{_libdir}/%{name}/serviceDiscovery/scripts/get-listening-process-info.sh | |
383 | %attr(755,root,root) %{_libdir}/%{name}/serviceDiscovery/scripts/get-listening-process-perf-metrics.sh | |
384 | %attr(755,root,root) %{_libdir}/%{name}/serviceDiscovery/scripts/get-versions.sh | |
385 | ||
386 | %files static | |
387 | %defattr(644,root,root,755) | |
388 | %{_libdir}/libDeployPkg.a | |
389 | %{_libdir}/libguestlib.a | |
390 | %{_libdir}/libguestStoreClient.a | |
391 | %{_libdir}/libvgauth.a | |
392 | %{_libdir}/libvmtools.a | |
393 | %{_libdir}/libhgfs.a | |
394 | ||
395 | %if %{with x} | |
396 | %files gui | |
397 | %defattr(644,root,root,755) | |
398 | %attr(755,root,root) %{_bindir}/vmwgfxctrl | |
399 | %attr(755,root,root) %{_bindir}/vmware-user | |
400 | %attr(4755,root,root) %{_bindir}/vmware-user-suid-wrapper | |
401 | %{_sysconfdir}/xdg/autostart/vmware-user.desktop | |
402 | %dir %{_libdir}/open-vm-tools/plugins/vmusr | |
403 | %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmusr/libdesktopEvents.so | |
404 | %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmusr/libdndcp.so | |
405 | %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmusr/libresolutionSet.so | |
406 | %endif | |
407 | ||
408 | %if %{with apidocs} | |
409 | %files apidocs | |
410 | %defattr(644,root,root,755) | |
411 | %doc open-vm-tools/docs/api/build/html/* | |
412 | %endif | |
413 | ||
414 | %files -n udev-open-vm-tools | |
415 | %defattr(644,root,root,755) | |
416 | /lib/udev/rules.d/99-vmware-scsi-udev.rules |