]> git.pld-linux.org Git - packages/open-vm-tools.git/blob - open-vm-tools.spec
rpm version for noarch subpackage
[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.2.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:  fe8d53aad6bd4f4e54d4849c063c3796
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:  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
58 %endif
59 Requires:       ethtool
60 Requires:       glib2 >= 1:2.34.0
61 Requires:       libdnet
62 Requires:       libicu
63 Requires:       openssl >= 1.0.1
64 ExclusiveArch:  %{ix86} %{x8664} aarch64
65 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
66
67 %define         skip_post_check_so      libDeployPkg.so.0.0.0
68
69 %description
70 VMWare guest utilities.
71
72 %description -l pl.UTF-8
73 Narzędzia dla systemu-gościa dla VMware.
74
75 %package devel
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}
80
81 %description devel
82 Header files for open-vm-tools.
83
84 %description devel -l pl.UTF-8
85 Pliki nagłówkowe open-vm-tools.
86
87 %package        sdmp
88 Summary:        Service Discovery Plugin
89 Summary(pl.UTF-8):      Wtyczka Service Discovery
90 Group:          Libraries
91 Requires:       %{name} = %{epoch}:%{version}-%{release}
92
93 %description      sdmp
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
101 guest.
102
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.
112
113 %package        salt-minion
114 Summary:        Script file to install/uninstall salt-minion
115 Summary(pl.UTF-8):      Skrypt do instalowania/usuwania salt-minion
116 Group:          Libraries
117 Requires:       %{name} = %{epoch}:%{version}-%{release}
118 Requires:       coreutils
119 Requires:       curl
120 Requires:       gawk
121 Requires:       grep
122 Requires:       systemd
123 ExclusiveArch:  x86_64
124
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.
133
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
143
144 %package static
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}
149
150 %description static
151 Static open-vm-tools libraries.
152
153 %description static -l pl.UTF-8
154 Statyczne biblioteki open-vm-tools.
155
156 %package gui
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
163
164 %description gui
165 VMWare guest utilities. This package contains GUI part of tools.
166
167 %description gui -l pl.UTF-8
168 Narzędzia dla systemu-gościa dla VMware. Ten pakiet zawiera graficzną
169 część narzędzi.
170
171 %package apidocs
172 Summary:        VMware API documentation
173 Summary(pl.UTF-8):      Dokumentacja do API VMware
174 Group:          Documentation
175 Requires:       %{name} = %{epoch}:%{version}-%{release}
176 BuildArch:      noarch
177
178 %description apidocs
179 This package contains VMware API documentation.
180
181 %description apidocs -l pl.UTF-8
182 Ten pakiet zawiera dokumentację do API VMware.
183
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}
189 Requires:       udev-core
190
191 %description -n udev-open-vm-tools
192 UDEV rules for open-vm-tools.
193
194 %description -n udev-open-vm-tools -l pl.UTF-8
195 Reguły UDEV dla open-vm-tools.
196
197 %prep
198 %setup -q -n %{name}-stable-%{version}
199 %patch0 -p1
200 %patch1 -p1
201
202 cp %{SOURCE1} open-vm-tools/packaging
203 %{__sed} -i '1s,%{_bindir}/env bash$,%{__bash},' \
204         open-vm-tools/services/plugins/componentMgr/svtminion.sh
205
206 %build
207 cd open-vm-tools
208 rm -rf autom4te.cache
209 install -d config
210 %{__libtoolize}
211 %{__aclocal} -I m4
212 %{__automake}
213 %{__autoconf}
214 %configure2_13 \
215         --disable-tests \
216         --without-kernel-modules \
217         --enable-resolutionkms \
218         --enable-servicediscovery \
219         --enable-salt-minion \
220 %if %{with x}
221         --with-x
222 %else
223         --without-x
224 %endif
225 %{__make} \
226         CFLAGS="%{rpmcflags} -Wno-unused-but-set-variable" \
227         CXXFLAGS="%{rpmcxxflags} -std=c++11 -Wno-unused-but-set-variable"
228
229 %install
230 rm -rf $RPM_BUILD_ROOT
231
232 cd open-vm-tools
233 %{__make} install \
234         DESTDIR=$RPM_BUILD_ROOT
235
236 %{__rm} $RPM_BUILD_ROOT%{_libdir}/open-vm-tools/plugins/common/*.la
237
238 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
239
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
245
246 install -d $RPM_BUILD_ROOT%{systemdunitdir}
247 cp %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}
248
249 %clean
250 rm -rf $RPM_BUILD_ROOT
251
252 %post
253 /sbin/ldconfig
254 /sbin/chkconfig --add open-vm-tools
255 %service open-vm-tools restart "Open Virtual Machine"
256 %systemd_post vmware-vmblock-fuse.service
257
258 %post sdmp
259 %service open-vm-tools restart "Open Virtual Machine"
260
261 %preun
262 if [ "$1" = "0" ]; then
263         %service open-vm-tools stop
264         /sbin/chkconfig --del open-vm-tools
265 fi
266 %systemd_preun vmware-vmblock-fuse.service
267
268 %postun
269 /sbin/ldconfig
270 %systemd_reload
271
272 %postun sdmp
273 %service open-vm-tools restart "Open Virtual Machine"
274
275 %files
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
345
346 %files devel
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
369
370 %ifarch x86_64
371 %files salt-minion
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
376 %endif
377
378 %files sdmp
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
387
388 %files static
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
395 %{_libdir}/libhgfs.a
396
397 %if %{with x}
398 %files gui
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
408 %endif
409
410 %if %{with apidocs}
411 %files apidocs
412 %defattr(644,root,root,755)
413 %doc open-vm-tools/docs/api/build/html/*
414 %endif
415
416 %files -n udev-open-vm-tools
417 %defattr(644,root,root,755)
418 /lib/udev/rules.d/99-vmware-scsi-udev.rules
This page took 0.072685 seconds and 3 git commands to generate.