]>
Commit | Line | Data |
---|---|---|
9a836018 ER |
1 | # TODO |
2 | # - unpackaged files: | |
3 | # /usr/bin/vmware-vgauth-smoketest | |
4 | # /usr/share/open-vm-tools/tests/libtestDebug.so | |
5 | # /usr/share/open-vm-tools/tests/libtestPlugin.so | |
8bb2c909 JB |
6 | # |
7 | # Conditional build: | |
c1896472 | 8 | %bcond_without apidocs # without API docs |
64a5a67b | 9 | %bcond_without x # build with X11 support |
ab695592 | 10 | |
53ac4062 | 11 | Summary: VMWare guest utilities |
d4ade506 | 12 | Summary(pl.UTF-8): Narzędzia dla systemu-gościa dla VMware |
64a5a67b | 13 | Name: open-vm-tools |
f6330f72 | 14 | Version: 11.3.0 |
eef9ab50 | 15 | Release: 1 |
cdaec346 | 16 | Epoch: 1 |
4aca9bae | 17 | License: GPL |
d4ade506 | 18 | Group: Applications/System |
64a5a67b | 19 | Source0: https://github.com/vmware/open-vm-tools/archive/stable-%{version}.tar.gz |
f6330f72 | 20 | # Source0-md5: 9b138316060f6ae39f58f7377caea31d |
64a5a67b JP |
21 | Source1: %{name}-packaging |
22 | Source2: %{name}-modprobe.d | |
23 | Source3: %{name}-init | |
24 | Source4: %{name}-vmware-user.desktop | |
25 | Source5: vmware-vmblock-fuse.service | |
70df2ca8 | 26 | Source6: vmtoolsd.pamd |
64a5a67b | 27 | Patch0: %{name}-dnd.patch |
5615e731 | 28 | Patch1: iopl.patch |
3174ac66 | 29 | URL: https://github.com/vmware/open-vm-tools |
8367fe7d | 30 | BuildRequires: autoconf |
d474f0cc | 31 | BuildRequires: doxygen |
31aaf75c | 32 | BuildRequires: glib2-devel >= 1:2.34.0 |
22bd0e3c | 33 | BuildRequires: libdnet-devel |
31aaf75c | 34 | BuildRequires: libdrm-devel |
bf05980f | 35 | BuildRequires: libfuse-devel |
22bd0e3c | 36 | BuildRequires: libicu-devel |
92fe3ab6 | 37 | BuildRequires: libmspack-devel |
b2bc54b9 | 38 | BuildRequires: libstdc++-devel |
7c5d3394 | 39 | BuildRequires: libtirpc-devel |
31aaf75c | 40 | BuildRequires: openssl-devel >= 1.0.1 |
f497b93a | 41 | BuildRequires: pam-devel |
22bd0e3c | 42 | BuildRequires: pkgconfig |
3333262c | 43 | BuildRequires: rpcsvc-proto |
def82c5c | 44 | BuildRequires: rpmbuild(macros) >= 1.752 |
31aaf75c | 45 | BuildRequires: udev-devel |
6d711d9a | 46 | BuildRequires: xml-security-c-devel |
3333262c | 47 | BuildRequires: xmlsec1-devel |
c1896472 | 48 | %if %{with x} |
31aaf75c JP |
49 | BuildRequires: gdk-pixbuf2-xlib-devel >= 2.21.0 |
50 | BuildRequires: gtk+3-devel >= 3.0.0 | |
51 | BuildRequires: gtkmm3-devel >= 3.0.0 | |
52 | BuildRequires: libsigc++-devel >= 2.5.1 | |
53 | BuildRequires: xorg-lib-libICE-devel | |
d474f0cc | 54 | BuildRequires: xorg-lib-libSM-devel |
22bd0e3c | 55 | BuildRequires: xorg-lib-libX11-devel |
31aaf75c JP |
56 | BuildRequires: xorg-lib-libXcomposite-devel |
57 | BuildRequires: xorg-lib-libXext-devel | |
58 | BuildRequires: xorg-lib-libXi-devel | |
22bd0e3c | 59 | BuildRequires: xorg-lib-libXinerama-devel |
60 | BuildRequires: xorg-lib-libXrandr-devel | |
31aaf75c | 61 | BuildRequires: xorg-lib-libXrender-devel |
22bd0e3c | 62 | BuildRequires: xorg-lib-libXtst-devel |
c1896472 | 63 | %endif |
f4a5aeb8 | 64 | Requires: ethtool |
31aaf75c | 65 | Requires: glib2 >= 1:2.34.0 |
85f364e1 | 66 | Requires: libdnet |
67 | Requires: libicu | |
31aaf75c | 68 | Requires: openssl >= 1.0.1 |
dd98754b | 69 | ExclusiveArch: %{ix86} %{x8664} aarch64 |
64a5a67b JP |
70 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
71 | ||
72 | %define skip_post_check_so libDeployPkg.so.0.0.0 | |
4aca9bae | 73 | |
74 | %description | |
d4ade506 | 75 | VMWare guest utilities. |
4aca9bae | 76 | |
77 | %description -l pl.UTF-8 | |
d4ade506 | 78 | Narzędzia dla systemu-gościa dla VMware. |
4aca9bae | 79 | |
abc2bafd SP |
80 | %package devel |
81 | Summary: Header files for open-vm-tools | |
82 | Summary(pl.UTF-8): Pliki nagłówkowe open-vm-tools | |
83 | Group: Development/Libraries | |
64a5a67b | 84 | Requires: %{name} = %{epoch}:%{version}-%{release} |
abc2bafd SP |
85 | |
86 | %description devel | |
87 | Header files for open-vm-tools. | |
88 | ||
89 | %description devel -l pl.UTF-8 | |
90 | Pliki nagłówkowe open-vm-tools. | |
91 | ||
54721943 MB |
92 | %package static |
93 | Summary: Static open-vm-tools libraries | |
94 | Summary(pl.UTF-8): Statyczne biblioteki open-vm-tools | |
95 | Group: Development/Libraries | |
64a5a67b | 96 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
54721943 MB |
97 | |
98 | %description static | |
99 | Static open-vm-tools libraries. | |
100 | ||
101 | %description static -l pl.UTF-8 | |
102 | Statyczne biblioteki open-vm-tools. | |
103 | ||
f4a5aeb8 | 104 | %package gui |
ca69b5c9 | 105 | Summary: VMware guest utitities |
f4a5aeb8 | 106 | Summary(pl.UTF-8): Narzędzia dla systemu-gościa dla VMware. |
107 | Group: Applications/System | |
64a5a67b | 108 | Requires: %{name} = %{epoch}:%{version}-%{release} |
31aaf75c JP |
109 | Requires: gdk-pixbuf2-xlib >= 2.21.0 |
110 | Requires: libsigc++ >= 2.5.1 | |
f4a5aeb8 | 111 | |
112 | %description gui | |
113 | VMWare guest utilities. This package contains GUI part of tools. | |
114 | ||
115 | %description gui -l pl.UTF-8 | |
ca69b5c9 ER |
116 | Narzędzia dla systemu-gościa dla VMware. Ten pakiet zawiera graficzną |
117 | część narzędzi. | |
f4a5aeb8 | 118 | |
c1896472 AO |
119 | %package apidocs |
120 | Summary: VMware API documentation | |
121 | Summary(pl.UTF-8): Dokumentacja do API VMware | |
122 | Group: Documentation | |
64a5a67b | 123 | Requires: %{name} = %{epoch}:%{version}-%{release} |
e76d8f3e | 124 | BuildArch: noarch |
c1896472 AO |
125 | |
126 | %description apidocs | |
127 | This package contains VMware API documentation. | |
128 | ||
129 | %description apidocs -l pl.UTF-8 | |
130 | Ten pakiet zawiera dokumentację do API VMware. | |
131 | ||
92fe3ab6 JP |
132 | %package -n udev-open-vm-tools |
133 | Summary: UDEV rules for open-vm-tools | |
134 | Summary(pl.UTF-8): Reguły UDEV dla open-vm-tools | |
135 | Group: Applications/System | |
136 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
137 | Requires: udev-core | |
138 | ||
139 | %description -n udev-open-vm-tools | |
140 | UDEV rules for open-vm-tools. | |
141 | ||
142 | %description -n udev-open-vm-tools -l pl.UTF-8 | |
143 | Reguły UDEV dla open-vm-tools. | |
144 | ||
4aca9bae | 145 | %prep |
64a5a67b | 146 | %setup -q -n %{name}-stable-%{version} |
01d05bd9 | 147 | %patch0 -p1 |
5615e731 | 148 | %patch1 -p1 |
d54a43a0 | 149 | |
64a5a67b | 150 | cp %{SOURCE1} open-vm-tools/packaging |
4aca9bae | 151 | |
152 | %build | |
64a5a67b | 153 | cd open-vm-tools |
1c445e6b | 154 | rm -rf autom4te.cache |
4241d495 JR |
155 | install -d config |
156 | %{__libtoolize} | |
157 | %{__aclocal} -I m4 | |
158 | %{__automake} | |
a95329f5 | 159 | %{__autoconf} |
22bd0e3c | 160 | %configure2_13 \ |
7c5d3394 | 161 | --disable-tests \ |
c1896472 AO |
162 | --without-kernel-modules \ |
163 | %if %{with x} | |
164 | --with-x | |
165 | %else | |
166 | --without-x | |
167 | %endif | |
279724ba | 168 | %{__make} \ |
0406df1b JR |
169 | CFLAGS="%{rpmcflags} -Wno-unused-but-set-variable" \ |
170 | CXXFLAGS="%{rpmcxxflags} -std=c++11 -Wno-unused-but-set-variable" | |
22bd0e3c | 171 | |
4aca9bae | 172 | %install |
173 | rm -rf $RPM_BUILD_ROOT | |
4aca9bae | 174 | |
64a5a67b | 175 | cd open-vm-tools |
4aca9bae | 176 | %{__make} install \ |
177 | DESTDIR=$RPM_BUILD_ROOT | |
178 | ||
f9019c2c | 179 | %{__rm} $RPM_BUILD_ROOT/sbin/mount.vmhgfs |
22bd0e3c | 180 | ln -sf %{_sbindir}/mount.vmhgfs $RPM_BUILD_ROOT/sbin/mount.vmhgfs |
f9019c2c | 181 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/open-vm-tools/plugins/common/*.la |
f4a5aeb8 | 182 | |
3333262c | 183 | #install -d docs/%{name}-%{version}/api |
c1896472 | 184 | #mv docs/api/build/html docs/%{name}-%{version}/api |
3333262c | 185 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} |
c1896472 | 186 | |
f4a5aeb8 | 187 | install -d $RPM_BUILD_ROOT/etc/{modprobe.d,rc.d/init.d,xdg/autostart} |
64a5a67b JP |
188 | cp %{SOURCE2} $RPM_BUILD_ROOT/etc/modprobe.d/%{name}.conf |
189 | cp %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} | |
f4a5aeb8 | 190 | cp %{SOURCE4} $RPM_BUILD_ROOT/etc/xdg/autostart/vmware-user.desktop |
70df2ca8 | 191 | cp %{SOURCE6} $RPM_BUILD_ROOT/etc/pam.d/vmtoolsd |
64a5a67b JP |
192 | |
193 | install -d $RPM_BUILD_ROOT%{systemdunitdir} | |
194 | cp %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir} | |
22bd0e3c | 195 | |
4aca9bae | 196 | %clean |
197 | rm -rf $RPM_BUILD_ROOT | |
198 | ||
f4a5aeb8 | 199 | %post |
54721943 | 200 | /sbin/ldconfig |
f4a5aeb8 | 201 | /sbin/chkconfig --add open-vm-tools |
202 | %service open-vm-tools restart "Open Virtual Machine" | |
64a5a67b | 203 | %systemd_post vmware-vmblock-fuse.service |
f4a5aeb8 | 204 | |
205 | %preun | |
206 | if [ "$1" = "0" ]; then | |
207 | %service open-vm-tools stop | |
208 | /sbin/chkconfig --del open-vm-tools | |
209 | fi | |
64a5a67b JP |
210 | %systemd_preun vmware-vmblock-fuse.service |
211 | ||
f4a5aeb8 | 212 | |
5615e731 BS |
213 | %postun |
214 | /sbin/ldconfig | |
64a5a67b | 215 | %systemd_reload |
22bd0e3c | 216 | |
4aca9bae | 217 | %files |
218 | %defattr(644,root,root,755) | |
5615e731 | 219 | %doc README.md ReleaseNotes.md open-vm-tools/AUTHORS open-vm-tools/ChangeLog open-vm-tools/README open-vm-tools/packaging |
66ec7164 | 220 | %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/vmtoolsd |
3333262c KM |
221 | %dir %{_sysconfdir}/vmware-tools |
222 | %attr(755,root,root) %{_sysconfdir}/vmware-tools/*vm-* | |
223 | %{_sysconfdir}/vmware-tools/tools.conf.example | |
224 | %{_sysconfdir}/vmware-tools/vgauth.conf | |
225 | %dir %{_sysconfdir}/vmware-tools/vgauth | |
226 | %{_sysconfdir}/vmware-tools/vgauth/schemas | |
227 | %attr(755,root,root) %{_sysconfdir}/vmware-tools/statechange.subr | |
228 | %dir %{_sysconfdir}/vmware-tools/scripts | |
229 | %dir %{_sysconfdir}/vmware-tools/scripts/vmware | |
230 | %attr(755,root,root) %{_sysconfdir}/vmware-tools/scripts/vmware/network | |
8bb2c909 | 231 | %attr(755,root,root) /sbin/mount.vmhgfs |
64a5a67b | 232 | %attr(755,root,root) %{_bindir}/VGAuthService |
7296ab94 | 233 | %attr(755,root,root) %{_bindir}/vm-support |
64a5a67b | 234 | %attr(755,root,root) %{_bindir}/vmhgfs-fuse |
69a345d9 | 235 | %attr(755,root,root) %{_bindir}/vmtoolsd |
3333262c | 236 | %attr(755,root,root) %{_bindir}/vmware-alias-import |
22bd0e3c | 237 | %attr(755,root,root) %{_bindir}/vmware-checkvm |
238 | %attr(755,root,root) %{_bindir}/vmware-hgfsclient | |
64a5a67b | 239 | %attr(755,root,root) %{_bindir}/vmware-namespace-cmd |
66ec7164 | 240 | %attr(755,root,root) %{_bindir}/vmware-rpctool |
22bd0e3c | 241 | %attr(755,root,root) %{_bindir}/vmware-toolbox-cmd |
22bd0e3c | 242 | %attr(755,root,root) %{_bindir}/vmware-xferlogs |
64a5a67b | 243 | %attr(755,root,root) %{_bindir}/vmware-vgauth-cmd |
5615e731 | 244 | %attr(755,root,root) %{_bindir}/vmware-vgauth-smoketest |
cd7044b8 | 245 | %attr(755,root,root) %{_bindir}/vmware-vmblock-fuse |
22bd0e3c | 246 | %attr(755,root,root) %{_sbindir}/mount.vmhgfs |
64a5a67b JP |
247 | %attr(755,root,root) %{_libdir}/libDeployPkg.so.*.*.* |
248 | %attr(755,root,root) %ghost %{_libdir}/libDeployPkg.so.0 | |
3333262c KM |
249 | %attr(755,root,root) %{_libdir}/libguestStoreClient.so.*.*.* |
250 | %attr(755,root,root) %ghost %{_libdir}/libguestStoreClient.so.0 | |
54721943 MB |
251 | %attr(755,root,root) %{_libdir}/libguestlib.so.*.*.* |
252 | %attr(755,root,root) %ghost %{_libdir}/libguestlib.so.0 | |
64a5a67b JP |
253 | %attr(755,root,root) %{_libdir}/libvgauth.so.*.*.* |
254 | %attr(755,root,root) %ghost %{_libdir}/libvgauth.so.0 | |
54721943 MB |
255 | %attr(755,root,root) %{_libdir}/libvmtools.so.*.*.* |
256 | %attr(755,root,root) %ghost %{_libdir}/libvmtools.so.0 | |
66d8e69c JK |
257 | %attr(755,root,root) %{_libdir}/libhgfs.so.*.*.* |
258 | %attr(755,root,root) %ghost %{_libdir}/libhgfs.so.0 | |
f8d4c3d1 | 259 | %dir %{_libdir}/open-vm-tools |
20e58560 SP |
260 | %dir %{_libdir}/open-vm-tools/plugins |
261 | %dir %{_libdir}/open-vm-tools/plugins/vmsvc | |
7296ab94 | 262 | %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libappInfo.so |
64a5a67b | 263 | %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libdeployPkgPlugin.so |
3333262c | 264 | %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libgdp.so |
69a345d9 | 265 | %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libguestInfo.so |
3333262c | 266 | %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libguestStore.so |
69a345d9 | 267 | %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libpowerOps.so |
3174ac66 | 268 | %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libresolutionKMS.so |
69a345d9 | 269 | %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libtimeSync.so |
69a345d9 | 270 | %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmsvc/libvmbackup.so |
df165e11 | 271 | %dir %{_libdir}/open-vm-tools/plugins/common |
53ac4062 SP |
272 | %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/common/libhgfsServer.so |
273 | %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/common/libvix.so | |
64a5a67b JP |
274 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |
275 | %{systemdunitdir}/vmware-vmblock-fuse.service | |
276 | /etc/modprobe.d/%{name}.conf | |
27597e09 | 277 | %dir %{_datadir}/open-vm-tools |
124deaa8 JR |
278 | %dir %{_datadir}/open-vm-tools/messages |
279 | %lang(de) %{_datadir}/open-vm-tools/messages/de | |
64a5a67b JP |
280 | %lang(en) %{_datadir}/open-vm-tools/messages/en |
281 | %lang(es) %{_datadir}/open-vm-tools/messages/es | |
282 | %lang(fr) %{_datadir}/open-vm-tools/messages/fr | |
283 | %lang(it) %{_datadir}/open-vm-tools/messages/it | |
124deaa8 | 284 | %lang(ja) %{_datadir}/open-vm-tools/messages/ja |
83f92d13 | 285 | %lang(ko) %{_datadir}/open-vm-tools/messages/ko |
124deaa8 | 286 | %lang(zh_CN) %{_datadir}/open-vm-tools/messages/zh_CN |
64a5a67b | 287 | %lang(zh_TW) %{_datadir}/open-vm-tools/messages/zh_TW |
f4a5aeb8 | 288 | |
54721943 MB |
289 | %files devel |
290 | %defattr(644,root,root,755) | |
64a5a67b | 291 | %attr(755,root,root) %{_libdir}/libDeployPkg.so |
54721943 | 292 | %attr(755,root,root) %{_libdir}/libguestlib.so |
3333262c | 293 | %attr(755,root,root) %{_libdir}/libguestStoreClient.so |
64a5a67b | 294 | %attr(755,root,root) %{_libdir}/libvgauth.so |
54721943 | 295 | %attr(755,root,root) %{_libdir}/libvmtools.so |
53ac4062 | 296 | %attr(755,root,root) %{_libdir}/libhgfs.so |
64a5a67b JP |
297 | %dir %{_includedir}/libDeployPkg |
298 | %{_includedir}/libDeployPkg/*.h | |
53ac4062 SP |
299 | %dir %{_includedir}/vmGuestLib |
300 | %{_includedir}/vmGuestLib/includeCheck.h | |
301 | %{_includedir}/vmGuestLib/vmGuestLib.h | |
302 | %{_includedir}/vmGuestLib/vmSessionId.h | |
303 | %{_includedir}/vmGuestLib/vm_basic_types.h | |
64a5a67b | 304 | %{_libdir}/libDeployPkg.la |
54721943 | 305 | %{_libdir}/libguestlib.la |
3333262c | 306 | %{_libdir}/libguestStoreClient.la |
64a5a67b | 307 | %{_libdir}/libvgauth.la |
54721943 | 308 | %{_libdir}/libvmtools.la |
53ac4062 | 309 | %{_libdir}/libhgfs.la |
64a5a67b | 310 | %{_pkgconfigdir}/libDeployPkg.pc |
53ac4062 | 311 | %{_pkgconfigdir}/vmguestlib.pc |
54721943 MB |
312 | |
313 | %files static | |
314 | %defattr(644,root,root,755) | |
64a5a67b | 315 | %{_libdir}/libDeployPkg.a |
54721943 | 316 | %{_libdir}/libguestlib.a |
3333262c | 317 | %{_libdir}/libguestStoreClient.a |
64a5a67b | 318 | %{_libdir}/libvgauth.a |
54721943 | 319 | %{_libdir}/libvmtools.a |
53ac4062 | 320 | %{_libdir}/libhgfs.a |
54721943 | 321 | |
3174ac66 | 322 | %if %{with x} |
f4a5aeb8 | 323 | %files gui |
324 | %defattr(644,root,root,755) | |
3333262c | 325 | %attr(755,root,root) %{_bindir}/vmwgfxctrl |
3174ac66 AG |
326 | %attr(755,root,root) %{_bindir}/vmware-user |
327 | %attr(4755,root,root) %{_bindir}/vmware-user-suid-wrapper | |
69a345d9 | 328 | %{_sysconfdir}/xdg/autostart/vmware-user.desktop |
3174ac66 AG |
329 | %dir %{_libdir}/open-vm-tools/plugins/vmusr |
330 | %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmusr/libdesktopEvents.so | |
331 | %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmusr/libdndcp.so | |
332 | %attr(755,root,root) %{_libdir}/open-vm-tools/plugins/vmusr/libresolutionSet.so | |
333 | %endif | |
c1896472 AO |
334 | |
335 | %if %{with apidocs} | |
336 | %files apidocs | |
337 | %defattr(644,root,root,755) | |
64a5a67b | 338 | %doc open-vm-tools/docs/api/build/html/* |
20c619a7 | 339 | %endif |
92fe3ab6 JP |
340 | |
341 | %files -n udev-open-vm-tools | |
342 | %defattr(644,root,root,755) | |
343 | /lib/udev/rules.d/99-vmware-scsi-udev.rules |