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