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