2 %bcond_without apidocs # without API docs
3 %bcond_without x # build with X11 support
5 Summary: VMWare guest utilities
6 Summary(pl.UTF-8): Narzędzia dla systemu-gościa dla VMware
12 Group: Applications/System
13 Source0: https://github.com/vmware/open-vm-tools/archive/stable-%{version}.tar.gz
14 # Source0-md5: fe8d53aad6bd4f4e54d4849c063c3796
15 Source1: %{name}-packaging
16 Source2: %{name}-modprobe.d
18 Source4: %{name}-vmware-user.desktop
19 Source5: vmware-vmblock-fuse.service
20 Source6: vmtoolsd.pamd
21 Patch0: %{name}-dnd.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
44 BuildRequires: gdk-pixbuf2-xlib-devel >= 2.21.0
45 BuildRequires: gtk+3-devel >= 3.0.0
46 BuildRequires: gtkmm3-devel >= 3.0.0
47 BuildRequires: libsigc++-devel >= 2.5.1
48 BuildRequires: xorg-lib-libICE-devel
49 BuildRequires: xorg-lib-libSM-devel
50 BuildRequires: xorg-lib-libX11-devel
51 BuildRequires: xorg-lib-libXcomposite-devel
52 BuildRequires: xorg-lib-libXext-devel
53 BuildRequires: xorg-lib-libXi-devel
54 BuildRequires: xorg-lib-libXinerama-devel
55 BuildRequires: xorg-lib-libXrandr-devel
56 BuildRequires: xorg-lib-libXrender-devel
57 BuildRequires: xorg-lib-libXtst-devel
60 Requires: glib2 >= 1:2.34.0
63 Requires: openssl >= 1.0.1
64 ExclusiveArch: %{ix86} %{x8664} aarch64
65 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
67 %define skip_post_check_so libDeployPkg.so.0.0.0
70 VMWare guest utilities.
72 %description -l pl.UTF-8
73 Narzędzia dla systemu-gościa dla VMware.
76 Summary: Header files for open-vm-tools
77 Summary(pl.UTF-8): Pliki nagłówkowe open-vm-tools
78 Group: Development/Libraries
79 Requires: %{name} = %{epoch}:%{version}-%{release}
82 Header files for open-vm-tools.
84 %description devel -l pl.UTF-8
85 Pliki nagłówkowe open-vm-tools.
88 Summary: Service Discovery Plugin
89 Summary(pl.UTF-8): Wtyczka Service Discovery
91 Requires: %{name} = %{epoch}:%{version}-%{release}
94 The Service Discovery plugin connects with the vRealize Operations
95 Manager product. This plug-in provides fabric admins with more
96 information to better manage VMs at large scale. VMware Tools already
97 collects some data from VMs, but it is not sufficient. This plug-in
98 collects additional data and relays it to vRealize Operations Manager
99 if the management feature is enabled. The plugin is enabled by default
100 and can be disabled at any time by the guest administrator inside the
103 %description sdmp -l pl.UTF-8
104 Wtyczka Service Discovery łączy się z produktem vRealize Operations
105 Manager. Ta wtyczka zapewnia administratorom sieci szkieletowej więcej
106 informacji w celu lepszego zarządzania maszynami wirtualnymi na dużą
107 skalę. VMware Tools już zbiera pewne dane z maszyn wirtualnych, ale to
108 nie wystarcza. Ta wtyczka zbiera dodatkowe dane i przekazuje je do
109 vRealize Operations Manager, jeśli funkcja zarządzania jest włączona.
110 Wtyczka jest domyślnie włączona i może zostać wyłączona w dowolnym
111 momencie przez administratora gościa wewnątrz gościa.
114 Summary: Script file to install/uninstall salt-minion
115 Summary(pl.UTF-8): Skrypt do instalowania/usuwania salt-minion
117 Requires: %{name} = %{epoch}:%{version}-%{release}
123 ExclusiveArch: x86_64
125 %description salt-minion
126 Salt Project is a Python based open-source software for event driven
127 IT automation, remote task execution and configuration management.
128 Salt requires a salt-minion to be deployed in the guest. Salt specific
129 guest variables are set on the host side per VM basis and subsequently
130 read by VMware Tools inside guest. VMware Tools then downloads the
131 salt bundle and spins up a salt-minion instance inside the guest.
132 Supports only 64 bit OSes.
134 %description salt-minion -l pl.UTF-8
135 Projekt Salt to oparte na języku Python oprogramowanie open source do
136 automatyzacji IT sterowanej zdarzeniami, zdalnego wykonywania zadań i
137 zarządzania konfiguracją. Salt wymaga użycia salt-minion'a
138 uruchomionego w gościu. Zmienne gościa specyficzne dla Salt są
139 ustawiane po stronie hosta dla każdej maszyny wirtualnej, a następnie
140 odczytywane przez narzędzia VMware Tools wewnątrz gościa. VMware Tools
141 następnie pobiera pakiet salt i uruchamia instancję salt-minion
142 wewnątrz gościa. Wspierane są tylko 64-bitowe systemy operacyjne
145 Summary: Static open-vm-tools libraries
146 Summary(pl.UTF-8): Statyczne biblioteki open-vm-tools
147 Group: Development/Libraries
148 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
151 Static open-vm-tools libraries.
153 %description static -l pl.UTF-8
154 Statyczne biblioteki open-vm-tools.
157 Summary: VMware guest utitities
158 Summary(pl.UTF-8): Narzędzia dla systemu-gościa dla VMware.
159 Group: Applications/System
160 Requires: %{name} = %{epoch}:%{version}-%{release}
161 Requires: gdk-pixbuf2-xlib >= 2.21.0
162 Requires: libsigc++ >= 2.5.1
165 VMWare guest utilities. This package contains GUI part of tools.
167 %description gui -l pl.UTF-8
168 Narzędzia dla systemu-gościa dla VMware. Ten pakiet zawiera graficzną
172 Summary: VMware API documentation
173 Summary(pl.UTF-8): Dokumentacja do API VMware
175 Requires: %{name} = %{epoch}:%{version}-%{release}
179 This package contains VMware API documentation.
181 %description apidocs -l pl.UTF-8
182 Ten pakiet zawiera dokumentację do API VMware.
184 %package -n udev-open-vm-tools
185 Summary: UDEV rules for open-vm-tools
186 Summary(pl.UTF-8): Reguły UDEV dla open-vm-tools
187 Group: Applications/System
188 Requires: %{name} = %{epoch}:%{version}-%{release}
191 %description -n udev-open-vm-tools
192 UDEV rules for open-vm-tools.
194 %description -n udev-open-vm-tools -l pl.UTF-8
195 Reguły UDEV dla open-vm-tools.
198 %setup -q -n %{name}-stable-%{version}
202 cp %{SOURCE1} open-vm-tools/packaging
203 %{__sed} -i '1s,%{_bindir}/env bash$,%{__bash},' \
204 open-vm-tools/services/plugins/componentMgr/svtminion.sh
208 rm -rf autom4te.cache
216 --without-kernel-modules \
217 --enable-resolutionkms \
218 --enable-servicediscovery \
219 --enable-salt-minion \
226 CFLAGS="%{rpmcflags} -Wno-unused-but-set-variable" \
227 CXXFLAGS="%{rpmcxxflags} -std=c++11 -Wno-unused-but-set-variable"
230 rm -rf $RPM_BUILD_ROOT
234 DESTDIR=$RPM_BUILD_ROOT
236 %{__rm} $RPM_BUILD_ROOT%{_libdir}/open-vm-tools/plugins/common/*.la
238 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
240 install -d $RPM_BUILD_ROOT/etc/{modprobe.d,rc.d/init.d,xdg/autostart}
241 cp %{SOURCE2} $RPM_BUILD_ROOT/etc/modprobe.d/%{name}.conf
242 cp %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
243 cp %{SOURCE4} $RPM_BUILD_ROOT/etc/xdg/autostart/vmware-user.desktop
244 cp %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/vmtoolsd
246 install -d $RPM_BUILD_ROOT%{systemdunitdir}
247 cp %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}
250 rm -rf $RPM_BUILD_ROOT
254 /sbin/chkconfig --add open-vm-tools
255 %service open-vm-tools restart "Open Virtual Machine"
256 %systemd_post vmware-vmblock-fuse.service
259 %service open-vm-tools restart "Open Virtual Machine"
262 if [ "$1" = "0" ]; then
263 %service open-vm-tools stop
264 /sbin/chkconfig --del open-vm-tools
266 %systemd_preun vmware-vmblock-fuse.service
273 %service open-vm-tools restart "Open Virtual Machine"
276 %defattr(644,root,root,755)
277 %doc README.md ReleaseNotes.md open-vm-tools/AUTHORS open-vm-tools/ChangeLog open-vm-tools/README open-vm-tools/packaging
278 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/vmtoolsd
279 %dir %{_sysconfdir}/vmware-tools
280 %attr(755,root,root) %{_sysconfdir}/vmware-tools/*vm-*
281 %{_sysconfdir}/vmware-tools/tools.conf.example
282 %{_sysconfdir}/vmware-tools/vgauth.conf
283 %dir %{_sysconfdir}/vmware-tools/vgauth
284 %{_sysconfdir}/vmware-tools/vgauth/schemas
285 %attr(755,root,root) %{_sysconfdir}/vmware-tools/statechange.subr
286 %dir %{_sysconfdir}/vmware-tools/scripts
287 %dir %{_sysconfdir}/vmware-tools/scripts/vmware
288 %attr(755,root,root) %{_sysconfdir}/vmware-tools/scripts/vmware/network
289 %attr(755,root,root) %{_bindir}/VGAuthService
290 %attr(755,root,root) %{_bindir}/vm-support
291 %attr(755,root,root) %{_bindir}/vmhgfs-fuse
292 %attr(755,root,root) %{_bindir}/vmtoolsd
293 %attr(755,root,root) %{_bindir}/vmware-alias-import
294 %attr(755,root,root) %{_bindir}/vmware-checkvm
295 %attr(755,root,root) %{_bindir}/vmware-hgfsclient
296 %attr(755,root,root) %{_bindir}/vmware-namespace-cmd
297 %attr(755,root,root) %{_bindir}/vmware-rpctool
298 %attr(755,root,root) %{_bindir}/vmware-toolbox-cmd
299 %attr(755,root,root) %{_bindir}/vmware-xferlogs
300 %attr(755,root,root) %{_bindir}/vmware-vgauth-cmd
301 %attr(755,root,root) %{_bindir}/vmware-vgauth-smoketest
302 %attr(755,root,root) %{_bindir}/vmware-vmblock-fuse
303 %attr(755,root,root) %{_libdir}/libDeployPkg.so.*.*.*
304 %attr(755,root,root) %ghost %{_libdir}/libDeployPkg.so.0
305 %attr(755,root,root) %{_libdir}/libguestStoreClient.so.*.*.*
306 %attr(755,root,root) %ghost %{_libdir}/libguestStoreClient.so.0
307 %attr(755,root,root) %{_libdir}/libguestlib.so.*.*.*
308 %attr(755,root,root) %ghost %{_libdir}/libguestlib.so.0
309 %attr(755,root,root) %{_libdir}/libvgauth.so.*.*.*
310 %attr(755,root,root) %ghost %{_libdir}/libvgauth.so.0
311 %attr(755,root,root) %{_libdir}/libvmtools.so.*.*.*
312 %attr(755,root,root) %ghost %{_libdir}/libvmtools.so.0
313 %attr(755,root,root) %{_libdir}/libhgfs.so.*.*.*
314 %attr(755,root,root) %ghost %{_libdir}/libhgfs.so.0
315 %dir %{_libdir}/open-vm-tools
316 %dir %{_libdir}/open-vm-tools/plugins
317 %dir %{_libdir}/open-vm-tools/plugins/vmsvc
318 %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libappInfo.so
319 %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libcomponentMgr.so
320 %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libdeployPkgPlugin.so
321 %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libgdp.so
322 %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libguestInfo.so
323 %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libguestStore.so
324 %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libpowerOps.so
325 %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libresolutionKMS.so
326 %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libtimeSync.so
327 %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libvmbackup.so
328 %dir %{_libdir}/open-vm-tools/plugins/common
329 %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/common/libhgfsServer.so
330 %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/common/libvix.so
331 %attr(754,root,root) /etc/rc.d/init.d/%{name}
332 %{systemdunitdir}/vmware-vmblock-fuse.service
333 /etc/modprobe.d/%{name}.conf
334 %dir %{_datadir}/open-vm-tools
335 %dir %{_datadir}/open-vm-tools/messages
336 %lang(de) %{_datadir}/open-vm-tools/messages/de
337 %lang(en) %{_datadir}/open-vm-tools/messages/en
338 %lang(es) %{_datadir}/open-vm-tools/messages/es
339 %lang(fr) %{_datadir}/open-vm-tools/messages/fr
340 %lang(it) %{_datadir}/open-vm-tools/messages/it
341 %lang(ja) %{_datadir}/open-vm-tools/messages/ja
342 %lang(ko) %{_datadir}/open-vm-tools/messages/ko
343 %lang(zh_CN) %{_datadir}/open-vm-tools/messages/zh_CN
344 %lang(zh_TW) %{_datadir}/open-vm-tools/messages/zh_TW
347 %defattr(644,root,root,755)
348 %attr(755,root,root) %{_libdir}/libDeployPkg.so
349 %attr(755,root,root) %{_libdir}/libguestlib.so
350 %attr(755,root,root) %{_libdir}/libguestStoreClient.so
351 %attr(755,root,root) %{_libdir}/libvgauth.so
352 %attr(755,root,root) %{_libdir}/libvmtools.so
353 %attr(755,root,root) %{_libdir}/libhgfs.so
354 %dir %{_includedir}/libDeployPkg
355 %{_includedir}/libDeployPkg/*.h
356 %dir %{_includedir}/vmGuestLib
357 %{_includedir}/vmGuestLib/includeCheck.h
358 %{_includedir}/vmGuestLib/vmGuestLib.h
359 %{_includedir}/vmGuestLib/vmSessionId.h
360 %{_includedir}/vmGuestLib/vm_basic_types.h
361 %{_libdir}/libDeployPkg.la
362 %{_libdir}/libguestlib.la
363 %{_libdir}/libguestStoreClient.la
364 %{_libdir}/libvgauth.la
365 %{_libdir}/libvmtools.la
366 %{_libdir}/libhgfs.la
367 %{_pkgconfigdir}/libDeployPkg.pc
368 %{_pkgconfigdir}/vmguestlib.pc
372 %defattr(644,root,root,755)
373 %dir %{_libdir}/%{name}/componentMgr/
374 %dir %{_libdir}/%{name}/componentMgr/saltMinion/
375 %attr(755,root,root) %{_libdir}/%{name}/componentMgr/saltMinion/svtminion.sh
379 %defattr(644,root,root,755)
380 %dir %{_libdir}/%{name}/serviceDiscovery/
381 %dir %{_libdir}/%{name}/serviceDiscovery/scripts/
382 %attr(755,root,root) %{_libdir}/%{name}/plugins/vmsvc/libserviceDiscovery.so
383 %attr(755,root,root) %{_libdir}/%{name}/serviceDiscovery/scripts/get-connection-info.sh
384 %attr(755,root,root) %{_libdir}/%{name}/serviceDiscovery/scripts/get-listening-process-info.sh
385 %attr(755,root,root) %{_libdir}/%{name}/serviceDiscovery/scripts/get-listening-process-perf-metrics.sh
386 %attr(755,root,root) %{_libdir}/%{name}/serviceDiscovery/scripts/get-versions.sh
389 %defattr(644,root,root,755)
390 %{_libdir}/libDeployPkg.a
391 %{_libdir}/libguestlib.a
392 %{_libdir}/libguestStoreClient.a
393 %{_libdir}/libvgauth.a
394 %{_libdir}/libvmtools.a
399 %defattr(644,root,root,755)
400 %attr(755,root,root) %{_bindir}/vmwgfxctrl
401 %attr(755,root,root) %{_bindir}/vmware-user
402 %attr(4755,root,root) %{_bindir}/vmware-user-suid-wrapper
403 %{_sysconfdir}/xdg/autostart/vmware-user.desktop
404 %dir %{_libdir}/open-vm-tools/plugins/vmusr
405 %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmusr/libdesktopEvents.so
406 %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmusr/libdndcp.so
407 %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmusr/libresolutionSet.so
412 %defattr(644,root,root,755)
413 %doc open-vm-tools/docs/api/build/html/*
416 %files -n udev-open-vm-tools
417 %defattr(644,root,root,755)
418 /lib/udev/rules.d/99-vmware-scsi-udev.rules