]> git.pld-linux.org Git - packages/open-vm-tools.git/blob - open-vm-tools.spec
- up to 12.1.0
[packages/open-vm-tools.git] / open-vm-tools.spec
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.1.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:  dd8934016f76220601ea59247f6b93a6
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:  rpmbuild(macros) >= 1.752
39 BuildRequires:  udev-devel
40 BuildRequires:  xml-security-c-devel
41 BuildRequires:  xmlsec1-devel
42 %if %{with x}
43 BuildRequires:  gdk-pixbuf2-xlib-devel >= 2.21.0
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:       gdk-pixbuf2-xlib >= 2.21.0
161 Requires:       libsigc++ >= 2.5.1
162
163 %description gui
164 VMWare guest utilities. This package contains GUI part of tools.
165
166 %description gui -l pl.UTF-8
167 Narzędzia dla systemu-gościa dla VMware. Ten pakiet zawiera graficzną
168 część narzędzi.
169
170 %package apidocs
171 Summary:        VMware API documentation
172 Summary(pl.UTF-8):      Dokumentacja do API VMware
173 Group:          Documentation
174 Requires:       %{name} = %{epoch}:%{version}-%{release}
175 BuildArch:      noarch
176
177 %description apidocs
178 This package contains VMware API documentation.
179
180 %description apidocs -l pl.UTF-8
181 Ten pakiet zawiera dokumentację do API VMware.
182
183 %package -n udev-open-vm-tools
184 Summary:        UDEV rules for open-vm-tools
185 Summary(pl.UTF-8):      Reguły UDEV dla open-vm-tools
186 Group:          Applications/System
187 Requires:       %{name} = %{epoch}:%{version}-%{release}
188 Requires:       udev-core
189
190 %description -n udev-open-vm-tools
191 UDEV rules for open-vm-tools.
192
193 %description -n udev-open-vm-tools -l pl.UTF-8
194 Reguły UDEV dla open-vm-tools.
195
196 %prep
197 %setup -q -n %{name}-stable-%{version}
198 %patch0 -p1
199 %patch1 -p1
200
201 cp %{SOURCE1} open-vm-tools/packaging
202 %{__sed} -i '1s,%{_bindir}/env bash$,%{__bash},' \
203         open-vm-tools/services/plugins/componentMgr/svtminion.sh
204
205 %build
206 cd open-vm-tools
207 rm -rf autom4te.cache
208 install -d config
209 %{__libtoolize}
210 %{__aclocal} -I m4
211 %{__automake}
212 %{__autoconf}
213 %configure2_13 \
214         --disable-tests \
215         --without-kernel-modules \
216         --enable-resolutionkms \
217         --enable-servicediscovery \
218         --enable-salt-minion \
219 %if %{with x}
220         --with-x
221 %else
222         --without-x
223 %endif
224 %{__make} \
225         CFLAGS="%{rpmcflags} -Wno-unused-but-set-variable" \
226         CXXFLAGS="%{rpmcxxflags} -std=c++11 -Wno-unused-but-set-variable"
227
228 %install
229 rm -rf $RPM_BUILD_ROOT
230
231 cd open-vm-tools
232 %{__make} install \
233         DESTDIR=$RPM_BUILD_ROOT
234
235 %{__rm} $RPM_BUILD_ROOT%{_libdir}/open-vm-tools/plugins/common/*.la
236
237 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
238
239 install -d $RPM_BUILD_ROOT/etc/{modprobe.d,rc.d/init.d,xdg/autostart}
240 cp %{SOURCE2} $RPM_BUILD_ROOT/etc/modprobe.d/%{name}.conf
241 cp %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
242 cp %{SOURCE4} $RPM_BUILD_ROOT/etc/xdg/autostart/vmware-user.desktop
243 cp %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/vmtoolsd
244
245 install -d $RPM_BUILD_ROOT%{systemdunitdir}
246 cp %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}
247
248 %clean
249 rm -rf $RPM_BUILD_ROOT
250
251 %post
252 /sbin/ldconfig
253 /sbin/chkconfig --add open-vm-tools
254 %service open-vm-tools restart "Open Virtual Machine"
255 %systemd_post vmware-vmblock-fuse.service
256
257 %post sdmp
258 %service open-vm-tools restart "Open Virtual Machine"
259
260 %preun
261 if [ "$1" = "0" ]; then
262         %service open-vm-tools stop
263         /sbin/chkconfig --del open-vm-tools
264 fi
265 %systemd_preun vmware-vmblock-fuse.service
266
267 %postun
268 /sbin/ldconfig
269 %systemd_reload
270
271 %postun sdmp
272 %service open-vm-tools restart "Open Virtual Machine"
273
274 %files
275 %defattr(644,root,root,755)
276 %doc README.md ReleaseNotes.md open-vm-tools/AUTHORS open-vm-tools/ChangeLog open-vm-tools/README open-vm-tools/packaging
277 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/vmtoolsd
278 %dir %{_sysconfdir}/vmware-tools
279 %attr(755,root,root) %{_sysconfdir}/vmware-tools/*vm-*
280 %{_sysconfdir}/vmware-tools/tools.conf.example
281 %{_sysconfdir}/vmware-tools/vgauth.conf
282 %dir %{_sysconfdir}/vmware-tools/vgauth
283 %{_sysconfdir}/vmware-tools/vgauth/schemas
284 %attr(755,root,root) %{_sysconfdir}/vmware-tools/statechange.subr
285 %dir %{_sysconfdir}/vmware-tools/scripts
286 %dir %{_sysconfdir}/vmware-tools/scripts/vmware
287 %attr(755,root,root) %{_sysconfdir}/vmware-tools/scripts/vmware/network
288 %attr(755,root,root) %{_bindir}/VGAuthService
289 %attr(755,root,root) %{_bindir}/vm-support
290 %attr(755,root,root) %{_bindir}/vmhgfs-fuse
291 %attr(755,root,root) %{_bindir}/vmtoolsd
292 %attr(755,root,root) %{_bindir}/vmware-alias-import
293 %attr(755,root,root) %{_bindir}/vmware-checkvm
294 %attr(755,root,root) %{_bindir}/vmware-hgfsclient
295 %attr(755,root,root) %{_bindir}/vmware-namespace-cmd
296 %attr(755,root,root) %{_bindir}/vmware-rpctool
297 %attr(755,root,root) %{_bindir}/vmware-toolbox-cmd
298 %attr(755,root,root) %{_bindir}/vmware-xferlogs
299 %attr(755,root,root) %{_bindir}/vmware-vgauth-cmd
300 %attr(755,root,root) %{_bindir}/vmware-vgauth-smoketest
301 %attr(755,root,root) %{_bindir}/vmware-vmblock-fuse
302 %attr(755,root,root) %{_libdir}/libDeployPkg.so.*.*.*
303 %attr(755,root,root) %ghost %{_libdir}/libDeployPkg.so.0
304 %attr(755,root,root) %{_libdir}/libguestStoreClient.so.*.*.*
305 %attr(755,root,root) %ghost %{_libdir}/libguestStoreClient.so.0
306 %attr(755,root,root) %{_libdir}/libguestlib.so.*.*.*
307 %attr(755,root,root) %ghost %{_libdir}/libguestlib.so.0
308 %attr(755,root,root) %{_libdir}/libvgauth.so.*.*.*
309 %attr(755,root,root) %ghost %{_libdir}/libvgauth.so.0
310 %attr(755,root,root) %{_libdir}/libvmtools.so.*.*.*
311 %attr(755,root,root) %ghost %{_libdir}/libvmtools.so.0
312 %attr(755,root,root) %{_libdir}/libhgfs.so.*.*.*
313 %attr(755,root,root) %ghost %{_libdir}/libhgfs.so.0
314 %dir %{_libdir}/open-vm-tools
315 %dir %{_libdir}/open-vm-tools/plugins
316 %dir %{_libdir}/open-vm-tools/plugins/vmsvc
317 %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libappInfo.so
318 %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libcomponentMgr.so
319 %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libdeployPkgPlugin.so
320 %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libgdp.so
321 %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libguestInfo.so
322 %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libguestStore.so
323 %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libpowerOps.so
324 %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libresolutionKMS.so
325 %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libtimeSync.so
326 %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libvmbackup.so
327 %dir %{_libdir}/open-vm-tools/plugins/common
328 %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/common/libhgfsServer.so
329 %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/common/libvix.so
330 %attr(754,root,root) /etc/rc.d/init.d/%{name}
331 %{systemdunitdir}/vmware-vmblock-fuse.service
332 /etc/modprobe.d/%{name}.conf
333 %dir %{_datadir}/open-vm-tools
334 %dir %{_datadir}/open-vm-tools/messages
335 %lang(de) %{_datadir}/open-vm-tools/messages/de
336 %lang(en) %{_datadir}/open-vm-tools/messages/en
337 %lang(es) %{_datadir}/open-vm-tools/messages/es
338 %lang(fr) %{_datadir}/open-vm-tools/messages/fr
339 %lang(it) %{_datadir}/open-vm-tools/messages/it
340 %lang(ja) %{_datadir}/open-vm-tools/messages/ja
341 %lang(ko) %{_datadir}/open-vm-tools/messages/ko
342 %lang(zh_CN) %{_datadir}/open-vm-tools/messages/zh_CN
343 %lang(zh_TW) %{_datadir}/open-vm-tools/messages/zh_TW
344
345 %files devel
346 %defattr(644,root,root,755)
347 %attr(755,root,root) %{_libdir}/libDeployPkg.so
348 %attr(755,root,root) %{_libdir}/libguestlib.so
349 %attr(755,root,root) %{_libdir}/libguestStoreClient.so
350 %attr(755,root,root) %{_libdir}/libvgauth.so
351 %attr(755,root,root) %{_libdir}/libvmtools.so
352 %attr(755,root,root) %{_libdir}/libhgfs.so
353 %dir %{_includedir}/libDeployPkg
354 %{_includedir}/libDeployPkg/*.h
355 %dir %{_includedir}/vmGuestLib
356 %{_includedir}/vmGuestLib/includeCheck.h
357 %{_includedir}/vmGuestLib/vmGuestLib.h
358 %{_includedir}/vmGuestLib/vmSessionId.h
359 %{_includedir}/vmGuestLib/vm_basic_types.h
360 %{_libdir}/libDeployPkg.la
361 %{_libdir}/libguestlib.la
362 %{_libdir}/libguestStoreClient.la
363 %{_libdir}/libvgauth.la
364 %{_libdir}/libvmtools.la
365 %{_libdir}/libhgfs.la
366 %{_pkgconfigdir}/libDeployPkg.pc
367 %{_pkgconfigdir}/vmguestlib.pc
368
369 %ifarch x86_64
370 %files salt-minion
371 %defattr(644,root,root,755)
372 %dir %{_libdir}/%{name}/componentMgr/
373 %dir %{_libdir}/%{name}/componentMgr/saltMinion/
374 %attr(755,root,root) %{_libdir}/%{name}/componentMgr/saltMinion/svtminion.sh
375 %endif
376
377 %files sdmp
378 %defattr(644,root,root,755)
379 %dir %{_libdir}/%{name}/serviceDiscovery/
380 %dir %{_libdir}/%{name}/serviceDiscovery/scripts/
381 %attr(755,root,root) %{_libdir}/%{name}/plugins/vmsvc/libserviceDiscovery.so
382 %attr(755,root,root) %{_libdir}/%{name}/serviceDiscovery/scripts/get-connection-info.sh
383 %attr(755,root,root) %{_libdir}/%{name}/serviceDiscovery/scripts/get-listening-process-info.sh
384 %attr(755,root,root) %{_libdir}/%{name}/serviceDiscovery/scripts/get-listening-process-perf-metrics.sh
385 %attr(755,root,root) %{_libdir}/%{name}/serviceDiscovery/scripts/get-versions.sh
386
387 %files static
388 %defattr(644,root,root,755)
389 %{_libdir}/libDeployPkg.a
390 %{_libdir}/libguestlib.a
391 %{_libdir}/libguestStoreClient.a
392 %{_libdir}/libvgauth.a
393 %{_libdir}/libvmtools.a
394 %{_libdir}/libhgfs.a
395
396 %if %{with x}
397 %files gui
398 %defattr(644,root,root,755)
399 %attr(755,root,root) %{_bindir}/vmwgfxctrl
400 %attr(755,root,root) %{_bindir}/vmware-user
401 %attr(4755,root,root) %{_bindir}/vmware-user-suid-wrapper
402 %{_sysconfdir}/xdg/autostart/vmware-user.desktop
403 %dir %{_libdir}/open-vm-tools/plugins/vmusr
404 %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmusr/libdesktopEvents.so
405 %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmusr/libdndcp.so
406 %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmusr/libresolutionSet.so
407 %endif
408
409 %if %{with apidocs}
410 %files apidocs
411 %defattr(644,root,root,755)
412 %doc open-vm-tools/docs/api/build/html/*
413 %endif
414
415 %files -n udev-open-vm-tools
416 %defattr(644,root,root,755)
417 /lib/udev/rules.d/99-vmware-scsi-udev.rules
This page took 0.077207 seconds and 3 git commands to generate.