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