- take gcc version from cc output
[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
21baaa38 25%bcond_with internal_libs # internal libs stuff
4e42adb1 26%bcond_with 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
4e42adb1 33%define rel 0.2
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
21baaa38
MM
61Patch0: %{name}-Makefile.patch
62Patch1: %{name}-run_script.patch
73b8f8bc 63Patch2: %{name}-init_pl.patch
21baaa38 64NoSource: 0
2f4f313a
JB
65NoSource: 1
66NoSource: 2
b70d7c8e
ER
67NoSource: 3
68NoSource: 4
21baaa38 69URL: http://www.vmware.com/
606ddb2b 70%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
b70d7c8e 71BuildRequires: libstdc++-devel
21baaa38 72BuildRequires: rpm-perlprov
606ddb2b 73BuildRequires: rpmbuild(macros) >= 1.438
21baaa38 74BuildRequires: sed >= 4.0
4e42adb1
ER
75#Requires: libgnomecanvasmm
76#Requires: libsexy
77#Requires: libsexymm
b70d7c8e 78ExclusiveArch: %{ix86} %{x8664}
21baaa38
MM
79BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
80
81%define _noautoprovfiles %{_libdir}/vmware*/lib/.*\.so.*
82
83%description
ad4726ec
ER
84VMware Server Virtual Platform is a thin software layer that allows
85multiple guest operating systems to run concurrently on a single
86standard PC, without repartitioning or rebooting, and without
21baaa38
MM
87significant loss of performance.
88
73ea1463 89%description -l pl.UTF-8
21baaa38 90VMware Server Virtual Platform to cienka warstwa oprogramowania
73ea1463
JR
91pozwalająca na jednoczesne działanie wielu gościnnych systemów
92operacyjnych na jednym zwykłym PC, bez repartycjonowania ani
93rebootowania, bez znacznej utraty wydajności.
21baaa38
MM
94
95%package debug
96Summary: VMware debug utility
0491bf08 97Summary(pl.UTF-8): Narzędzie VMware do odpluskwiania
21baaa38
MM
98Group: Applications/Emulators
99Requires: %{name} = %{version}-%{release}
100
101%description debug
102VMware debug utility.
103
73ea1463
JR
104%description debug -l pl.UTF-8
105Narzędzie VMware do odpluskwiania.
21baaa38
MM
106
107%package console
108Summary: VMware console utility
0491bf08 109Summary(pl.UTF-8): Konsola VMware
21baaa38
MM
110Group: Applications/Emulators
111Requires: %{name} = %{version}-%{release}
112
113%description console
114A tool for controlling VM.
115
73ea1463
JR
116%description console -l pl.UTF-8
117Narzędzie VMware do kontroli VM.
21baaa38
MM
118
119%package help
120Summary: VMware Server help files
0491bf08 121Summary(pl.UTF-8): Pliki pomocy dla VMware Server
21baaa38
MM
122Group: Applications/Emulators
123Requires: %{name} = %{version}-%{release}
124Requires: mozilla
125
126%description help
127VMware Server help files.
128
73ea1463 129%description help -l pl.UTF-8
21baaa38
MM
130Pliki pomocy dla VMware Server.
131
132%package console-help
133Summary: VMware Server console help files
0491bf08 134Summary(pl.UTF-8): Pliki pomocy dla konsoli VMware Server
21baaa38
MM
135Group: Applications/Emulators
136Requires: %{name} = %{version}-%{release}
137Requires: mozilla
138
139%description console-help
140VMware Server console help files.
141
73ea1463 142%description console-help -l pl.UTF-8
21baaa38
MM
143Pliki pomocy dla konsoli VMware Server.
144
145%package networking
146Summary: VMware networking utilities
0491bf08 147Summary(pl.UTF-8): Narzędzia VMware do obsługi sieci
21baaa38 148Group: Applications/Emulators
d3a099f0 149Requires(post,preun): /sbin/chkconfig
21baaa38 150#Requires: %{name} = %{version}-%{release}
d3a099f0 151Requires: rc-scripts
21baaa38
MM
152
153%description networking
154VMware networking utilities.
155
73ea1463
JR
156%description networking -l pl.UTF-8
157Narzędzia VMware do obsługi sieci.
21baaa38
MM
158
159%package samba
160Summary: VMware SMB utilities
0491bf08 161Summary(pl.UTF-8): Narzędzia VMware do SMB
21baaa38
MM
162Group: Applications/Emulators
163Requires: %{name} = %{version}-%{release}
164
165%description samba
166VMware SMB utilities.
167
73ea1463
JR
168%description samba -l pl.UTF-8
169Narzędzia VMware do SMB.
21baaa38 170
606ddb2b
ER
171%package -n kernel-misc-vmci
172Summary: Kernel module for VMware Server
173Summary(pl.UTF-8): Moduł jądra dla VMware Server
174Release: %{rel}@%{_kernel_ver_str}
175Group: Base/Kernel
176Requires(post,postun): /sbin/depmod
177Requires: dev >= 2.9.0-7
178%if %{with dist_kernel}
179%requires_releq_kernel
180Requires(postun): %releq_kernel
181%endif
182Provides: kernel(vmci) = %{version}-%{rel}
183
184%description -n kernel-misc-vmci
185Kernel modules for VMware Server - vmci.
186
187%description -n kernel-misc-vmci -l pl.UTF-8
188Moduły jądra dla VMware Server - vmci.
189
21baaa38
MM
190%package -n kernel-misc-vmmon
191Summary: Kernel module for VMware Server
0491bf08 192Summary(pl.UTF-8): Moduł jądra dla VMware Server
b70d7c8e 193Release: %{rel}@%{_kernel_ver_str}
21baaa38
MM
194Group: Base/Kernel
195Requires(post,postun): /sbin/depmod
196Requires: dev >= 2.9.0-7
197%if %{with dist_kernel}
7b803579 198%requires_releq_kernel
199Requires(postun): %releq_kernel
21baaa38 200%endif
b70d7c8e 201Provides: kernel(vmmon) = %{version}-%{rel}
21baaa38
MM
202
203%description -n kernel-misc-vmmon
204Kernel modules for VMware Server - vmmon.
205
73ea1463
JR
206%description -n kernel-misc-vmmon -l pl.UTF-8
207Moduły jądra dla VMware Server - vmmon.
21baaa38
MM
208
209%package -n kernel-misc-vmnet
210Summary: Kernel module for VMware Server
0491bf08 211Summary(pl.UTF-8): Moduł jądra dla VMware Server
b70d7c8e 212Release: %{rel}@%{_kernel_ver_str}
21baaa38
MM
213Group: Base/Kernel
214Requires(post,postun): /sbin/depmod
215Requires: dev >= 2.9.0-7
216%if %{with dist_kernel}
7b803579 217%requires_releq_kernel
218Requires(postun): %releq_kernel
21baaa38 219%endif
b70d7c8e 220Provides: kernel(vmnet) = %{version}-%{rel}
21baaa38
MM
221
222%description -n kernel-misc-vmnet
223Kernel modules for VMware Server - vmnet.
224
73ea1463
JR
225%description -n kernel-misc-vmnet -l pl.UTF-8
226Moduły jądra dla VMware Server - vmnet.
21baaa38 227
21baaa38 228%prep
72f99ac0 229%ifarch %{ix86}
606ddb2b 230%setup -q -T -n vmware-server-distrib -b0 %{?with_userspace:-a2}
72f99ac0
ER
231%endif
232%ifarch %{x8664}
606ddb2b 233%setup -q -T -n vmware-server-distrib -b1 %{?with_userspace:-a3}
72f99ac0 234%endif
606ddb2b
ER
235
236cd lib/modules
237%{__tar} xf source/vmci.tar
238%{__tar} xf source/vmmon.tar
239%{__tar} xf source/vmnet.tar
240mv vmmon-only/linux/driver.c{,.dist}
241mv vmnet-only/hub.c{,.dist}
242mv vmnet-only/driver.c{,.dist}
606ddb2b 243rm -rf binary # unusable
59b5a42e 244cd -
606ddb2b
ER
245
246%if 0
b70d7c8e
ER
247tar zxf vmware-mui-distrib/console-distrib/%{name}-console-%{ver}-%{subver}.tar.gz
248cp vmware-any-any-update%{urel}/{vmmon,vmnet}.tar lib/modules/source/
21baaa38
MM
249cd lib/modules/source
250tar xf vmmon.tar
251tar xf vmnet.tar
6240d6b6 252#%patch0 -p0
21baaa38
MM
253cp -a vmmon-only{,.clean}
254cp -a vmnet-only{,.clean}
255cd -
256%patch1 -p1
73b8f8bc 257%patch2 -p0
35bca45b 258tar xf lib/perl/control.tar
606ddb2b 259%endif
21baaa38
MM
260
261%build
21baaa38 262
606ddb2b 263%if 0
b70d7c8e 264cd vmware-any-any-update%{urel}
21baaa38 265chmod u+w ../lib/bin/vmware-vmx ../lib/bin-debug/vmware-vmx ../bin/vmnet-bridge
606ddb2b 266%endif
21baaa38
MM
267
268%if 0
269rm -f update
270%{__cc} %{rpmldflags} %{rpmcflags} -o update update.c
271./update vmx ../lib/bin/vmware-vmx
272./update vmxdebug ../lib/bin-debug/vmware-vmx
273./update bridge ../bin/vmnet-bridge
21baaa38 274cd -
606ddb2b 275%endif
21baaa38 276
35bca45b 277%if %{with userspace}
606ddb2b 278%if 0
35bca45b 279 cd control-only
280 perl Makefile.PL
281 sed -i "s:^INSTALLSITEARCH.*$:INSTALLSITEARCH = %{perl_vendorarch}:" Makefile
282 sed -i "s:^INSTALLSITELIB.*$:INSTALLSITELIB = %{perl_vendorlib}:" Makefile
283 sed -i "s:^INSTALLSITEMAN1DIR.*$:INSTALLSITEMAN1DIR = %{_mandir}/man1:" Makefile
284 sed -i "s:^INSTALLSITEMAN3DIR.*$:INSTALLSITEMAN3DIR = %{_mandir}/man3:" Makefile
285
286 %{__make}
287 cd ..
288%endif
606ddb2b 289%endif
35bca45b 290
21baaa38 291%if %{with kernel}
606ddb2b
ER
292cd lib/modules
293
294%build_kernel_modules -C vmci-only -m vmci SRCROOT=$PWD VM_KBUILD=26 VM_CCVER=%{ccver}
295
296%build_kernel_modules -C vmmon-only -m vmmon SRCROOT=$PWD VM_KBUILD=26 VM_CCVER=%{ccver} <<'EOF'
297if grep -q "^CONFIG_PREEMPT_RT=y$" o/.config; then
298 sed -e '/pollQueueLock/s/SPIN_LOCK_UNLOCKED/SPIN_LOCK_UNLOCKED(pollQueueLock)/' \
299 -e '/timerLock/s/SPIN_LOCK_UNLOCKED/SPIN_LOCK_UNLOCKED(timerLock)/' \
300 linux/driver.c.dist > linux/driver.c
301else
302 cat linux/driver.c.dist > linux/driver.c
303fi
304EOF
305
306%build_kernel_modules -C vmnet-only -m vmnet SRCROOT=$PWD VM_KBUILD=26 VM_CCVER=%{ccver} <<'EOF'
307if grep -q "^CONFIG_PREEMPT_RT=y$" o/.config; then
308 sed -e 's/SPIN_LOCK_UNLOCKED/SPIN_LOCK_UNLOCKED(vnetHubLock)/' \
309 hub.c.dist > hub.c
310 sed -e 's/RW_LOCK_UNLOCKED/RW_LOCK_UNLOCKED(vnetPeerLock)/' \
311 driver.c.dist > driver.c
312else
313 cat hub.c.dist > hub.c
314 cat driver.c.dist > driver.c
315fi
316EOF
ecad5a32 317%endif
21baaa38
MM
318
319%install
320rm -rf $RPM_BUILD_ROOT
321
322%if %{with userspace}
323install -d \
5cc7759b 324 $RPM_BUILD_ROOT%{_sysconfdir}/vmware{,-server-console} \
21baaa38
MM
325 $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet8/{nat,dhcpd} \
326 $RPM_BUILD_ROOT%{_bindir} \
327 $RPM_BUILD_ROOT%{_sbindir} \
a4a79c8a 328 $RPM_BUILD_ROOT%{_libdir}/vmware{,-server-console}/bin \
73b8f8bc 329 $RPM_BUILD_ROOT%{_libdir}/vmware/serverd \
21baaa38
MM
330 $RPM_BUILD_ROOT%{_mandir} \
331 $RPM_BUILD_ROOT%{_pixmapsdir} \
332 $RPM_BUILD_ROOT%{_desktopdir} \
333 $RPM_BUILD_ROOT/etc/rc.d/init.d \
a4a79c8a 334 $RPM_BUILD_ROOT/var/{log,run}/vmware
35bca45b 335
4e42adb1 336%if 0
35bca45b 337 cd control-only
338 %{__make} install \
339 DESTDIR=$RPM_BUILD_ROOT
340 cd ..
4e42adb1 341%endif
73b8f8bc 342
4e42adb1 343%if 0
73b8f8bc 344 # copy other required perl modules
345 cp -r lib/perl5/site_perl/5.005/VMware $RPM_BUILD_ROOT%{perl_vendorarch}
346 cp -r lib/perl5/site_perl/5.005/i386-linux/VMware/VmdbPerl $RPM_BUILD_ROOT%{perl_vendorarch}/VMware
347 cp -r lib/perl5/site_perl/5.005/i386-linux/VMware/{HConfig,VmdbPerl}.pm $RPM_BUILD_ROOT%{perl_vendorarch}/VMware
348 cp -r lib/perl5/site_perl/5.005/i386-linux/auto/VMware/{HConfig,VmdbPerl} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/VMware
349
350 # remove unecessary files
351 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/VMware/{HConfig,VmdbPerl,VmPerl}/.{exists,packlist}
21baaa38 352%endif
4e42adb1 353%endif
21baaa38
MM
354
355%if %{with kernel}
606ddb2b
ER
356%install_kernel_modules -m lib/modules/vmci-only/vmci -d misc
357%install_kernel_modules -m lib/modules/vmmon-only/vmmon -d misc
358%install_kernel_modules -m lib/modules/vmnet-only/vmnet -d misc
21baaa38
MM
359%endif
360
361%if %{with userspace}
b70d7c8e
ER
362install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/vmnet
363install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet.conf
364install %{SOURCE7} $RPM_BUILD_ROOT%{_pixmapsdir}
365install %{SOURCE8} $RPM_BUILD_ROOT%{_desktopdir}
366install %{SOURCE9} $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet8/nat/nat.conf
367install %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet8/dhcpd/dhcpd.conf
21baaa38
MM
368
369touch $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet8/dhcpd/dhcpd.leases
370touch $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet8/dhcpd/dhcpd.leases~
371
372install bin/*-* $RPM_BUILD_ROOT%{_bindir}
373install sbin/*-* $RPM_BUILD_ROOT%{_sbindir}
a4a79c8a 374install lib/bin/vmware-vmx $RPM_BUILD_ROOT%{_libdir}/vmware/bin
21baaa38 375
4e42adb1
ER
376%if 0
377sed -e '
378s@%sitearch%@%{perl_sitearch}@g;
379s@%sitelib%@%{perl_sitelib}@g;
380s@%vendorarch%@%{perl_vendorarch}@g;
381s@%vendorlib%@%{perl_vendorlib}@g;
382s@%archlib%@%{perl_archlib}@g;
383s@%privlib%@%{perl_privlib}@g;' < lib/serverd/init.pl.default > $RPM_BUILD_ROOT%{_libdir}/vmware/serverd/init.pl
384%endif
73b8f8bc 385
4e42adb1 386cp -r lib/{config,help,isoimages,licenses,messages,share,xkeymap} \
a4a79c8a 387 $RPM_BUILD_ROOT%{_libdir}/vmware
21baaa38 388
4e42adb1 389%if 0
a4a79c8a 390cp -r vmware-server-console-distrib/lib/{bin-debug,config,help*,messages,share,xkeymap} \
5cc7759b 391 $RPM_BUILD_ROOT%{_libdir}/vmware-server-console
21baaa38 392
5cc7759b 393install vmware-server-console-distrib/lib/bin/vmware-remotemks $RPM_BUILD_ROOT%{_libdir}/vmware-server-console/bin
21baaa38 394
5cc7759b 395cp -r vmware-server-console-distrib/man/* man/* $RPM_BUILD_ROOT%{_mandir}
21baaa38 396gunzip $RPM_BUILD_ROOT%{_mandir}/man?/*.gz
4e42adb1 397%endif
21baaa38 398
5cc7759b 399cat > $RPM_BUILD_ROOT%{_sysconfdir}/vmware-server-console/locations <<EOF
21baaa38 400VM_BINDIR=%{_bindir}
5cc7759b 401VM_LIBDIR=%{_libdir}/vmware-server-console
21baaa38
MM
402EOF
403
404%if %{with internal_libs}
405install bin/vmware $RPM_BUILD_ROOT%{_bindir}
4e42adb1 406#install lib/bin/vmware $RPM_BUILD_ROOT%{_libdir}/vmware/bin
a4a79c8a 407cp -r lib/lib $RPM_BUILD_ROOT%{_libdir}/vmware
21baaa38 408
4e42adb1 409%if 0
5cc7759b 410install vmware-server-console-distrib/bin/vmware-server-console $RPM_BUILD_ROOT%{_bindir}
411install vmware-server-console-distrib/lib/bin/vmware $RPM_BUILD_ROOT%{_libdir}/vmware-server-console/bin
412cp -r vmware-server-console-distrib/lib/lib $RPM_BUILD_ROOT%{_libdir}/vmware-server-console
4e42adb1
ER
413%endif
414
21baaa38 415%else
4e42adb1 416%if 0
21baaa38 417install lib/bin/vmware $RPM_BUILD_ROOT%{_bindir}
5cc7759b 418install vmware-server-console-distrib/lib/bin/vmware-server-console $RPM_BUILD_ROOT%{_bindir}
21baaa38
MM
419%endif
420%endif
4e42adb1 421%endif
21baaa38 422
21baaa38
MM
423%clean
424rm -rf $RPM_BUILD_ROOT
425
426%post networking
427/sbin/chkconfig --add vmnet
ad4726ec 428%service vmnet restart "VMware networking service"
21baaa38
MM
429
430%preun networking
431if [ "$1" = "0" ]; then
ad4726ec 432 %service vmnet stop
21baaa38
MM
433 /sbin/chkconfig --del vmnet
434fi
435
606ddb2b
ER
436%post -n kernel-misc-vmci
437%depmod %{_kernel_ver}
438
439%postun -n kernel-misc-vmci
440%depmod %{_kernel_ver}
441
21baaa38
MM
442%post -n kernel-misc-vmmon
443%depmod %{_kernel_ver}
444
445%postun -n kernel-misc-vmmon
446%depmod %{_kernel_ver}
447
448%post -n kernel-misc-vmnet
449%depmod %{_kernel_ver}
450
451%postun -n kernel-misc-vmnet
452%depmod %{_kernel_ver}
453
21baaa38
MM
454%if %{with userspace}
455%files
456%defattr(644,root,root,755)
4e42adb1
ER
457%{?with_doc:%doc doc/*}
458%doc lib/configurator/vmnet-{dhcpd,nat}.conf
21baaa38 459%dir %{_sysconfdir}/vmware
21baaa38 460%attr(755,root,root) %{_bindir}/vm-support
4e42adb1
ER
461#%attr(755,root,root) %{_bindir}/vmware-authtrusted
462#%attr(755,root,root) %{_bindir}/vmware-cmd
463#%attr(755,root,root) %{_bindir}/vmware
464#%attr(755,root,root) %{_bindir}/vmware-loop
465#%attr(755,root,root) %{_bindir}/vmware-mount.pl
466%attr(755,root,root) %{_bindir}/vmware-config.pl
467%attr(755,root,root) %{_bindir}/vmware-mount
468%attr(755,root,root) %{_bindir}/vmware-uninstall.pl
469%attr(755,root,root) %{_bindir}/vmware-vimdump
470%attr(755,root,root) %{_bindir}/vmware-vimsh
471%attr(755,root,root) %{_bindir}/vmware-vsh
472%attr(755,root,root) %{_bindir}/vmware-watchdog
21baaa38
MM
473%attr(755,root,root) %{_bindir}/vmware-vdiskmanager
474%attr(755,root,root) %{_sbindir}/*
a4a79c8a 475%dir %{_libdir}/vmware
476%dir %{_libdir}/vmware/bin
21baaa38 477# warning: SUID !!!
a4a79c8a 478%attr(4755,root,root) %{_libdir}/vmware/bin/vmware-vmx
479%{_libdir}/vmware/config
480%{_libdir}/vmware/isoimages
21baaa38 481%if %{with internal_libs}
a4a79c8a 482%attr(755,root,root) %{_libdir}/vmware/bin/vmware
483%{_libdir}/vmware/lib
484%attr(755,root,root) %{_libdir}/vmware/lib/wrapper-gtk24.sh
21baaa38 485%endif
73b8f8bc 486%dir %{_libdir}/vmware/serverd
4e42adb1 487#%attr(750,root,root) %{_libdir}/vmware/serverd/init.pl
a4a79c8a 488%{_libdir}/vmware/licenses
489%dir %{_libdir}/vmware/messages
4e42adb1 490#%{_libdir}/vmware/messages/en
a4a79c8a 491%lang(ja) %{_libdir}/vmware/messages/ja
492%{_libdir}/vmware/share
493%{_libdir}/vmware/xkeymap
4e42adb1
ER
494#%{_mandir}/man1/vmware.1*
495#%{_mandir}/man3/*
496#%{perl_vendorarch}/VMware
497#%{perl_vendorarch}/auto/VMware
21baaa38 498%attr(1777,root,root) %dir /var/run/vmware
a4a79c8a 499%attr(751,root,root) %dir /var/log/vmware
21baaa38
MM
500%{_pixmapsdir}/*.png
501%{_desktopdir}/%{name}.desktop
502
503%files console
3c34bc99 504%defattr(644,root,root,755)
5cc7759b 505%dir %{_sysconfdir}/vmware-server-console
506%{_sysconfdir}/vmware-server-console/locations
4e42adb1 507#%attr(755,root,root) %{_bindir}/vmware-server-console
5cc7759b 508%dir %{_libdir}/vmware-server-console
509%dir %{_libdir}/vmware-server-console/bin
4e42adb1
ER
510#%attr(755,root,root) %{_libdir}/vmware-server-console/bin/vmware-remotemks
511#%{_libdir}/vmware-server-console/config
21baaa38 512%if %{with internal_libs}
5cc7759b 513%attr(755,root,root) %{_libdir}/vmware-server-console/bin/vmware
514%{_libdir}/vmware-server-console/lib
515%attr(755,root,root) %{_libdir}/vmware-server-console/lib/wrapper-gtk24.sh
21baaa38 516%endif
4e42adb1 517#%dir %{_libdir}/vmware-server-console/messages
5cc7759b 518#%{_libdir}/vmware-server-console/messages/en
4e42adb1
ER
519#%lang(ja) %{_libdir}/vmware-server-console/messages/ja
520#%{_libdir}/vmware-server-console/share
521#%{_libdir}/vmware-server-console/xkeymap
522#%{_mandir}/man1/vmware-server-console.1*
21baaa38
MM
523
524%files console-help
525%defattr(644,root,root,755)
4e42adb1 526#%{_libdir}/vmware-server-console/help*
21baaa38
MM
527
528%files debug
529%defattr(644,root,root,755)
4e42adb1 530#%dir %{_libdir}/vmware/bin-debug
21baaa38 531# warning: SUID !!!
4e42adb1
ER
532#%attr(4755,root,root) %{_libdir}/vmware/bin-debug/vmware-vmx
533#%dir %{_libdir}/vmware-server-console/bin-debug
534#%attr(755,root,root) %{_libdir}/vmware/bin-debug/vmware-remotemks
535#%attr(755,root,root) %{_libdir}/vmware-server-console/bin-debug/vmware-remotemks
21baaa38
MM
536
537%files help
538%defattr(644,root,root,755)
a4a79c8a 539%{_libdir}/vmware/help*
21baaa38
MM
540
541%files networking
542%defattr(644,root,root,755)
543%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vmware/vmnet.conf
544%attr(754,root,root) /etc/rc.d/init.d/vmnet
545%attr(755,root,root) %{_bindir}/vmnet-bridge
546%attr(755,root,root) %{_bindir}/vmnet-dhcpd
547%attr(755,root,root) %{_bindir}/vmnet-natd
548%attr(755,root,root) %{_bindir}/vmnet-netifup
549%attr(755,root,root) %{_bindir}/vmnet-sniffer
550%attr(755,root,root) %{_bindir}/vmware-ping
551%dir %{_sysconfdir}/vmware/vmnet8
f4d5d331 552%dir %{_sysconfdir}/vmware/vmnet8/dhcpd
21baaa38 553%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vmware/vmnet8/dhcpd/dhcpd.conf
f4d5d331 554%dir %{_sysconfdir}/vmware/vmnet8/nat
21baaa38
MM
555%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vmware/vmnet8/nat/nat.conf
556%verify(not md5 mtime size) %{_sysconfdir}/vmware/vmnet8/dhcpd/dhcpd.leases*
557
558%if 0
559%files samba
560%defattr(644,root,root,755)
561%doc lib/configurator/vmnet-smb.conf
562%attr(755,root,root) %{_bindir}/vmware-nmbd
563%attr(755,root,root) %{_bindir}/vmware-smbd
564%attr(755,root,root) %{_bindir}/vmware-smbpasswd
565%attr(755,root,root) %{_bindir}/vmware-smbpasswd.bin
566%{_libdir}/vmware/smb
567%endif
568%endif
569
570%if %{with kernel}
606ddb2b
ER
571%files -n kernel-misc-vmci
572%defattr(644,root,root,755)
573/lib/modules/%{_kernel_ver}/misc/vmci.ko*
574
21baaa38
MM
575%files -n kernel-misc-vmmon
576%defattr(644,root,root,755)
577/lib/modules/%{_kernel_ver}/misc/vmmon.ko*
578
579%files -n kernel-misc-vmnet
580%defattr(644,root,root,755)
581/lib/modules/%{_kernel_ver}/misc/vmnet.ko*
0108f1e9 582%endif
This page took 0.12349 seconds and 4 git commands to generate.