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