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