- internal soname deps
[packages/VMware-server.git] / VMware-server.spec
CommitLineData
21baaa38
MM
1#
2# This doesn't work at all yet. I don't know if the management interface is needed
3# (bundling apache seems like a sooooooooo great idea). Maybe it is possible to
4# setup the server part by hand. The perl module in perl/control.tar needs to
ad4726ec 5# be packaged (vmware-cmd requires that). Something needs to be done with
21baaa38 6# the authd (inetd integration is needed I guess).
ad4726ec 7#
21baaa38
MM
8# The modules from any-any upgrade are too old (I used the ones comming with VMw-S).
9#
10# It builds on amd64, I have changed the networking package not to require the main package
ad4726ec 11# so it can be installed outside 32bit chroot.
21baaa38
MM
12#
13# But hey, it's at least free ;-)
14#
15# I probably won't have time to work on this, switching to vmware-player.
f4d5d331
MWP
16# TODO:
17# problem with libsexy/libsexymm:
18# ln -s /usr/lib/libsexy.so.2 /usr/lib/libsexy.so.1
19# ln -s /usr/lib/libsexymm.so.2 /usr/lib/libsexymm.so.1
21baaa38
MM
20#
21# Conditional build:
22%bcond_without dist_kernel # without distribution kernel
4e42adb1 23%bcond_with kernel # don't build kernel modules
59b5a42e 24%bcond_without userspace # don't build userspace utilities
c932c051
ER
25%bcond_without internal_libs # internal libs stuff
26%bcond_without doc # package huge docs
21baaa38
MM
27%bcond_with verbose # verbose build (V=1)
28#
29%include /usr/lib/rpm/macros.perl
21baaa38 30#
b70d7c8e
ER
31%define ver 2.0
32%define subver 63231
c932c051 33%define rel 0.4
b70d7c8e 34%define urel 115
6f17cdea 35%define ccver %(%{__cc} -dumpversion)
21baaa38
MM
36#
37Summary: VMware Server
0491bf08 38Summary(pl.UTF-8): VMware Server - wirtualna platforma dla stacji roboczej
21baaa38 39Name: VMware-server
b70d7c8e
ER
40Version: %{ver}.%{subver}
41Release: %{rel}
21baaa38
MM
42License: custom, non-distributable
43Group: Applications/Emulators
b70d7c8e
ER
44# http://www.vmware.com/beta/server/download.html
45Source0: http://download3.vmware.com/software/vmserver/%{name}-e.x.p-%{subver}.i386.tar.gz
46# NoSource0-md5: 853247ff0e313f34bd0c3052de8e2c28
47Source1: http://download3.vmware.com/software/vmserver/%{name}-e.x.p-%{subver}.x86_64.tar.gz
48# NoSource1-md5: 0d36ae02640d913251fd11918f798da3
49Source2: http://download3.vmware.com/software/vmserver/VMware-vix-e.x.p-%{subver}.i386.tar.gz
50# NoSource2-md5: c7d162fb8c805143ea5b40e7f62ef4da
51Source3: http://download3.vmware.com/software/vmserver/VMware-vix-e.x.p-%{subver}.x86_64.tar.gz
52# NoSource3-md5: 10124d4747e7a579a270376458b7a77b
53Source4: http://knihovny.cvut.cz/ftp/pub/vmware/vmware-any-any-update%{urel}.tar.gz
54# NoSource4-md5: ab33ff7a799fee77f0f4ba5667cd4b9a
55Source5: %{name}.init
56Source6: %{name}-vmnet.conf
57Source7: %{name}.png
58Source8: %{name}.desktop
59Source9: %{name}-nat.conf
60Source10: %{name}-dhcpd.conf
c932c051 61Source11: %{name}-libs
21baaa38
MM
62Patch0: %{name}-Makefile.patch
63Patch1: %{name}-run_script.patch
73b8f8bc 64Patch2: %{name}-init_pl.patch
21baaa38 65NoSource: 0
2f4f313a
JB
66NoSource: 1
67NoSource: 2
b70d7c8e
ER
68NoSource: 3
69NoSource: 4
21baaa38 70URL: http://www.vmware.com/
606ddb2b 71%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
b70d7c8e 72BuildRequires: libstdc++-devel
21baaa38 73BuildRequires: rpm-perlprov
606ddb2b 74BuildRequires: rpmbuild(macros) >= 1.438
21baaa38 75BuildRequires: sed >= 4.0
4e42adb1
ER
76#Requires: libgnomecanvasmm
77#Requires: libsexy
78#Requires: libsexymm
b70d7c8e 79ExclusiveArch: %{ix86} %{x8664}
21baaa38
MM
80BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
81
82%define _noautoprovfiles %{_libdir}/vmware*/lib/.*\.so.*
c932c051
ER
83# TMP hack to compare with upstream rpm
84%define _libdir %{_prefix}/lib
85%define _docdir %{_defaultdocdir}/vmware
86
87%define sonamedeps %(cat %{SOURCE11} | xargs)
88
89%define _noautoprov %sonamedeps
90%define _noautoreq %sonamedeps
21baaa38
MM
91
92%description
ad4726ec
ER
93VMware Server Virtual Platform is a thin software layer that allows
94multiple guest operating systems to run concurrently on a single
95standard PC, without repartitioning or rebooting, and without
21baaa38
MM
96significant loss of performance.
97
73ea1463 98%description -l pl.UTF-8
21baaa38 99VMware Server Virtual Platform to cienka warstwa oprogramowania
73ea1463
JR
100pozwalająca na jednoczesne działanie wielu gościnnych systemów
101operacyjnych na jednym zwykłym PC, bez repartycjonowania ani
102rebootowania, bez znacznej utraty wydajności.
21baaa38
MM
103
104%package debug
105Summary: VMware debug utility
0491bf08 106Summary(pl.UTF-8): Narzędzie VMware do odpluskwiania
21baaa38
MM
107Group: Applications/Emulators
108Requires: %{name} = %{version}-%{release}
109
110%description debug
111VMware debug utility.
112
73ea1463
JR
113%description debug -l pl.UTF-8
114Narzędzie VMware do odpluskwiania.
21baaa38
MM
115
116%package console
117Summary: VMware console utility
0491bf08 118Summary(pl.UTF-8): Konsola VMware
21baaa38
MM
119Group: Applications/Emulators
120Requires: %{name} = %{version}-%{release}
121
122%description console
123A tool for controlling VM.
124
73ea1463
JR
125%description console -l pl.UTF-8
126Narzędzie VMware do kontroli VM.
21baaa38
MM
127
128%package help
129Summary: VMware Server help files
0491bf08 130Summary(pl.UTF-8): Pliki pomocy dla VMware Server
21baaa38
MM
131Group: Applications/Emulators
132Requires: %{name} = %{version}-%{release}
133Requires: mozilla
134
135%description help
136VMware Server help files.
137
73ea1463 138%description help -l pl.UTF-8
21baaa38
MM
139Pliki pomocy dla VMware Server.
140
141%package console-help
142Summary: VMware Server console help files
0491bf08 143Summary(pl.UTF-8): Pliki pomocy dla konsoli VMware Server
21baaa38
MM
144Group: Applications/Emulators
145Requires: %{name} = %{version}-%{release}
146Requires: mozilla
147
148%description console-help
149VMware Server console help files.
150
73ea1463 151%description console-help -l pl.UTF-8
21baaa38
MM
152Pliki pomocy dla konsoli VMware Server.
153
154%package networking
155Summary: VMware networking utilities
0491bf08 156Summary(pl.UTF-8): Narzędzia VMware do obsługi sieci
21baaa38 157Group: Applications/Emulators
d3a099f0 158Requires(post,preun): /sbin/chkconfig
21baaa38 159#Requires: %{name} = %{version}-%{release}
d3a099f0 160Requires: rc-scripts
21baaa38
MM
161
162%description networking
163VMware networking utilities.
164
73ea1463
JR
165%description networking -l pl.UTF-8
166Narzędzia VMware do obsługi sieci.
21baaa38
MM
167
168%package samba
169Summary: VMware SMB utilities
0491bf08 170Summary(pl.UTF-8): Narzędzia VMware do SMB
21baaa38
MM
171Group: Applications/Emulators
172Requires: %{name} = %{version}-%{release}
173
174%description samba
175VMware SMB utilities.
176
73ea1463
JR
177%description samba -l pl.UTF-8
178Narzędzia VMware do SMB.
21baaa38 179
606ddb2b
ER
180%package -n kernel-misc-vmci
181Summary: Kernel module for VMware Server
182Summary(pl.UTF-8): Moduł jądra dla VMware Server
183Release: %{rel}@%{_kernel_ver_str}
184Group: Base/Kernel
185Requires(post,postun): /sbin/depmod
186Requires: dev >= 2.9.0-7
187%if %{with dist_kernel}
188%requires_releq_kernel
189Requires(postun): %releq_kernel
190%endif
191Provides: kernel(vmci) = %{version}-%{rel}
192
193%description -n kernel-misc-vmci
194Kernel modules for VMware Server - vmci.
195
196%description -n kernel-misc-vmci -l pl.UTF-8
197Moduły jądra dla VMware Server - vmci.
198
21baaa38
MM
199%package -n kernel-misc-vmmon
200Summary: Kernel module for VMware Server
0491bf08 201Summary(pl.UTF-8): Moduł jądra dla VMware Server
b70d7c8e 202Release: %{rel}@%{_kernel_ver_str}
21baaa38
MM
203Group: Base/Kernel
204Requires(post,postun): /sbin/depmod
205Requires: dev >= 2.9.0-7
206%if %{with dist_kernel}
7b803579 207%requires_releq_kernel
208Requires(postun): %releq_kernel
21baaa38 209%endif
b70d7c8e 210Provides: kernel(vmmon) = %{version}-%{rel}
21baaa38
MM
211
212%description -n kernel-misc-vmmon
213Kernel modules for VMware Server - vmmon.
214
73ea1463
JR
215%description -n kernel-misc-vmmon -l pl.UTF-8
216Moduły jądra dla VMware Server - vmmon.
21baaa38
MM
217
218%package -n kernel-misc-vmnet
219Summary: Kernel module for VMware Server
0491bf08 220Summary(pl.UTF-8): Moduł jądra dla VMware Server
b70d7c8e 221Release: %{rel}@%{_kernel_ver_str}
21baaa38
MM
222Group: Base/Kernel
223Requires(post,postun): /sbin/depmod
224Requires: dev >= 2.9.0-7
225%if %{with dist_kernel}
7b803579 226%requires_releq_kernel
227Requires(postun): %releq_kernel
21baaa38 228%endif
b70d7c8e 229Provides: kernel(vmnet) = %{version}-%{rel}
21baaa38
MM
230
231%description -n kernel-misc-vmnet
232Kernel modules for VMware Server - vmnet.
233
73ea1463
JR
234%description -n kernel-misc-vmnet -l pl.UTF-8
235Moduły jądra dla VMware Server - vmnet.
21baaa38 236
21baaa38 237%prep
72f99ac0 238%ifarch %{ix86}
606ddb2b 239%setup -q -T -n vmware-server-distrib -b0 %{?with_userspace:-a2}
72f99ac0
ER
240%endif
241%ifarch %{x8664}
606ddb2b 242%setup -q -T -n vmware-server-distrib -b1 %{?with_userspace:-a3}
72f99ac0 243%endif
606ddb2b
ER
244
245cd lib/modules
246%{__tar} xf source/vmci.tar
247%{__tar} xf source/vmmon.tar
248%{__tar} xf source/vmnet.tar
249mv vmmon-only/linux/driver.c{,.dist}
250mv vmnet-only/hub.c{,.dist}
251mv vmnet-only/driver.c{,.dist}
c932c051 252#rm -rf binary # unusable
59b5a42e 253cd -
606ddb2b 254
c932c051
ER
255%{__gzip} -d man/man1/vmware.1.gz
256
606ddb2b 257%if 0
b70d7c8e
ER
258tar zxf vmware-mui-distrib/console-distrib/%{name}-console-%{ver}-%{subver}.tar.gz
259cp vmware-any-any-update%{urel}/{vmmon,vmnet}.tar lib/modules/source/
21baaa38
MM
260cd lib/modules/source
261tar xf vmmon.tar
262tar xf vmnet.tar
6240d6b6 263#%patch0 -p0
21baaa38
MM
264cp -a vmmon-only{,.clean}
265cp -a vmnet-only{,.clean}
266cd -
267%patch1 -p1
73b8f8bc 268%patch2 -p0
35bca45b 269tar xf lib/perl/control.tar
606ddb2b 270%endif
21baaa38
MM
271
272%build
21baaa38 273
606ddb2b 274%if 0
b70d7c8e 275cd vmware-any-any-update%{urel}
21baaa38 276chmod u+w ../lib/bin/vmware-vmx ../lib/bin-debug/vmware-vmx ../bin/vmnet-bridge
606ddb2b 277%endif
21baaa38
MM
278
279%if 0
280rm -f update
281%{__cc} %{rpmldflags} %{rpmcflags} -o update update.c
282./update vmx ../lib/bin/vmware-vmx
283./update vmxdebug ../lib/bin-debug/vmware-vmx
284./update bridge ../bin/vmnet-bridge
21baaa38 285cd -
606ddb2b 286%endif
21baaa38 287
35bca45b 288%if %{with userspace}
606ddb2b 289%if 0
35bca45b 290 cd control-only
291 perl Makefile.PL
292 sed -i "s:^INSTALLSITEARCH.*$:INSTALLSITEARCH = %{perl_vendorarch}:" Makefile
293 sed -i "s:^INSTALLSITELIB.*$:INSTALLSITELIB = %{perl_vendorlib}:" Makefile
294 sed -i "s:^INSTALLSITEMAN1DIR.*$:INSTALLSITEMAN1DIR = %{_mandir}/man1:" Makefile
295 sed -i "s:^INSTALLSITEMAN3DIR.*$:INSTALLSITEMAN3DIR = %{_mandir}/man3:" Makefile
296
297 %{__make}
298 cd ..
299%endif
606ddb2b 300%endif
35bca45b 301
21baaa38 302%if %{with kernel}
606ddb2b
ER
303cd lib/modules
304
305%build_kernel_modules -C vmci-only -m vmci SRCROOT=$PWD VM_KBUILD=26 VM_CCVER=%{ccver}
306
307%build_kernel_modules -C vmmon-only -m vmmon SRCROOT=$PWD VM_KBUILD=26 VM_CCVER=%{ccver} <<'EOF'
308if grep -q "^CONFIG_PREEMPT_RT=y$" o/.config; then
309 sed -e '/pollQueueLock/s/SPIN_LOCK_UNLOCKED/SPIN_LOCK_UNLOCKED(pollQueueLock)/' \
310 -e '/timerLock/s/SPIN_LOCK_UNLOCKED/SPIN_LOCK_UNLOCKED(timerLock)/' \
311 linux/driver.c.dist > linux/driver.c
312else
313 cat linux/driver.c.dist > linux/driver.c
314fi
315EOF
316
317%build_kernel_modules -C vmnet-only -m vmnet SRCROOT=$PWD VM_KBUILD=26 VM_CCVER=%{ccver} <<'EOF'
318if grep -q "^CONFIG_PREEMPT_RT=y$" o/.config; then
319 sed -e 's/SPIN_LOCK_UNLOCKED/SPIN_LOCK_UNLOCKED(vnetHubLock)/' \
320 hub.c.dist > hub.c
321 sed -e 's/RW_LOCK_UNLOCKED/RW_LOCK_UNLOCKED(vnetPeerLock)/' \
322 driver.c.dist > driver.c
323else
324 cat hub.c.dist > hub.c
325 cat driver.c.dist > driver.c
326fi
327EOF
ecad5a32 328%endif
21baaa38
MM
329
330%install
331rm -rf $RPM_BUILD_ROOT
332
333%if %{with userspace}
334install -d \
5cc7759b 335 $RPM_BUILD_ROOT%{_sysconfdir}/vmware{,-server-console} \
21baaa38
MM
336 $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet8/{nat,dhcpd} \
337 $RPM_BUILD_ROOT%{_bindir} \
338 $RPM_BUILD_ROOT%{_sbindir} \
a4a79c8a 339 $RPM_BUILD_ROOT%{_libdir}/vmware{,-server-console}/bin \
21baaa38
MM
340 $RPM_BUILD_ROOT%{_mandir} \
341 $RPM_BUILD_ROOT%{_pixmapsdir} \
342 $RPM_BUILD_ROOT%{_desktopdir} \
343 $RPM_BUILD_ROOT/etc/rc.d/init.d \
a4a79c8a 344 $RPM_BUILD_ROOT/var/{log,run}/vmware
35bca45b 345
4e42adb1 346%if 0
35bca45b 347 cd control-only
348 %{__make} install \
349 DESTDIR=$RPM_BUILD_ROOT
350 cd ..
4e42adb1 351%endif
73b8f8bc 352
4e42adb1 353%if 0
73b8f8bc 354 # copy other required perl modules
c932c051
ER
355 cp -a lib/perl5/site_perl/5.005/VMware $RPM_BUILD_ROOT%{perl_vendorarch}
356 cp -a lib/perl5/site_perl/5.005/i386-linux/VMware/VmdbPerl $RPM_BUILD_ROOT%{perl_vendorarch}/VMware
357 cp -a lib/perl5/site_perl/5.005/i386-linux/VMware/{HConfig,VmdbPerl}.pm $RPM_BUILD_ROOT%{perl_vendorarch}/VMware
358 cp -a lib/perl5/site_perl/5.005/i386-linux/auto/VMware/{HConfig,VmdbPerl} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/VMware
73b8f8bc 359
360 # remove unecessary files
361 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/VMware/{HConfig,VmdbPerl,VmPerl}/.{exists,packlist}
21baaa38 362%endif
4e42adb1 363%endif
21baaa38
MM
364
365%if %{with kernel}
606ddb2b
ER
366%install_kernel_modules -m lib/modules/vmci-only/vmci -d misc
367%install_kernel_modules -m lib/modules/vmmon-only/vmmon -d misc
368%install_kernel_modules -m lib/modules/vmnet-only/vmnet -d misc
21baaa38
MM
369%endif
370
371%if %{with userspace}
b70d7c8e
ER
372install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/vmnet
373install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet.conf
374install %{SOURCE7} $RPM_BUILD_ROOT%{_pixmapsdir}
375install %{SOURCE8} $RPM_BUILD_ROOT%{_desktopdir}
376install %{SOURCE9} $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet8/nat/nat.conf
377install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet8/dhcpd/dhcpd.conf
21baaa38
MM
378
379touch $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet8/dhcpd/dhcpd.leases
380touch $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet8/dhcpd/dhcpd.leases~
381
382install bin/*-* $RPM_BUILD_ROOT%{_bindir}
383install sbin/*-* $RPM_BUILD_ROOT%{_sbindir}
a4a79c8a 384install lib/bin/vmware-vmx $RPM_BUILD_ROOT%{_libdir}/vmware/bin
c932c051
ER
385cp -a lib/webAccess $RPM_BUILD_ROOT%{_libdir}/vmware
386cp -a lib/hostd $RPM_BUILD_ROOT%{_libdir}/vmware
387cp -a vmware-vix $RPM_BUILD_ROOT%{_libdir}/vmware
388cp -a lib/vmacore $RPM_BUILD_ROOT%{_libdir}/vmware
389cp -a lib/net-services.sh $RPM_BUILD_ROOT%{_libdir}/vmware
390cp -a lib/modules $RPM_BUILD_ROOT%{_libdir}/vmware
391rm -rf $RPM_BUILD_ROOT%{_libdir}/vmware/modules/*-only
392cp -a lib/configurator $RPM_BUILD_ROOT%{_libdir}/vmware
393cp -a etc/hostd $RPM_BUILD_ROOT/etc/vmware/hostd
394cp -a etc/installer.sh $RPM_BUILD_ROOT/etc/vmware
395cp -a etc/pam.d $RPM_BUILD_ROOT/etc/vmware
396cp -a etc/service $RPM_BUILD_ROOT/etc/vmware
397
398install -d $RPM_BUILD_ROOT%{_docdir}
399cp -a doc/* $RPM_BUILD_ROOT%{_docdir}
400cp -a vmware-vix-distrib/doc/VMwareVix $RPM_BUILD_ROOT%{_docdir}
401install -d $RPM_BUILD_ROOT%{_mandir}/man1
402cp -a man/man1/vmware.1 $RPM_BUILD_ROOT%{_mandir}/man1
403
404rm $RPM_BUILD_ROOT/usr/bin/vmware-uninstall.pl
405rm $RPM_BUILD_ROOT/usr/bin/vmware-vimdump
406rm $RPM_BUILD_ROOT/usr/share/applications/VMware-server.desktop
407rm $RPM_BUILD_ROOT/usr/share/pixmaps/VMware-server.png
21baaa38 408
4e42adb1
ER
409%if 0
410sed -e '
411s@%sitearch%@%{perl_sitearch}@g;
412s@%sitelib%@%{perl_sitelib}@g;
413s@%vendorarch%@%{perl_vendorarch}@g;
414s@%vendorlib%@%{perl_vendorlib}@g;
415s@%archlib%@%{perl_archlib}@g;
416s@%privlib%@%{perl_privlib}@g;' < lib/serverd/init.pl.default > $RPM_BUILD_ROOT%{_libdir}/vmware/serverd/init.pl
417%endif
73b8f8bc 418
c932c051 419cp -a lib/{config,help,isoimages,licenses,messages,share,xkeymap} \
a4a79c8a 420 $RPM_BUILD_ROOT%{_libdir}/vmware
21baaa38 421
4e42adb1 422%if 0
c932c051 423cp -a vmware-server-console-distrib/lib/{bin-debug,config,help*,messages,share,xkeymap} \
5cc7759b 424 $RPM_BUILD_ROOT%{_libdir}/vmware-server-console
21baaa38 425
5cc7759b 426install vmware-server-console-distrib/lib/bin/vmware-remotemks $RPM_BUILD_ROOT%{_libdir}/vmware-server-console/bin
21baaa38 427
c932c051 428cp -a vmware-server-console-distrib/man/* man/* $RPM_BUILD_ROOT%{_mandir}
21baaa38 429gunzip $RPM_BUILD_ROOT%{_mandir}/man?/*.gz
4e42adb1 430%endif
21baaa38 431
5cc7759b 432cat > $RPM_BUILD_ROOT%{_sysconfdir}/vmware-server-console/locations <<EOF
21baaa38 433VM_BINDIR=%{_bindir}
5cc7759b 434VM_LIBDIR=%{_libdir}/vmware-server-console
21baaa38
MM
435EOF
436
437%if %{with internal_libs}
438install bin/vmware $RPM_BUILD_ROOT%{_bindir}
c932c051 439install lib/bin/* $RPM_BUILD_ROOT%{_libdir}/vmware/bin
4e42adb1 440#install lib/bin/vmware $RPM_BUILD_ROOT%{_libdir}/vmware/bin
c932c051 441cp -a lib/lib $RPM_BUILD_ROOT%{_libdir}/vmware
21baaa38 442
4e42adb1 443%if 0
5cc7759b 444install vmware-server-console-distrib/bin/vmware-server-console $RPM_BUILD_ROOT%{_bindir}
445install vmware-server-console-distrib/lib/bin/vmware $RPM_BUILD_ROOT%{_libdir}/vmware-server-console/bin
c932c051 446cp -a vmware-server-console-distrib/lib/lib $RPM_BUILD_ROOT%{_libdir}/vmware-server-console
4e42adb1
ER
447%endif
448
21baaa38 449%else
4e42adb1 450%if 0
21baaa38 451install lib/bin/vmware $RPM_BUILD_ROOT%{_bindir}
5cc7759b 452install vmware-server-console-distrib/lib/bin/vmware-server-console $RPM_BUILD_ROOT%{_bindir}
21baaa38
MM
453%endif
454%endif
4e42adb1 455%endif
21baaa38 456
21baaa38
MM
457%clean
458rm -rf $RPM_BUILD_ROOT
459
460%post networking
461/sbin/chkconfig --add vmnet
ad4726ec 462%service vmnet restart "VMware networking service"
21baaa38
MM
463
464%preun networking
465if [ "$1" = "0" ]; then
ad4726ec 466 %service vmnet stop
21baaa38
MM
467 /sbin/chkconfig --del vmnet
468fi
469
606ddb2b
ER
470%post -n kernel-misc-vmci
471%depmod %{_kernel_ver}
472
473%postun -n kernel-misc-vmci
474%depmod %{_kernel_ver}
475
21baaa38
MM
476%post -n kernel-misc-vmmon
477%depmod %{_kernel_ver}
478
479%postun -n kernel-misc-vmmon
480%depmod %{_kernel_ver}
481
482%post -n kernel-misc-vmnet
483%depmod %{_kernel_ver}
484
485%postun -n kernel-misc-vmnet
486%depmod %{_kernel_ver}
487
21baaa38
MM
488%if %{with userspace}
489%files
c932c051
ER
490%defattr(444,root,root,755)
491#%doc lib/configurator/vmnet-{dhcpd,nat}.conf
21baaa38 492%dir %{_sysconfdir}/vmware
c932c051
ER
493%dir %{_sysconfdir}/vmware/hostd
494%dir %{_sysconfdir}/vmware/hostd/env
495%attr(644,root,root) %{_sysconfdir}/vmware/hostd/env/*.xml
496%attr(444,root,root) %{_sysconfdir}/vmware/hostd/key.pub
497%attr(644,root,root) %{_sysconfdir}/vmware/hostd/*.vha
498%attr(644,root,root) %{_sysconfdir}/vmware/hostd/*.xml
499%dir %{_sysconfdir}/vmware/pam.d
500%attr(644,root,root) %{_sysconfdir}/vmware/pam.d/vmware-authd
501%dir %{_sysconfdir}/vmware/service
502%attr(644,root,root) %{_sysconfdir}/vmware/service/services.xml
503%attr(555,root,root) %{_sysconfdir}/vmware/installer.sh
504%attr(555,root,root) %{_bindir}/vm-support
4e42adb1
ER
505#%attr(755,root,root) %{_bindir}/vmware-authtrusted
506#%attr(755,root,root) %{_bindir}/vmware-cmd
4e42adb1
ER
507#%attr(755,root,root) %{_bindir}/vmware-loop
508#%attr(755,root,root) %{_bindir}/vmware-mount.pl
c932c051
ER
509%attr(555,root,root) %{_bindir}/vmware-config.pl
510%attr(555,root,root) %{_bindir}/vmware-mount
511#%attr(555,root,root) %{_bindir}/vmware-uninstall.pl
512#%attr(555,root,root) %{_bindir}/vmware-vimdump
513%attr(555,root,root) %{_bindir}/vmware-vimsh
514%attr(555,root,root) %{_bindir}/vmware-vsh
515%attr(555,root,root) %{_bindir}/vmware-watchdog
516%attr(555,root,root) %{_bindir}/vmware-vdiskmanager
517%attr(4555,root,root) %{_sbindir}/vmware-authd
518%attr(555,root,root) %{_sbindir}/vmware-authdlauncher
519%attr(555,root,root) %{_sbindir}/vmware-hostd
a4a79c8a 520%dir %{_libdir}/vmware
521%dir %{_libdir}/vmware/bin
21baaa38 522# warning: SUID !!!
c932c051 523%attr(555,root,root) %{_libdir}/vmware/bin/vmware-vmx
a4a79c8a 524%{_libdir}/vmware/config
525%{_libdir}/vmware/isoimages
21baaa38 526%if %{with internal_libs}
c932c051
ER
527%attr(555,root,root) %{_bindir}/vmware
528# - XXX -networking
529%attr(4555,root,root) %{_bindir}/vmware-ping
530#%attr(755,root,root) %{_libdir}/vmware/bin/vmware
531%attr(555,root,root) %{_libdir}/vmware/bin/openssl
532%attr(555,root,root) %{_libdir}/vmware/bin/vmplayer
533%attr(555,root,root) %{_libdir}/vmware/bin/vmrun
534%attr(755,root,root) %{_libdir}/vmware/bin/vmware-hostd
535%attr(755,root,root) %{_libdir}/vmware/bin/vmware-hostd-dynamic
536%attr(555,root,root) %{_libdir}/vmware/bin/vmware-remotemks
537%attr(555,root,root) %{_libdir}/vmware/bin/vmware-remotemks-debug
538%attr(555,root,root) %{_libdir}/vmware/bin/vmware-vimdump
539%attr(555,root,root) %{_libdir}/vmware/bin/vmware-vmx-debug
540%attr(777,root,root) %{_libdir}/vmware/bin/vmware-vmx-stats
541%attr(755,root,root) %{_libdir}/vmware/bin/vmware-vsh
542
543%dir %{_libdir}/vmware/lib
544%{_libdir}/vmware/lib/libXau.so.6
545%{_libdir}/vmware/lib/libXcursor.so.1
546%{_libdir}/vmware/lib/libXdmcp.so.6
547%{_libdir}/vmware/lib/libXfixes.so.3
548%{_libdir}/vmware/lib/libXft.so.2
549%{_libdir}/vmware/lib/libXinerama.so.1
550%{_libdir}/vmware/lib/libXrandr.so.2
551%{_libdir}/vmware/lib/libXrender.so.1
552%{_libdir}/vmware/lib/libart_lgpl_2.so.2
553%{_libdir}/vmware/lib/libatk-1.0.so.0
554%{_libdir}/vmware/lib/libatkmm-1.6.so.1
555%{_libdir}/vmware/lib/libcairo.so.2
556%{_libdir}/vmware/lib/libcairomm-1.0.so.1
557%{_libdir}/vmware/lib/libcrypto.so.0.9.7
558%{_libdir}/vmware/lib/libcurl.so.3
559%{_libdir}/vmware/lib/libcurl.so.4
560%{_libdir}/vmware/lib/libfontconfig.so.1
561%{_libdir}/vmware/lib/libfreetype.so.6
562%{_libdir}/vmware/lib/libgdk-x11-2.0.so.0
563%{_libdir}/vmware/lib/libgdk_pixbuf-2.0.so.0
564%{_libdir}/vmware/lib/libgdkmm-2.4.so.1
565%{_libdir}/vmware/lib/libglib-2.0.so.0
566%{_libdir}/vmware/lib/libglibmm-2.4.so.1
567%{_libdir}/vmware/lib/libglibmm_generate_extra_defs-2.4.so.1
568%{_libdir}/vmware/lib/libgmodule-2.0.so.0
569%{_libdir}/vmware/lib/libgobject-2.0.so.0
570%{_libdir}/vmware/lib/libgthread-2.0.so.0
571%{_libdir}/vmware/lib/libgtk-x11-2.0.so.0
572%{_libdir}/vmware/lib/libgtkmm-2.4.so.1
573%{_libdir}/vmware/lib/libpango-1.0.so.0
574%{_libdir}/vmware/lib/libpangocairo-1.0.so.0
575%{_libdir}/vmware/lib/libpangoft2-1.0.so.0
576%{_libdir}/vmware/lib/libpangomm-1.4.so.1
577%{_libdir}/vmware/lib/libpangox-1.0.so.0
578%{_libdir}/vmware/lib/libpangoxft-1.0.so.0
579%{_libdir}/vmware/lib/librsvg-2.so.2
580%{_libdir}/vmware/lib/libsexy.so.2
581%{_libdir}/vmware/lib/libsexymm.so.2
582%{_libdir}/vmware/lib/libsigc-2.0.so.0
583%{_libdir}/vmware/lib/libssl.so.0.9.7
584%{_libdir}/vmware/lib/libview.so.2
585%{_libdir}/vmware/lib/libxmlrpc.so.3
586%{_libdir}/vmware/lib/libxmlrpc_client.so.3
587%{_libdir}/vmware/lib/libxmlrpc_util.so.3
588%{_libdir}/vmware/lib/libxmlrpc_xmlparse.so.3
589%{_libdir}/vmware/lib/libxmlrpc_xmltok.so.3
590
591
592%dir %{_libdir}/vmware/lib/libexpat.so.0
593%attr(755,root,root) %{_libdir}/vmware/lib/libexpat.so.0/libexpat.so.0
594%dir %{_libdir}/vmware/lib/libgcc_s.so.1
595%attr(755,root,root) %{_libdir}/vmware/lib/libgcc_s.so.1/libgcc_s.so.1
596%dir %{_libdir}/vmware/lib/libgvmomi.so.0
597%attr(555,root,root) %{_libdir}/vmware/lib/libgvmomi.so.0/libgvmomi.so.0
598%dir %{_libdir}/vmware/lib/libpng12.so.0
599%attr(755,root,root) %{_libdir}/vmware/lib/libpng12.so.0/libpng12.so.0
600%dir %{_libdir}/vmware/lib/libstdc++.so.6
601%attr(755,root,root) %{_libdir}/vmware/lib/libstdc++.so.6/libstdc++.so.6
602%dir %{_libdir}/vmware/lib/libvmwarebase.so.0
603%attr(555,root,root) %{_libdir}/vmware/lib/libvmwarebase.so.0/libvmwarebase.so.0
604%dir %{_libdir}/vmware/lib/libvmwareui.so.0
605%attr(555,root,root) %{_libdir}/vmware/lib/libvmwareui.so.0/libvmwareui.so.0
606%dir %{_libdir}/vmware/lib/libxml2.so.2
607%attr(755,root,root) %{_libdir}/vmware/lib/libxml2.so.2/libxml2.so.2
608
609
610%attr(555,root,root) %{_libdir}/vmware/lib/wrapper-gtk24.sh
21baaa38 611%endif
c932c051 612#%dir %{_libdir}/vmware/serverd
4e42adb1 613#%attr(750,root,root) %{_libdir}/vmware/serverd/init.pl
a4a79c8a 614%{_libdir}/vmware/licenses
615%dir %{_libdir}/vmware/messages
4e42adb1 616#%{_libdir}/vmware/messages/en
a4a79c8a 617%lang(ja) %{_libdir}/vmware/messages/ja
618%{_libdir}/vmware/share
619%{_libdir}/vmware/xkeymap
c932c051
ER
620%dir %{_libdir}/vmware/hostd
621%attr(755,root,root) %{_libdir}/vmware/hostd/*.so
622%{_libdir}/vmware/hostd/locale
623%dir %{_libdir}/vmware/hostd/docroot
624%dir %{_libdir}/vmware/hostd/docroot/client
625%dir %{_libdir}/vmware/hostd/docroot/sdk
626%dir %{_libdir}/vmware/hostd/docroot/downloads
627%{_libdir}/vmware/hostd/docroot/*.png
628%{_libdir}/vmware/hostd/docroot/*.js
629%{_libdir}/vmware/hostd/docroot/*.jpeg
630%{_libdir}/vmware/hostd/docroot/*.html
631%{_libdir}/vmware/hostd/docroot/*.css
632%{_libdir}/vmware/hostd/docroot/en
633%attr(644,root,root) %{_libdir}/vmware/hostd/docroot/client/VMware-viclient.exe
634%attr(644,root,root) %{_libdir}/vmware/hostd/docroot/client/clients-template.xml
635%attr(644,root,root) %{_libdir}/vmware/hostd/docroot/sdk/vim.wsdl
636%attr(644,root,root) %{_libdir}/vmware/hostd/docroot/sdk/vimService.wsdl
637
638%attr(755,root,root) %{_libdir}/vmware/hostd/py
639%attr(755,root,root) %{_libdir}/vmware/hostd/wsdl
640%{_mandir}/man1/vmware.1*
4e42adb1
ER
641#%{_mandir}/man3/*
642#%{perl_vendorarch}/VMware
643#%{perl_vendorarch}/auto/VMware
21baaa38 644%attr(1777,root,root) %dir /var/run/vmware
a4a79c8a 645%attr(751,root,root) %dir /var/log/vmware
c932c051
ER
646#%{_pixmapsdir}/*.png
647#%{_desktopdir}/%{name}.desktop
648
649%dir %{_libdir}/vmware/vmacore
650%attr(755,root,root) %{_libdir}/vmware/vmacore/libvmacore.so.*.*
651%attr(755,root,root) %{_libdir}/vmware/vmacore/libvmomi.so.*.*
652
653# belongs to -help
654%{_libdir}/vmware/help
655
656%defattr(444,root,root,755)
657%dir %doc %{_docdir}
658%doc %{_docdir}/[ERo]*
659%defattr(644,root,root,755)
660%doc %dir %{_docdir}/VMwareVix
661%doc %{_docdir}/VMwareVix/lang
662%doc %{_docdir}/VMwareVix/errors
663%doc %{_docdir}/VMwareVix/types
664%attr(444,root,root) %doc %{_docdir}/VMwareVix/*.html
665%dir %{_docdir}/VMwareVix/samples
666%attr(666,root,root) %doc %{_docdir}/VMwareVix/samples/*.c
667
668%defattr(-,root,root,755)
669%dir %{_libdir}/vmware/webAccess
670%defattr(444,root,root,755)
671%dir %{_libdir}/vmware/webAccess/java
672%dir %{_libdir}/vmware/webAccess/java/jre1.5.0_07
673%attr(555,root,root) %{_libdir}/vmware/webAccess/java/jre1.5.0_07/bin/*
674%dir %{_libdir}/vmware/webAccess/java/jre1.5.0_07/bin
675%dir %{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib
676%dir %{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/amd64
677%attr(555,root,root) %{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/*/*.so
678%attr(555,root,root) %{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/*/headless/*.so
679%attr(555,root,root) %{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/*/motif21/*.so
680%attr(555,root,root) %{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/*/native_threads/*.so
681%attr(555,root,root) %{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/*/xawt/*.so
682# yeah. go figure
683%attr(777,root,root) %{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/*/server/libjsig.so
684%attr(555,root,root) %{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/*/server/libjvm.so
685%{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/*.jar
686%{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/ext
687%{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/font*
688%{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/im
689%{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/images
690%{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/zi
691%{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/audio
692%{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/cmm
693%{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/security
694%{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/management
695%{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/oblique-fonts
696%{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/psfont*
697%{_libdir}/vmware/webAccess/java/jre1.5.0_07/[A-Z]*
698%{_libdir}/vmware/webAccess/java/jre1.5.0_07/.systemPrefs
699%attr(644,root,root) %{_libdir}/vmware/webAccess/vmware*
700%attr(555,root,root) %{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/amd64/awt_robot
701%attr(555,root,root) %{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/amd64/gtkhelper
702%{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/amd64/jvm.cfg
703%{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/classlist
704%{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/content-types.properties
705%{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/flavormap.properties
706%{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/jvm.hprof.txt
707%{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/logging.properties
708%{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/net.properties
709%{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/sound.properties
710%{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/amd64/server/Xusage.txt
711%dir %{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/amd64/headless
712%dir %{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/amd64/motif21
713%dir %{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/amd64/native_threads
714%dir %{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/amd64/server
715%dir %{_libdir}/vmware/webAccess/java/jre1.5.0_07/lib/amd64/xawt
716
717%defattr(444,root,root,755)
718%dir %{_libdir}/vmware/webAccess/tomcat
719%dir %{_libdir}/vmware/webAccess/tomcat/apache-tomcat-5.5.17
720%{_libdir}/vmware/webAccess/tomcat/apache-tomcat-5.5.17/common
721%{_libdir}/vmware/webAccess/tomcat/apache-tomcat-5.5.17/conf
722%{_libdir}/vmware/webAccess/tomcat/apache-tomcat-5.5.17/logs
723%{_libdir}/vmware/webAccess/tomcat/apache-tomcat-5.5.17/server
724%{_libdir}/vmware/webAccess/tomcat/apache-tomcat-5.5.17/temp
725%defattr(555,root,root,755)
726%{_libdir}/vmware/webAccess/tomcat/apache-tomcat-5.5.17/bin
727%defattr(644,root,root,755)
728%{_libdir}/vmware/webAccess/tomcat/apache-tomcat-5.5.17/webapps
729%defattr(444,root,root,755)
730%{_libdir}/vmware/webAccess/tomcat/apache-tomcat-5.5.17/LICENSE
731%{_libdir}/vmware/webAccess/tomcat/apache-tomcat-5.5.17/NOTICE
732%{_libdir}/vmware/webAccess/tomcat/apache-tomcat-5.5.17/RELEASE-NOTES
733%{_libdir}/vmware/webAccess/tomcat/apache-tomcat-5.5.17/RUNNING.txt
734
735%defattr(444,root,root,755)
736%{_libdir}/vmware/vmware-vix
737
738%defattr(555,root,root,755)
739%{_libdir}/vmware/net-services.sh
740
741%defattr(444,root,root,755)
742%{_libdir}/vmware/modules
743%{_libdir}/vmware/configurator
744
745# -networking stuff
746%attr(555,root,root) %{_bindir}/vmnet-bridge
747%attr(555,root,root) %{_bindir}/vmnet-dhcpd
748%attr(555,root,root) %{_bindir}/vmnet-natd
749%attr(555,root,root) %{_bindir}/vmnet-netifup
750%attr(555,root,root) %{_bindir}/vmnet-sniffer
21baaa38
MM
751
752%files console
3c34bc99 753%defattr(644,root,root,755)
5cc7759b 754%dir %{_sysconfdir}/vmware-server-console
755%{_sysconfdir}/vmware-server-console/locations
4e42adb1 756#%attr(755,root,root) %{_bindir}/vmware-server-console
5cc7759b 757%dir %{_libdir}/vmware-server-console
758%dir %{_libdir}/vmware-server-console/bin
4e42adb1
ER
759#%attr(755,root,root) %{_libdir}/vmware-server-console/bin/vmware-remotemks
760#%{_libdir}/vmware-server-console/config
21baaa38 761%if %{with internal_libs}
c932c051
ER
762#%attr(755,root,root) %{_libdir}/vmware-server-console/bin/vmware
763#%{_libdir}/vmware-server-console/lib
764#%attr(755,root,root) %{_libdir}/vmware-server-console/lib/wrapper-gtk24.sh
21baaa38 765%endif
4e42adb1 766#%dir %{_libdir}/vmware-server-console/messages
5cc7759b 767#%{_libdir}/vmware-server-console/messages/en
4e42adb1
ER
768#%lang(ja) %{_libdir}/vmware-server-console/messages/ja
769#%{_libdir}/vmware-server-console/share
770#%{_libdir}/vmware-server-console/xkeymap
771#%{_mandir}/man1/vmware-server-console.1*
21baaa38
MM
772
773%files console-help
774%defattr(644,root,root,755)
4e42adb1 775#%{_libdir}/vmware-server-console/help*
21baaa38
MM
776
777%files debug
778%defattr(644,root,root,755)
4e42adb1 779#%dir %{_libdir}/vmware/bin-debug
21baaa38 780# warning: SUID !!!
4e42adb1
ER
781#%attr(4755,root,root) %{_libdir}/vmware/bin-debug/vmware-vmx
782#%dir %{_libdir}/vmware-server-console/bin-debug
783#%attr(755,root,root) %{_libdir}/vmware/bin-debug/vmware-remotemks
784#%attr(755,root,root) %{_libdir}/vmware-server-console/bin-debug/vmware-remotemks
21baaa38 785
c932c051 786%if 0
21baaa38
MM
787%files help
788%defattr(644,root,root,755)
c932c051
ER
789%{_libdir}/vmware/help
790%endif
21baaa38
MM
791
792%files networking
793%defattr(644,root,root,755)
794%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vmware/vmnet.conf
795%attr(754,root,root) /etc/rc.d/init.d/vmnet
796%attr(755,root,root) %{_bindir}/vmnet-bridge
797%attr(755,root,root) %{_bindir}/vmnet-dhcpd
798%attr(755,root,root) %{_bindir}/vmnet-natd
799%attr(755,root,root) %{_bindir}/vmnet-netifup
800%attr(755,root,root) %{_bindir}/vmnet-sniffer
801%attr(755,root,root) %{_bindir}/vmware-ping
802%dir %{_sysconfdir}/vmware/vmnet8
f4d5d331 803%dir %{_sysconfdir}/vmware/vmnet8/dhcpd
21baaa38 804%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vmware/vmnet8/dhcpd/dhcpd.conf
f4d5d331 805%dir %{_sysconfdir}/vmware/vmnet8/nat
21baaa38
MM
806%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vmware/vmnet8/nat/nat.conf
807%verify(not md5 mtime size) %{_sysconfdir}/vmware/vmnet8/dhcpd/dhcpd.leases*
808
809%if 0
810%files samba
811%defattr(644,root,root,755)
812%doc lib/configurator/vmnet-smb.conf
813%attr(755,root,root) %{_bindir}/vmware-nmbd
814%attr(755,root,root) %{_bindir}/vmware-smbd
815%attr(755,root,root) %{_bindir}/vmware-smbpasswd
816%attr(755,root,root) %{_bindir}/vmware-smbpasswd.bin
817%{_libdir}/vmware/smb
818%endif
819%endif
820
821%if %{with kernel}
606ddb2b
ER
822%files -n kernel-misc-vmci
823%defattr(644,root,root,755)
824/lib/modules/%{_kernel_ver}/misc/vmci.ko*
825
21baaa38
MM
826%files -n kernel-misc-vmmon
827%defattr(644,root,root,755)
828/lib/modules/%{_kernel_ver}/misc/vmmon.ko*
829
830%files -n kernel-misc-vmnet
831%defattr(644,root,root,755)
832/lib/modules/%{_kernel_ver}/misc/vmnet.ko*
0108f1e9 833%endif
This page took 0.200503 seconds and 4 git commands to generate.