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