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