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