8ed012f27213890ccdec2755b789cbefcb351482
[packages/VMware-server.git] / VMware-server.spec
1 # TODO
2 # - make vmware-config.pl work
3 # - sane permissions
4 # - switch to proper %{_libdir} when done for 64bit arch
5 # - use system java, tomcat, etc packages
6 # - package webAccess elsewhere, seems noarch mostly (but if using system pkgs for java/tomcat leave it still huge)
7 # - put things back to subpackages (if makes sense)
8 #
9 # Conditional build:
10 %bcond_without  dist_kernel     # without distribution kernel
11 %bcond_without  kernel          # don't build kernel modules
12 %bcond_without  userspace       # don't build userspace utilities
13 %bcond_without  internal_libs   # internal libs stuff
14 %bcond_without  doc # package huge docs
15 %bcond_with     verbose         # verbose build (V=1)
16 #
17 %include        /usr/lib/rpm/macros.perl
18 #
19 %define         ver     2.0
20 %define         subver  84186
21 %define         rel     0.6
22 %{expand:%%global       ccver   %(%{__cc} -dumpversion)}
23 #
24 Summary:        VMware Server
25 Summary(pl.UTF-8):      VMware Server - wirtualna platforma dla stacji roboczej
26 Name:           VMware-server
27 Version:        %{ver}.%{subver}
28 Release:        %{rel}
29 License:        custom, non-distributable
30 Group:          Applications/Emulators
31 # http://www.vmware.com/beta/server/download.html
32 Source0:        http://download3.vmware.com/software/vmserver/%{name}-e.x.p-%{subver}.i386.tar.gz
33 # NoSource0-md5:        30f20c55a76ba46543df0e80bd21affc
34 Source1:        http://download3.vmware.com/software/vmserver/%{name}-e.x.p-%{subver}.x86_64.tar.gz
35 # NoSource1-md5:        31dcec2889bcac228f76f0914e89469b
36 Source2:        http://download3.vmware.com/software/vmserver/VMware-vix-e.x.p-%{subver}.i386.tar.gz
37 # NoSource2-md5:        d81db3079785a7454902aed222e611ad
38 Source3:        http://download3.vmware.com/software/vmserver/VMware-vix-e.x.p-%{subver}.x86_64.tar.gz
39 # NoSource3-md5:        bc7bdf81d14887861b4f5413e78fd539
40 Source4:        %{name}.png
41 Source5:        %{name}.desktop
42 Source6:        %{name}-authd.rc-inetd
43 Source7:        %{name}-nat.conf
44 Source8:        %{name}-dhcpd.conf
45 Source9:        %{name}-dhcpd-hostonly.conf
46 Source10:       %{name}-parse-locations.pl
47 Source11:       %{name}-libs
48 Source12:       %{name}-locations
49 Patch0:         %{name}-config-rc-inetd.patch
50 Patch1:         %{name}-config-kernel.patch
51 Patch2:         %{name}-config-pam.patch
52 Patch3:         %{name}-initscript.patch
53 NoSource:       0
54 NoSource:       1
55 NoSource:       2
56 NoSource:       3
57 URL:            http://www.vmware.com/
58 %{?with_dist_kernel:BuildRequires:      kernel%{_alt_kernel}-module-build >= 3:2.6.16}
59 BuildRequires:  libstdc++-devel
60 BuildRequires:  rpm-perlprov
61 BuildRequires:  rpmbuild(macros) >= 1.449
62 BuildRequires:  sed >= 4.0
63 Requires:       %{name}-isoimages = %{version}
64 #Requires:      libgnomecanvasmm
65 #Requires:      libsexy
66 #Requires:      libsexymm
67 ExclusiveArch:  %{ix86} %{x8664}
68 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
69
70 %define         _noautoprovfiles %{_libdir}/vmware*/lib/.*\.so.*
71 # TMP hack to compare with upstream rpm
72 %define         _libdir         %{_prefix}/lib
73 %define         _docdir         %{_defaultdocdir}/vmware
74
75 %define         sonamedeps      %(cat %{SOURCE11} | xargs)
76
77 %define         _noautoprov             %sonamedeps
78 %define         _noautoreq              %sonamedeps
79
80 %description
81 VMware Server Virtual Platform is a thin software layer that allows
82 multiple guest operating systems to run concurrently on a single
83 standard PC, without repartitioning or rebooting, and without
84 significant loss of performance.
85
86 %description -l pl.UTF-8
87 VMware Server Virtual Platform to cienka warstwa oprogramowania
88 pozwalająca na jednoczesne działanie wielu gościnnych systemów
89 operacyjnych na jednym zwykłym PC, bez repartycjonowania ani
90 rebootowania, bez znacznej utraty wydajności.
91
92 %package debug
93 Summary:        VMware debug utility
94 Summary(pl.UTF-8):      Narzędzie VMware do odpluskwiania
95 Group:          Applications/Emulators
96 Requires:       %{name} = %{version}-%{release}
97
98 %description debug
99 VMware debug utility.
100
101 %description debug -l pl.UTF-8
102 Narzędzie VMware do odpluskwiania.
103
104 %package console
105 Summary:        VMware console utility
106 Summary(pl.UTF-8):      Konsola VMware
107 Group:          Applications/Emulators
108 Requires:       %{name} = %{version}-%{release}
109
110 %description console
111 A tool for controlling VM.
112
113 %description console -l pl.UTF-8
114 Narzędzie VMware do kontroli VM.
115
116 %package help
117 Summary:        VMware Server help files
118 Summary(pl.UTF-8):      Pliki pomocy dla VMware Server
119 Group:          Applications/Emulators
120 Requires:       %{name} = %{version}-%{release}
121 Requires:       mozilla
122
123 %description help
124 VMware Server help files.
125
126 %description help -l pl.UTF-8
127 Pliki pomocy dla VMware Server.
128
129 %package console-help
130 Summary:        VMware Server console help files
131 Summary(pl.UTF-8):      Pliki pomocy dla konsoli VMware Server
132 Group:          Applications/Emulators
133 Requires:       %{name} = %{version}-%{release}
134 Requires:       mozilla
135
136 %description console-help
137 VMware Server console help files.
138
139 %description console-help -l pl.UTF-8
140 Pliki pomocy dla konsoli VMware Server.
141
142 %package networking
143 Summary:        VMware networking utilities
144 Summary(pl.UTF-8):      Narzędzia VMware do obsługi sieci
145 Group:          Applications/Emulators
146 Requires(post,preun):   /sbin/chkconfig
147 #Requires:      %{name} = %{version}-%{release}
148 Requires:       rc-scripts
149
150 %description networking
151 VMware networking utilities.
152
153 %description networking -l pl.UTF-8
154 Narzędzia VMware do obsługi sieci.
155
156 %package samba
157 Summary:        VMware SMB utilities
158 Summary(pl.UTF-8):      Narzędzia VMware do SMB
159 Group:          Applications/Emulators
160 Requires:       %{name} = %{version}-%{release}
161
162 %description samba
163 VMware SMB utilities.
164
165 %description samba -l pl.UTF-8
166 Narzędzia VMware do SMB.
167
168 %package -n kernel%{_alt_kernel}-misc-vmci
169 Summary:        VMware Virtual Machine Communication Interface (VMCI)
170 Summary(pl.UTF-8):      VMCI (Virtual Machine Communication Interface) - interfejs komunikacyjny VMware
171 Release:        %{rel}@%{_kernel_ver_str}
172 Group:          Base/Kernel
173 Requires(post,postun):  /sbin/depmod
174 Requires:       dev >= 2.9.0-7
175 %if %{with dist_kernel}
176 %requires_releq_kernel
177 Requires(postun):       %releq_kernel
178 %endif
179
180 %description -n kernel%{_alt_kernel}-misc-vmci
181 Linux kernel module acting as VMware Virtual Machine Communication
182 Interface (VMCI).
183
184 %description -n kernel%{_alt_kernel}-misc-vmci -l pl.UTF-8
185 Moduł jądra Linuksa będący interfejsem komunikacyjnym VMware (VMCI -
186 Virtual Machine Communication Interface).
187
188 %package -n kernel%{_alt_kernel}-misc-vmmon
189 Summary:        VMware Virtual Machine Monitor
190 Summary(pl.UTF-8):      Virtual Machine Monitor - monitor maszyny wirtualnej VMware
191 Release:        %{rel}@%{_kernel_ver_str}
192 Group:          Base/Kernel
193 Requires(post,postun):  /sbin/depmod
194 Requires:       dev >= 2.9.0-7
195 %if %{with dist_kernel}
196 %requires_releq_kernel
197 Requires(postun):       %releq_kernel
198 %endif
199
200 %description -n kernel%{_alt_kernel}-misc-vmmon
201 Linux kernel module acting as VMware Virtual Machine Monitor.
202
203 %description -n kernel%{_alt_kernel}-misc-vmmon -l pl.UTF-8
204 Moduł jądra Linuksa będący monitorem maszyny wirtualnej VMware
205 (Virtual Machine Monitor).
206
207 %package -n kernel%{_alt_kernel}-misc-vmnet
208 Summary:        VMware Virtual Networking Driver
209 Summary(pl.UTF-8):      Virtual Networking Driver - sterownik wirtualnej sieci VMware
210 Release:        %{rel}@%{_kernel_ver_str}
211 Group:          Base/Kernel
212 Requires(post,postun):  /sbin/depmod
213 Requires:       dev >= 2.9.0-7
214 %if %{with dist_kernel}
215 %requires_releq_kernel
216 Requires(postun):       %releq_kernel
217 %endif
218
219 %description -n kernel%{_alt_kernel}-misc-vmnet
220 Linux kernel module acting as VMware Virtual Networking Driver.
221
222 %description -n kernel%{_alt_kernel}-misc-vmnet -l pl.UTF-8
223 Moduł jądra Linuksa będący sterownikiem wirtualnej sieci VMware
224 (Virtual Networking Driver).
225
226 %package -n kernel%{_alt_kernel}-misc-vsock
227 Summary:        VMware Virtual Socket Family support
228 Summary(pl.UTF-8):      Obsługa Virtual Socket Family - rodziny gniazd wirtualnych VMware
229 Release:        %{rel}@%{_kernel_ver_str}
230 Group:          Base/Kernel
231 Requires(post,postun):  /sbin/depmod
232 Requires:       dev >= 2.9.0-7
233 %if %{with dist_kernel}
234 %requires_releq_kernel
235 Requires(postun):       %releq_kernel
236 %endif
237 Requires:       kernel%{_alt_kernel}-misc-vmci = %{version}-%{rel}@%{_kernel_ver_str}
238
239 %description -n kernel%{_alt_kernel}-misc-vsock
240 Linux kernel module supporting VMware Virtual Socket Family.
241
242 %description -n kernel%{_alt_kernel}-misc-vsock -l pl.UTF-8
243 Moduł jądra Linuksa obsługujący rodzinę gniazd wirtualnych VMware
244 (Virtual Socket Family).
245
246 %prep
247 %ifarch %{ix86}
248 %setup -q -T -n vmware-server-distrib -b0 %{?with_userspace:-a2}
249 %endif
250 %ifarch %{x8664}
251 %setup -q -T -n vmware-server-distrib -b1 %{?with_userspace:-a3}
252 %endif
253
254 rm -rf lib/isoimages # packaged by %{name}-isoimages.spec
255
256 %patch0 -p1
257 %patch1 -p1
258 %patch2 -p1
259 %patch3 -p1
260
261 cd lib/modules
262 %{__tar} xf source/vmci.tar
263 %{__tar} xf source/vmmon.tar
264 %{__tar} xf source/vmnet.tar
265 %{__tar} xf source/vsock.tar
266 mv vmmon-only/linux/driver.c{,.dist}
267 mv vmnet-only/hub.c{,.dist}
268 mv vmnet-only/driver.c{,.dist}
269 rm -rf binary # unusable
270 cd -
271
272 %{__gzip} -d man/man1/vmware.1.gz
273
274 find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
275
276 %build
277 %if %{with kernel}
278 cd lib/modules
279
280 %build_kernel_modules -C vmci-only -m vmci SRCROOT=$PWD VM_KBUILD=26 VM_CCVER=%{ccver}
281
282 %build_kernel_modules -C vmmon-only -m vmmon SRCROOT=$PWD VM_KBUILD=26 VM_CCVER=%{ccver} <<'EOF'
283 if grep -q "^CONFIG_PREEMPT_RT=y$" o/.config; then
284         sed -e '/pollQueueLock/s/SPIN_LOCK_UNLOCKED/SPIN_LOCK_UNLOCKED(pollQueueLock)/' \
285                 -e '/timerLock/s/SPIN_LOCK_UNLOCKED/SPIN_LOCK_UNLOCKED(timerLock)/' \
286         linux/driver.c.dist > linux/driver.c
287 else
288         cat linux/driver.c.dist > linux/driver.c
289 fi
290 EOF
291
292 %build_kernel_modules -C vmnet-only -m vmnet SRCROOT=$PWD VM_KBUILD=26 VM_CCVER=%{ccver} <<'EOF'
293 if grep -q "^CONFIG_PREEMPT_RT=y$" o/.config; then
294         sed -e 's/SPIN_LOCK_UNLOCKED/SPIN_LOCK_UNLOCKED(vnetHubLock)/' \
295                  hub.c.dist > hub.c
296         sed -e 's/RW_LOCK_UNLOCKED/RW_LOCK_UNLOCKED(vnetPeerLock)/' \
297                 driver.c.dist > driver.c
298 else
299         cat hub.c.dist > hub.c
300         cat driver.c.dist > driver.c
301 fi
302 EOF
303
304 cp -a vmci-only/Module.symvers vsock-only
305 %build_kernel_modules -C vsock-only -m vsock SRCROOT=$PWD VM_KBUILD=26 VM_CCVER=%{ccver} -c
306 %endif
307
308 %install
309 rm -rf $RPM_BUILD_ROOT
310 %if %{with kernel}
311 %install_kernel_modules -m lib/modules/vmci-only/vmci -d misc
312 %install_kernel_modules -m lib/modules/vmmon-only/vmmon -d misc
313 %install_kernel_modules -m lib/modules/vmnet-only/vmnet -d misc
314 %install_kernel_modules -m lib/modules/vsock-only/vsock -d misc
315 %endif
316
317 %if %{with userspace}
318 install -d \
319         $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet{1,8}/{nat,dhcpd} \
320         $RPM_BUILD_ROOT%{_sysconfdir}/vmware/state \
321         $RPM_BUILD_ROOT%{_bindir} \
322         $RPM_BUILD_ROOT%{_sbindir} \
323         $RPM_BUILD_ROOT%{_libdir}/vmware/bin \
324         $RPM_BUILD_ROOT%{_mandir} \
325         $RPM_BUILD_ROOT%{_pixmapsdir} \
326         $RPM_BUILD_ROOT%{_desktopdir} \
327         $RPM_BUILD_ROOT/etc/{pam.d,rc.d/init.d} \
328         $RPM_BUILD_ROOT/var/{log,run}/vmware \
329         $RPM_BUILD_ROOT/var/lib/vmware/{hostd,"Virtual Machines"}
330
331 install %{SOURCE4} $RPM_BUILD_ROOT%{_pixmapsdir}
332 install %{SOURCE5} $RPM_BUILD_ROOT%{_desktopdir}
333 install %{SOURCE7} $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet8/nat/nat.conf
334 install %{SOURCE8} $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet8/dhcpd/dhcpd.conf
335 install %{SOURCE9} $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet1/dhcpd/dhcpd.conf
336 install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/vmware/parse-locations.pl
337 cp -a %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/vmware/locations
338
339 touch $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet{1,8}/dhcpd/dhcpd.leases
340 touch $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet{1,8}/dhcpd/dhcpd.leases~
341
342 install bin/*-* $RPM_BUILD_ROOT%{_bindir}
343 install sbin/*-* $RPM_BUILD_ROOT%{_sbindir}
344 install lib/bin/vmware-vmx $RPM_BUILD_ROOT%{_libdir}/vmware/bin
345 cp -a lib/webAccess $RPM_BUILD_ROOT%{_libdir}/vmware
346 cp -a lib/hostd $RPM_BUILD_ROOT%{_libdir}/vmware
347 cp -a vmware-vix $RPM_BUILD_ROOT%{_libdir}/vmware
348 cp -a lib/vmacore $RPM_BUILD_ROOT%{_libdir}/vmware
349 cp -a lib/net-services.sh $RPM_BUILD_ROOT%{_libdir}/vmware
350 cp -a lib/configurator $RPM_BUILD_ROOT%{_libdir}/vmware
351 cp -a %{SOURCE6} $RPM_BUILD_ROOT%{_libdir}/vmware/configurator/authd-rc-inetd.conf
352 install -d $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd
353 sed -e 's,%port%,902,;s,%authd%,%{_sbindir}/vmware-authd,' %{SOURCE6} > $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/vmware-authd
354 cp -a etc/hostd $RPM_BUILD_ROOT/etc/vmware/hostd
355 cp -a etc/installer.sh $RPM_BUILD_ROOT/etc/vmware
356 cp -a etc/pam.d/vmware-authd $RPM_BUILD_ROOT/etc/pam.d
357 cp -a etc/service $RPM_BUILD_ROOT/etc/vmware
358
359 install -d $RPM_BUILD_ROOT%{_docdir}
360 cp -a doc/* $RPM_BUILD_ROOT%{_docdir}
361 cp -a vmware-vix-distrib/doc/VMwareVix $RPM_BUILD_ROOT%{_docdir}
362 install -d $RPM_BUILD_ROOT%{_mandir}/man1
363 cp -a man/man1/vmware.1 $RPM_BUILD_ROOT%{_mandir}/man1
364
365 install installer/services.sh $RPM_BUILD_ROOT/etc/rc.d/init.d/vmware
366 ln -s vmware $RPM_BUILD_ROOT/etc/rc.d/init.d/vmware-autostart
367 ln -s vmware $RPM_BUILD_ROOT/etc/rc.d/init.d/vmware-core
368 ln -s vmware $RPM_BUILD_ROOT/etc/rc.d/init.d/vmware-mgmt
369
370 rm $RPM_BUILD_ROOT/usr/bin/vmware-uninstall.pl
371 rm $RPM_BUILD_ROOT/usr/bin/vmware-vimdump
372 rm $RPM_BUILD_ROOT/usr/share/applications/VMware-server.desktop
373 rm $RPM_BUILD_ROOT/usr/share/pixmaps/VMware-server.png
374
375 cp -a   lib/{config,help,licenses,messages,share,xkeymap} \
376         $RPM_BUILD_ROOT%{_libdir}/vmware
377
378 %if %{with internal_libs}
379 install bin/vmware $RPM_BUILD_ROOT%{_bindir}
380 install lib/bin/* $RPM_BUILD_ROOT%{_libdir}/vmware/bin
381 cp -a   lib/lib $RPM_BUILD_ROOT%{_libdir}/vmware
382 %endif
383
384 %endif
385
386 %clean
387 rm -rf $RPM_BUILD_ROOT
388
389 %post networking
390 /sbin/chkconfig --add vmnet
391 %service vmnet restart "VMware networking service"
392
393 %preun networking
394 if [ "$1" = "0" ]; then
395         %service vmnet stop
396         /sbin/chkconfig --del vmnet
397 fi
398
399 %post   -n kernel%{_alt_kernel}-misc-vmci
400 %depmod %{_kernel_ver}
401
402 %postun -n kernel%{_alt_kernel}-misc-vmci
403 %depmod %{_kernel_ver}
404
405 %post   -n kernel%{_alt_kernel}-misc-vmmon
406 %depmod %{_kernel_ver}
407
408 %postun -n kernel%{_alt_kernel}-misc-vmmon
409 %depmod %{_kernel_ver}
410
411 %post   -n kernel%{_alt_kernel}-misc-vmnet
412 %depmod %{_kernel_ver}
413
414 %postun -n kernel%{_alt_kernel}-misc-vmnet
415 %depmod %{_kernel_ver}
416
417 %post   -n kernel%{_alt_kernel}-misc-vsock
418 %depmod %{_kernel_ver}
419
420 %postun -n kernel%{_alt_kernel}-misc-vsock
421 %depmod %{_kernel_ver}
422
423 %if %{with userspace}
424 %files
425 %defattr(644,root,root,755)
426 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/vmware-authd
427 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/vmware-authd
428 %dir %{_sysconfdir}/vmware
429 %dir %{_sysconfdir}/vmware/state
430 %dir %{_sysconfdir}/vmware/hostd
431 %dir %{_sysconfdir}/vmware/hostd/env
432 %{_sysconfdir}/vmware/hostd/env/*.xml
433 %{_sysconfdir}/vmware/hostd/key.pub
434 %{_sysconfdir}/vmware/hostd/*.vha
435 %{_sysconfdir}/vmware/hostd/*.xml
436 %dir %{_sysconfdir}/vmware/service
437 %{_sysconfdir}/vmware/service/services.xml
438 %{_sysconfdir}/vmware/installer.sh
439 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vmware/locations
440 %attr(755,root,root) %{_sysconfdir}/vmware/parse-locations.pl
441
442 # vmnet1: HostOnly
443 %dir %{_sysconfdir}/vmware/vmnet1
444 %dir %{_sysconfdir}/vmware/vmnet1/dhcpd
445 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vmware/vmnet1/dhcpd/dhcpd.conf
446 %ghost %{_sysconfdir}/vmware/vmnet1/dhcpd/dhcpd.leases*
447
448 # vmnet8: NAT
449 %dir %{_sysconfdir}/vmware/vmnet8
450 %dir %{_sysconfdir}/vmware/vmnet8/dhcpd
451 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vmware/vmnet8/dhcpd/dhcpd.conf
452 %dir %{_sysconfdir}/vmware/vmnet8/nat
453 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vmware/vmnet8/nat/nat.conf
454 %ghost %{_sysconfdir}/vmware/vmnet8/dhcpd/dhcpd.leases*
455
456 %attr(754,root,root) /etc/rc.d/init.d/vmware
457 %attr(754,root,root) /etc/rc.d/init.d/vmware-autostart
458 %attr(754,root,root) /etc/rc.d/init.d/vmware-core
459 %attr(754,root,root) /etc/rc.d/init.d/vmware-mgmt
460
461 %attr(555,root,root) %{_bindir}/vm-support
462 %attr(555,root,root) %{_bindir}/vmware-config.pl
463 %attr(555,root,root) %{_bindir}/vmware-mount
464 %attr(555,root,root) %{_bindir}/vmware-vimsh
465 %attr(555,root,root) %{_bindir}/vmware-vsh
466 %attr(555,root,root) %{_bindir}/vmware-watchdog
467 %attr(555,root,root) %{_bindir}/vmware-vdiskmanager
468 %attr(4555,root,root) %{_sbindir}/vmware-authd
469 %attr(555,root,root) %{_sbindir}/vmware-authdlauncher
470 %attr(555,root,root) %{_sbindir}/vmware-hostd
471
472 %dir %{_libdir}/vmware
473 %dir %{_libdir}/vmware/bin
474 # warning: SUID !!!
475 %attr(555,root,root) %{_libdir}/vmware/bin/vmware-vmx
476 %{_libdir}/vmware/config
477 %if %{with internal_libs}
478 %attr(555,root,root) %{_bindir}/vmware
479 # - XXX -networking
480 %attr(4555,root,root) %{_bindir}/vmware-ping
481 %attr(555,root,root) %{_libdir}/vmware/bin/openssl
482 %attr(555,root,root) %{_libdir}/vmware/bin/vmrun
483 %attr(755,root,root) %{_libdir}/vmware/bin/vmware-hostd
484 %attr(755,root,root) %{_libdir}/vmware/bin/vmware-hostd-dynamic
485 %attr(555,root,root) %{_libdir}/vmware/bin/vmware-remotemks
486 %attr(555,root,root) %{_libdir}/vmware/bin/vmware-remotemks-debug
487 %attr(555,root,root) %{_libdir}/vmware/bin/vmware-vimdump
488 %attr(555,root,root) %{_libdir}/vmware/bin/vmware-vmx-debug
489 %attr(777,root,root) %{_libdir}/vmware/bin/vmware-vmx-stats
490 %attr(755,root,root) %{_libdir}/vmware/bin/vmware-vsh
491
492 %dir %{_libdir}/vmware/lib
493 %{_libdir}/vmware/lib/libcrypto.so.0.9.7
494 %{_libdir}/vmware/lib/libcurl.so.4
495 %{_libdir}/vmware/lib/libglib-2.0.so.0
496 %{_libdir}/vmware/lib/libgobject-2.0.so.0
497 %{_libdir}/vmware/lib/libgthread-2.0.so.0
498 %{_libdir}/vmware/lib/libssl.so.0.9.7
499 %dir %{_libdir}/vmware/lib/libexpat.so.0
500 %attr(755,root,root) %{_libdir}/vmware/lib/libexpat.so.0/libexpat.so.0
501 %dir %{_libdir}/vmware/lib/libgcc_s.so.1
502 %attr(755,root,root) %{_libdir}/vmware/lib/libgcc_s.so.1/libgcc_s.so.1
503 %dir %{_libdir}/vmware/lib/libgvmomi.so.0
504 %attr(555,root,root) %{_libdir}/vmware/lib/libgvmomi.so.0/libgvmomi.so.0
505 %dir %{_libdir}/vmware/lib/libpng12.so.0
506 %attr(755,root,root) %{_libdir}/vmware/lib/libpng12.so.0/libpng12.so.0
507 %dir %{_libdir}/vmware/lib/libstdc++.so.6
508 %attr(755,root,root) %{_libdir}/vmware/lib/libstdc++.so.6/libstdc++.so.6
509 %dir %{_libdir}/vmware/lib/libxml2.so.2
510 %attr(755,root,root) %{_libdir}/vmware/lib/libxml2.so.2/libxml2.so.2
511 %dir %{_libdir}/vmware/lib/libpixops.so.2.0.2
512 %attr(755,root,root) %{_libdir}/vmware/lib/libpixops.so.2.0.2/libpixops.so.2.0.2
513
514 %attr(555,root,root) %{_libdir}/vmware/lib/wrapper-gtk24.sh
515 %endif
516 %{_libdir}/vmware/licenses
517 %dir %{_libdir}/vmware/messages
518 %lang(ja) %{_libdir}/vmware/messages/ja
519 %{_libdir}/vmware/share
520 %{_libdir}/vmware/xkeymap
521 %dir %{_libdir}/vmware/hostd
522 %attr(755,root,root) %{_libdir}/vmware/hostd/*.so
523 %{_libdir}/vmware/hostd/locale
524 %dir %{_libdir}/vmware/hostd/docroot
525 %dir %{_libdir}/vmware/hostd/docroot/client
526 %dir %{_libdir}/vmware/hostd/docroot/sdk
527 %dir %{_libdir}/vmware/hostd/docroot/downloads
528 %{_libdir}/vmware/hostd/docroot/*.png
529 %{_libdir}/vmware/hostd/docroot/*.js
530 %{_libdir}/vmware/hostd/docroot/*.jpeg
531 %{_libdir}/vmware/hostd/docroot/*.html
532 %{_libdir}/vmware/hostd/docroot/*.css
533 %{_libdir}/vmware/hostd/docroot/en
534 %attr(644,root,root) %{_libdir}/vmware/hostd/docroot/client/VMware-viclient.exe
535 %attr(644,root,root) %{_libdir}/vmware/hostd/docroot/client/clients-template.xml
536 %attr(644,root,root) %{_libdir}/vmware/hostd/docroot/sdk/vim.wsdl
537 %attr(644,root,root) %{_libdir}/vmware/hostd/docroot/sdk/vimService.wsdl
538
539 %attr(755,root,root) %{_libdir}/vmware/hostd/py
540 %attr(755,root,root) %{_libdir}/vmware/hostd/wsdl
541 %{_mandir}/man1/vmware.1*
542 %attr(1777,root,root) %dir /var/run/vmware
543 %attr(751,root,root) %dir /var/log/vmware
544 #%{_pixmapsdir}/*.png
545 #%{_desktopdir}/%{name}.desktop
546
547 %dir %{_libdir}/vmware/vmacore
548 %attr(755,root,root) %{_libdir}/vmware/vmacore/libvmacore.so.*.*
549 %attr(755,root,root) %{_libdir}/vmware/vmacore/libvmomi.so.*.*
550
551 # belongs to -help
552 %{_libdir}/vmware/help
553
554 %defattr(444,root,root,755)
555 %dir %doc %{_docdir}
556 %doc %{_docdir}/[ERo]*
557 %defattr(644,root,root,755)
558 %doc %dir %{_docdir}/VMwareVix
559 %doc %{_docdir}/VMwareVix/lang
560 %doc %{_docdir}/VMwareVix/errors
561 %doc %{_docdir}/VMwareVix/types
562 %attr(444,root,root) %doc %{_docdir}/VMwareVix/*.html
563 %attr(444,root,root) %doc %{_docdir}/VMwareVix/*.css
564 %dir %{_docdir}/VMwareVix/samples
565 %attr(666,root,root) %doc %{_docdir}/VMwareVix/samples/*.c
566
567 %defattr(-,root,root,755)
568 %dir %{_libdir}/vmware/webAccess
569 %defattr(444,root,root,755)
570 # TODO: use system java-sun
571 %dir %{_libdir}/vmware/webAccess/java
572 %dir %{_libdir}/vmware/webAccess/java/jre*
573 %attr(555,root,root) %{_libdir}/vmware/webAccess/java/jre*/bin/*
574 %dir %{_libdir}/vmware/webAccess/java/jre*/bin
575 %dir %{_libdir}/vmware/webAccess/java/jre*/lib
576 %ifarch %{ix86}
577 %dir %{_libdir}/vmware/webAccess/java/jre*/lib/i386
578 %endif
579 %ifarch %{x8664}
580 %dir %{_libdir}/vmware/webAccess/java/jre*/lib/amd64
581 %endif
582 %attr(555,root,root) %{_libdir}/vmware/webAccess/java/jre*/lib/*/*.so
583 %attr(555,root,root) %{_libdir}/vmware/webAccess/java/jre*/lib/*/headless/*.so
584 %attr(555,root,root) %{_libdir}/vmware/webAccess/java/jre*/lib/*/motif21/*.so
585 %attr(555,root,root) %{_libdir}/vmware/webAccess/java/jre*/lib/*/native_threads/*.so
586 %attr(555,root,root) %{_libdir}/vmware/webAccess/java/jre*/lib/*/xawt/*.so
587 # yeah. go figure
588 %attr(777,root,root) %{_libdir}/vmware/webAccess/java/jre*/lib/*/server/libjsig.so
589 %attr(555,root,root) %{_libdir}/vmware/webAccess/java/jre*/lib/*/server/libjvm.so
590 %{_libdir}/vmware/webAccess/java/jre*/lib/*.jar
591 %{_libdir}/vmware/webAccess/java/jre*/lib/ext
592 %{_libdir}/vmware/webAccess/java/jre*/lib/font*
593 %{_libdir}/vmware/webAccess/java/jre*/lib/im
594 %{_libdir}/vmware/webAccess/java/jre*/lib/images
595 %{_libdir}/vmware/webAccess/java/jre*/lib/zi
596 %{_libdir}/vmware/webAccess/java/jre*/lib/audio
597 %{_libdir}/vmware/webAccess/java/jre*/lib/cmm
598 %{_libdir}/vmware/webAccess/java/jre*/lib/security
599 %{_libdir}/vmware/webAccess/java/jre*/lib/management
600 %{_libdir}/vmware/webAccess/java/jre*/lib/oblique-fonts
601 %{_libdir}/vmware/webAccess/java/jre*/lib/psfont*
602 %{_libdir}/vmware/webAccess/java/jre*/[A-Z]*
603 %attr(644,root,root) %{_libdir}/vmware/webAccess/vmware*
604 %ifarch %{ix86}
605 %attr(555,root,root) %{_libdir}/vmware/webAccess/java/jre*/lib/i386/awt_robot
606 %attr(555,root,root) %{_libdir}/vmware/webAccess/java/jre*/lib/i386/gtkhelper
607 %{_libdir}/vmware/webAccess/java/jre*/lib/i386/jvm.cfg
608 %{_libdir}/vmware/webAccess/java/jre*/lib/i386/server/Xusage.txt
609 %dir %{_libdir}/vmware/webAccess/java/jre*/lib/i386/headless
610 %dir %{_libdir}/vmware/webAccess/java/jre*/lib/i386/motif21
611 %dir %{_libdir}/vmware/webAccess/java/jre*/lib/i386/native_threads
612 %dir %{_libdir}/vmware/webAccess/java/jre*/lib/i386/server
613 %dir %{_libdir}/vmware/webAccess/java/jre*/lib/i386/xawt
614 %endif
615 %ifarch %{x8664}
616 %{_libdir}/vmware/webAccess/java/jre*/.systemPrefs
617 %attr(555,root,root) %{_libdir}/vmware/webAccess/java/jre*/lib/amd64/awt_robot
618 %attr(555,root,root) %{_libdir}/vmware/webAccess/java/jre*/lib/amd64/gtkhelper
619 %{_libdir}/vmware/webAccess/java/jre*/lib/amd64/jvm.cfg
620 %{_libdir}/vmware/webAccess/java/jre*/lib/amd64/server/Xusage.txt
621 %dir %{_libdir}/vmware/webAccess/java/jre*/lib/amd64/headless
622 %dir %{_libdir}/vmware/webAccess/java/jre*/lib/amd64/motif21
623 %dir %{_libdir}/vmware/webAccess/java/jre*/lib/amd64/native_threads
624 %dir %{_libdir}/vmware/webAccess/java/jre*/lib/amd64/server
625 %dir %{_libdir}/vmware/webAccess/java/jre*/lib/amd64/xawt
626 %endif
627 %{_libdir}/vmware/webAccess/java/jre*/lib/classlist
628 %{_libdir}/vmware/webAccess/java/jre*/lib/content-types.properties
629 %{_libdir}/vmware/webAccess/java/jre*/lib/flavormap.properties
630 %{_libdir}/vmware/webAccess/java/jre*/lib/jvm.hprof.txt
631 %{_libdir}/vmware/webAccess/java/jre*/lib/logging.properties
632 %{_libdir}/vmware/webAccess/java/jre*/lib/net.properties
633 %{_libdir}/vmware/webAccess/java/jre*/lib/sound.properties
634
635 %defattr(444,root,root,755)
636 %dir %{_libdir}/vmware/webAccess/tomcat
637 %dir %{_libdir}/vmware/webAccess/tomcat/apache-tomcat-*
638 %{_libdir}/vmware/webAccess/tomcat/apache-tomcat-*/conf
639 %{_libdir}/vmware/webAccess/tomcat/apache-tomcat-*/temp
640 %defattr(555,root,root,755)
641 %{_libdir}/vmware/webAccess/tomcat/apache-tomcat-*/bin
642 %defattr(644,root,root,755)
643 %{_libdir}/vmware/webAccess/tomcat/apache-tomcat-*/webapps
644 %{_libdir}/vmware/webAccess/tomcat/apache-tomcat-*/lib
645 %defattr(444,root,root,755)
646 %{_libdir}/vmware/webAccess/tomcat/apache-tomcat-*/LICENSE
647 %{_libdir}/vmware/webAccess/tomcat/apache-tomcat-*/NOTICE
648 %{_libdir}/vmware/webAccess/tomcat/apache-tomcat-*/RELEASE-NOTES
649 %{_libdir}/vmware/webAccess/tomcat/apache-tomcat-*/RUNNING.txt
650
651 %defattr(444,root,root,755)
652 %{_libdir}/vmware/vmware-vix
653
654 %defattr(555,root,root,755)
655 %{_libdir}/vmware/net-services.sh
656
657 %defattr(444,root,root,755)
658 %{_libdir}/vmware/configurator
659
660 # -networking stuff
661 %attr(555,root,root) %{_bindir}/vmnet-bridge
662 %attr(555,root,root) %{_bindir}/vmnet-dhcpd
663 %attr(555,root,root) %{_bindir}/vmnet-natd
664 %attr(555,root,root) %{_bindir}/vmnet-netifup
665 %attr(555,root,root) %{_bindir}/vmnet-sniffer
666
667 %if 0
668 %files console
669 %defattr(644,root,root,755)
670 %dir %{_sysconfdir}/vmware-server-console
671 %{_sysconfdir}/vmware-server-console/locations
672 %dir %{_libdir}/vmware-server-console
673 %dir %{_libdir}/vmware-server-console/bin
674
675 %files console-help
676 %defattr(644,root,root,755)
677
678 %files debug
679 %defattr(644,root,root,755)
680
681 %files help
682 %defattr(644,root,root,755)
683 %{_libdir}/vmware/help
684
685 %files networking
686 %defattr(644,root,root,755)
687 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vmware/vmnet.conf
688 %attr(754,root,root) /etc/rc.d/init.d/vmnet
689 %attr(755,root,root) %{_bindir}/vmnet-bridge
690 %attr(755,root,root) %{_bindir}/vmnet-dhcpd
691 %attr(755,root,root) %{_bindir}/vmnet-natd
692 %attr(755,root,root) %{_bindir}/vmnet-netifup
693 %attr(755,root,root) %{_bindir}/vmnet-sniffer
694 %attr(755,root,root) %{_bindir}/vmware-ping
695
696 %files samba
697 %defattr(644,root,root,755)
698 %doc lib/configurator/vmnet-smb.conf
699 %attr(755,root,root) %{_bindir}/vmware-nmbd
700 %attr(755,root,root) %{_bindir}/vmware-smbd
701 %attr(755,root,root) %{_bindir}/vmware-smbpasswd
702 %attr(755,root,root) %{_bindir}/vmware-smbpasswd.bin
703 %{_libdir}/vmware/smb
704 %endif
705 %endif
706
707 %if %{with kernel}
708 %files -n kernel%{_alt_kernel}-misc-vmci
709 %defattr(644,root,root,755)
710 /lib/modules/%{_kernel_ver}/misc/vmci.ko*
711
712 %files -n kernel%{_alt_kernel}-misc-vmmon
713 %defattr(644,root,root,755)
714 /lib/modules/%{_kernel_ver}/misc/vmmon.ko*
715
716 %files -n kernel%{_alt_kernel}-misc-vmnet
717 %defattr(644,root,root,755)
718 /lib/modules/%{_kernel_ver}/misc/vmnet.ko*
719
720 %files -n kernel%{_alt_kernel}-misc-vsock
721 %defattr(644,root,root,755)
722 /lib/modules/%{_kernel_ver}/misc/vsock.ko*
723 %endif
This page took 0.098791 seconds and 2 git commands to generate.