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