]> git.pld-linux.org Git - packages/VMware-workstation.git/blame - VMware-workstation.spec
- updated to 6.0.4-93057
[packages/VMware-workstation.git] / VMware-workstation.spec
CommitLineData
9101e6ac 1#
cd2cf119 2# TODO:
67ffd322 3# - Dependencies
bfe53ec1 4# - http://www.vmware.com/support/ws45/doc/devices_linux_kb_ws.html#1040861
cd2cf119 5#
9101e6ac 6# Conditional build:
cd2cf119 7%bcond_without dist_kernel # without distribution kernel
1c60cba6 8%bcond_without kernel # don't build kernel modules
1c60cba6
KK
9%bcond_without userspace # don't build userspace utilities
10%bcond_with internal_libs # internal libs stuff
11%bcond_with verbose # verbose build (V=1)
9101e6ac 12#
1fa2b347 13%include /usr/lib/rpm/macros.perl
8a2397ff 14
15%ifarch %{x8664}
16%undefine with_userspace
17%endif
0a06aef8 18
91b544d9 19%if !%{with kernel}
0a06aef8
KK
20%undefine with_dist_kernel
21%endif
bfe53ec1 22#
22db4e67
KK
23%define _ver 6.0.4
24%define _build 93057
25%define _rel 0.1
4bf9ab48 26%define _urel 115
e93187fc 27%define _ccver %(rpm -q --qf "%{VERSION}" gcc)
bfe53ec1 28#
1fa2b347 29Summary: VMware Workstation
174f0292 30Summary(pl.UTF-8): VMware Workstation - wirtualna platforma dla stacji roboczej
1fa2b347 31Name: VMware-workstation
34cc98b4 32Version: %{_ver}.%{_build}
784f7740 33Release: %{_rel}
1fa2b347 34License: custom, non-distributable
35Group: Applications/Emulators
22db4e67
KK
36Source0: http://download3.vmware.com/software/wkst/%{name}-%{_ver}-%{_build}.i386.tar.gz
37# NoSource0-md5: a0a8e1d8188f4be03357872a57a767ab
d6e62824 38Source1: http://knihovny.cvut.cz/ftp/pub/vmware/vmware-any-any-update%{_urel}.tar.gz
4bf9ab48 39# Source1-md5: ab33ff7a799fee77f0f4ba5667cd4b9a
34cc98b4 40Source2: %{name}.init
41Source3: %{name}-vmnet.conf
22db4e67
KK
42Source4: %{name}.desktop
43Source5: %{name}-nat.conf
44Source6: %{name}-dhcpd.conf
45Patch0: %{name}-vmmon.patch
46Patch1: %{name}-vmblock.patch
47Patch2: %{name}-run_script.patch
34cc98b4 48NoSource: 0
cd2cf119 49URL: http://www.vmware.com/
0a06aef8 50%{?with_kernel:BuildRequires: gcc-c++}
10635e79 51%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.7}
0a06aef8 52%{?with_userspace:BuildRequires: rpm-perlprov}
9115c026 53BuildRequires: rpmbuild(macros) >= 1.332
6af8c4b6 54BuildRequires: sed >= 4.0
be92e1af 55Requires: libgnomecanvasmm
453e3cb4 56Requires: libview >= 0.5.5-2
395685bb 57Obsoletes: VMware-workstation-samba
8a2397ff 58ExclusiveArch: %{ix86} %{x8664}
1fa2b347 59BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
60
b896adf7
PS
61%define _noautoprovfiles %{_libdir}/vmware/lib/.*\.so.*
62
1fa2b347 63%description
5cd8adda
JB
64VMware Workstation Virtual Platform is a thin software layer that
65allows multiple guest operating systems to run concurrently on a
01039a88 66single standard PC, without repartitioning or rebooting, and without
67significant loss of performance.
1fa2b347 68
58f6c8ac 69%description -l pl.UTF-8
5cd8adda 70VMware Workstation Virtual Platform to cienka warstwa oprogramowania
58f6c8ac
JR
71pozwalająca na jednoczesne działanie wielu gościnnych systemów
72operacyjnych na jednym zwykłym PC, bez repartycjonowania ani
73rebootowania, bez znacznej utraty wydajności.
1fa2b347 74
34cc98b4 75%package debug
6309bf22 76Summary: VMware debug utility
174f0292 77Summary(pl.UTF-8): Narzędzie VMware do odpluskwiania
01039a88 78Group: Applications/Emulators
34cc98b4 79Requires: %{name} = %{version}-%{release}
80
81%description debug
6309bf22
JB
82VMware debug utility.
83
58f6c8ac
JR
84%description debug -l pl.UTF-8
85Narzędzie VMware do odpluskwiania.
34cc98b4 86
34cc98b4 87%package help
88Summary: VMware Workstation help files
174f0292 89Summary(pl.UTF-8): Pliki pomocy dla VMware Workstation
01039a88 90Group: Applications/Emulators
34cc98b4 91Requires: %{name} = %{version}-%{release}
92Requires: mozilla
93
94%description help
95VMware Workstation help files.
96
58f6c8ac 97%description help -l pl.UTF-8
34cc98b4 98Pliki pomocy dla VMware Workstation.
99
100%package networking
6309bf22 101Summary: VMware networking utilities
174f0292 102Summary(pl.UTF-8): Narzędzia VMware do obsługi sieci
01039a88 103Group: Applications/Emulators
a1f70bf6 104Requires(post,preun): /sbin/chkconfig
34cc98b4 105Requires: %{name} = %{version}-%{release}
a1f70bf6 106Requires: rc-scripts
e13470c2 107Obsoletes: VMware-workstation-samba
34cc98b4 108
109%description networking
6309bf22
JB
110VMware networking utilities.
111
58f6c8ac
JR
112%description networking -l pl.UTF-8
113Narzędzia VMware do obsługi sieci.
34cc98b4 114
22db4e67
KK
115%package -n kernel%{_alt_kernel}-misc-vmblock
116Summary: Kernel module for VMware Workstation
117Summary(pl.UTF-8): Moduł jądra dla VMware Workstation
118Release: %{_rel}@%{_kernel_ver_str}
119Group: Base/Kernel
120Requires(post,postun): /sbin/depmod
121Requires: dev >= 2.9.0-7
122%if %{with dist_kernel}
123%requires_releq_kernel
124Requires(postun): %releq_kernel
125%endif
126Provides: kernel(vmblock) = %{version}-%{_rel}
127
128%description -n kernel%{_alt_kernel}-misc-vmblock
129Kernel module for VMware Workstation - vmblock.
130
131%description -n kernel%{_alt_kernel}-misc-vmblock -l pl.UTF-8
132Moduł jądra dla VMware Workstation - vmblock.
133
10635e79 134%package -n kernel%{_alt_kernel}-misc-vmmon
34cc98b4 135Summary: Kernel module for VMware Workstation
174f0292 136Summary(pl.UTF-8): Moduł jądra dla VMware Workstation
784f7740 137Release: %{_rel}@%{_kernel_ver_str}
9101e6ac 138Group: Base/Kernel
34cc98b4 139Requires(post,postun): /sbin/depmod
cc138dbb
PS
140Requires: dev >= 2.9.0-7
141%if %{with dist_kernel}
17602688 142%requires_releq_kernel
143Requires(postun): %releq_kernel
cc138dbb
PS
144%endif
145Provides: kernel(vmmon) = %{version}-%{_rel}
34cc98b4 146
10635e79 147%description -n kernel%{_alt_kernel}-misc-vmmon
22db4e67 148Kernel module for VMware Workstation - vmmon.
34cc98b4 149
58f6c8ac 150%description -n kernel%{_alt_kernel}-misc-vmmon -l pl.UTF-8
22db4e67 151Moduł jądra dla VMware Workstation - vmmon.
34cc98b4 152
10635e79 153%package -n kernel%{_alt_kernel}-misc-vmnet
34cc98b4 154Summary: Kernel module for VMware Workstation
174f0292 155Summary(pl.UTF-8): Moduł jądra dla VMware Workstation
34cc98b4 156Release: %{_rel}@%{_kernel_ver_str}
157Group: Base/Kernel
9101e6ac 158Requires(post,postun): /sbin/depmod
cc138dbb
PS
159Requires: dev >= 2.9.0-7
160%if %{with dist_kernel}
17602688 161%requires_releq_kernel
162Requires(postun): %releq_kernel
cc138dbb
PS
163%endif
164Provides: kernel(vmnet) = %{version}-%{_rel}
9101e6ac 165
10635e79 166%description -n kernel%{_alt_kernel}-misc-vmnet
22db4e67 167Kernel module for VMware Workstation - vmnet.
9101e6ac 168
58f6c8ac 169%description -n kernel%{_alt_kernel}-misc-vmnet -l pl.UTF-8
22db4e67 170Moduł jądra dla VMware Workstation - vmnet.
9101e6ac 171
1fa2b347 172%prep
e621c787
AG
173%setup -q -n vmware-distrib -a1
174#%setup -qDT -n vmware-distrib -a1
d6e62824 175#mkdir vmware-any-any-update%{_urel}
8f8d58e0 176cd vmware-any-any-update%{_urel}
22db4e67 177tar xf vmblock.tar
d6e62824
AG
178tar xf vmmon.tar
179tar xf vmnet.tar
180#tar xf ../lib/modules/source/vmmon.tar
181#tar xf ../lib/modules/source/vmnet.tar
22db4e67
KK
182%patch0 -p1
183%patch1 -p1
d66c9f11 184cd -
22db4e67 185#%patch2 -p1
1fa2b347 186
187%build
6af8c4b6
PS
188sed -i 's:vm_db_answer_LIBDIR:VM_LIBDIR:g;s:vm_db_answer_BINDIR:VM_BINDIR:g' bin/vmware
189
8f8d58e0 190cd vmware-any-any-update%{_urel}
ab16e861 191chmod u+w ../lib/bin/vmware-vmx ../lib/bin-debug/vmware-vmx ../bin/vmnet-bridge
4d9d33a1 192
80b621d9 193%if 0
477ec055
JB
194rm -f update
195%{__cc} %{rpmldflags} %{rpmcflags} -o update update.c
4d9d33a1
PS
196./update vmx ../lib/bin/vmware-vmx
197./update vmxdebug ../lib/bin-debug/vmware-vmx
198./update bridge ../bin/vmnet-bridge
80b621d9 199%endif
4d9d33a1 200
1c60cba6 201%if %{with kernel}
4d9d33a1 202rm -rf built
ecb69759 203mkdir built
90a56a22 204
22db4e67 205%define ModuleBuildArgs VMWARE_VER=VME_V6 SRCROOT=$PWD VM_KBUILD=26 VM_CCVER=%{_ccver}
37703e5a 206
22db4e67
KK
207%build_kernel_modules -c -C vmblock-only -m vmblock %{ModuleBuildArgs} <<'EOF'
208rm -f */*.o *.o
209EOF
9115c026 210%build_kernel_modules -c -C vmmon-only -m vmmon %{ModuleBuildArgs} <<'EOF'
211rm -f */*.o *.o
212EOF
213%build_kernel_modules -c -C vmnet-only -m vmnet %{ModuleBuildArgs} <<'EOF'
214rm -f *.o
215EOF
1c60cba6 216%endif
1fa2b347 217
218%install
219rm -rf $RPM_BUILD_ROOT
1c60cba6
KK
220
221%if %{with userspace}
1fa2b347 222install -d \
34cc98b4 223 $RPM_BUILD_ROOT%{_sysconfdir}/vmware \
95d44b14 224 $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet8/{nat,dhcpd} \
1fa2b347 225 $RPM_BUILD_ROOT%{_bindir} \
22db4e67 226 $RPM_BUILD_ROOT%{_libdir}/vmware/{bin,share/{icons,pixmaps}} \
1fa2b347 227 $RPM_BUILD_ROOT%{_mandir} \
bfe53ec1 228 $RPM_BUILD_ROOT%{_pixmapsdir} \
95d44b14 229 $RPM_BUILD_ROOT%{_desktopdir} \
34cc98b4 230 $RPM_BUILD_ROOT/etc/rc.d/init.d \
cd2cf119 231 $RPM_BUILD_ROOT/var/run/vmware
1c60cba6
KK
232%endif
233
234%if %{with kernel}
17602688 235install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc
cd2cf119 236
8f8d58e0 237cd vmware-any-any-update%{_urel}
90a56a22 238
22db4e67 239%install_kernel_modules -m vmblock-only/vmblock,vmmon-only/vmmon,vmnet-only/vmnet -d misc
90a56a22 240
34cc98b4 241cd -
1c60cba6 242%endif
1fa2b347 243
1c60cba6 244%if %{with userspace}
34cc98b4 245install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/vmnet
103bf38a 246install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet.conf
22db4e67
KK
247install %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}
248install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet8/nat/nat.conf
249install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet8/dhcpd/dhcpd.conf
95d44b14 250
251touch $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet8/dhcpd/dhcpd.leases
252touch $RPM_BUILD_ROOT%{_sysconfdir}/vmware/vmnet8/dhcpd/dhcpd.leases~
34cc98b4 253
83ddec1f 254install lib/share/pixmaps/* $RPM_BUILD_ROOT%{_libdir}/vmware/share/pixmaps
22db4e67 255install lib/share/icons/hicolor/48x48/apps/vmware-workstation.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
0a06aef8 256# required for starting vmware
22db4e67 257install doc/EULA $RPM_BUILD_ROOT%{_libdir}/vmware/share/EULA.txt
83ddec1f 258
6af8c4b6 259install bin/*-* $RPM_BUILD_ROOT%{_bindir}
520567ec 260install lib/bin/vmware-vmx $RPM_BUILD_ROOT%{_libdir}/vmware/bin
34cc98b4 261
22db4e67
KK
262install lib/lib/libvmwarebase.so.0/libvmwarebase.so.0 $RPM_BUILD_ROOT%{_libdir}
263install lib/lib/libvmwareui.so.0/libvmwareui.so.0 $RPM_BUILD_ROOT%{_libdir}
264
3c607008 265cp -r lib/{bin-debug,config,floppies,help*,isoimages,licenses,messages,xkeymap} \
1fa2b347 266 $RPM_BUILD_ROOT%{_libdir}/vmware
267
22db4e67 268cp -r lib/share/icons/* $RPM_BUILD_ROOT%{_libdir}/vmware/share/icons
34cc98b4 269cp -r man/* $RPM_BUILD_ROOT%{_mandir}
270gunzip $RPM_BUILD_ROOT%{_mandir}/man?/*.gz
271
272cat > $RPM_BUILD_ROOT%{_sysconfdir}/vmware/locations <<EOF
273VM_BINDIR=%{_bindir}
274VM_LIBDIR=%{_libdir}/vmware
cd2cf119 275EOF
1fa2b347 276
34cc98b4 277%if %{with internal_libs}
520567ec
PS
278install bin/vmware $RPM_BUILD_ROOT%{_bindir}
279install lib/bin/vmware $RPM_BUILD_ROOT%{_libdir}/vmware/bin
22db4e67 280install lib/bin/vmware-tray $RPM_BUILD_ROOT%{_libdir}/vmware/bin
babef6a4 281cp -r lib/lib $RPM_BUILD_ROOT%{_libdir}/vmware
2bbb97f5 282cp -r lib/libconf $RPM_BUILD_ROOT%{_libdir}/vmware
6af8c4b6 283%else
520567ec 284install lib/bin/vmware $RPM_BUILD_ROOT%{_bindir}
22db4e67 285install lib/bin/vmware-tray $RPM_BUILD_ROOT%{_bindir}
34cc98b4 286%endif
1c60cba6 287%endif
34cc98b4 288
1fa2b347 289%clean
290rm -rf $RPM_BUILD_ROOT
291
34cc98b4 292%post networking
293/sbin/chkconfig --add vmnet
d7816459 294%service vmnet restart "VMware networking service"
34cc98b4 295
296%preun networking
297if [ "$1" = "0" ]; then
d7816459 298 %service vmnet stop
34cc98b4 299 /sbin/chkconfig --del vmnet
300fi
301
22db4e67
KK
302%post -n kernel%{_alt_kernel}-misc-vmblock
303%depmod %{_kernel_ver}
304
305%postun -n kernel%{_alt_kernel}-misc-vmblock
306%depmod %{_kernel_ver}
307
10635e79 308%post -n kernel%{_alt_kernel}-misc-vmmon
e6731dd2 309%depmod %{_kernel_ver}
9101e6ac 310
10635e79 311%postun -n kernel%{_alt_kernel}-misc-vmmon
e6731dd2 312%depmod %{_kernel_ver}
9101e6ac 313
10635e79 314%post -n kernel%{_alt_kernel}-misc-vmnet
e6731dd2 315%depmod %{_kernel_ver}
9101e6ac 316
10635e79 317%postun -n kernel%{_alt_kernel}-misc-vmnet
34cc98b4 318%depmod %{_kernel_ver}
319
1c60cba6 320%if %{with userspace}
1fa2b347 321%files
322%defattr(644,root,root,755)
34cc98b4 323%doc doc/* lib/configurator/vmnet-{dhcpd,nat}.conf
34cc98b4 324%dir %{_sysconfdir}/vmware
325%{_sysconfdir}/vmware/locations
326%attr(755,root,root) %{_bindir}/vmware
34cc98b4 327%attr(755,root,root) %{_bindir}/vmware-loop
328%attr(755,root,root) %{_bindir}/vmware-mount.pl
22db4e67 329%attr(755,root,root) %{_bindir}/vmware-tray
bfe53ec1 330%attr(755,root,root) %{_bindir}/vmware-vdiskmanager
22db4e67
KK
331%attr(755,root,root) %{_libdir}/libvmwarebase.so.*
332%attr(755,root,root) %{_libdir}/libvmwareui.so.*
333
1fa2b347 334%dir %{_libdir}/vmware
cd2cf119 335%dir %{_libdir}/vmware/bin
cd2cf119
PS
336# warning: SUID !!!
337%attr(4755,root,root) %{_libdir}/vmware/bin/vmware-vmx
1fa2b347 338%{_libdir}/vmware/config
1fa2b347 339%{_libdir}/vmware/floppies
340%{_libdir}/vmware/isoimages
6af8c4b6
PS
341%if %{with internal_libs}
342%attr(755,root,root) %{_libdir}/vmware/bin/vmware
2bbb97f5 343%dir %{_libdir}/vmware/lib
344%{_libdir}/vmware/lib/lib*
6af8c4b6
PS
345%attr(755,root,root) %{_libdir}/vmware/lib/wrapper-gtk24.sh
346%endif
1fa2b347 347%{_libdir}/vmware/licenses
e60c113d 348%dir %{_libdir}/vmware/messages
349%{_libdir}/vmware/messages/en
350%lang(ja) %{_libdir}/vmware/messages/ja
83ddec1f 351%{_libdir}/vmware/share
1fa2b347 352%{_libdir}/vmware/xkeymap
cd2cf119
PS
353%{_mandir}/man1/*
354%attr(1777,root,root) %dir /var/run/vmware
6c2cd951 355%{_pixmapsdir}/*.png
95d44b14 356%{_desktopdir}/%{name}.desktop
9101e6ac 357
34cc98b4 358%files debug
9101e6ac 359%defattr(644,root,root,755)
34cc98b4 360%dir %{_libdir}/vmware/bin-debug
361# warning: SUID !!!
362%attr(4755,root,root) %{_libdir}/vmware/bin-debug/vmware-vmx
363
364%files help
365%defattr(644,root,root,755)
366%{_libdir}/vmware/help*
367
368%files networking
369%defattr(644,root,root,755)
103bf38a 370%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vmware/vmnet.conf
34cc98b4 371%attr(754,root,root) /etc/rc.d/init.d/vmnet
372%attr(755,root,root) %{_bindir}/vmnet-bridge
22db4e67 373%attr(755,root,root) %{_bindir}/vmnet-detect
34cc98b4 374%attr(755,root,root) %{_bindir}/vmnet-dhcpd
375%attr(755,root,root) %{_bindir}/vmnet-natd
376%attr(755,root,root) %{_bindir}/vmnet-netifup
377%attr(755,root,root) %{_bindir}/vmnet-sniffer
378%attr(755,root,root) %{_bindir}/vmware-ping
f1066249 379%dir %{_sysconfdir}/vmware/vmnet8
22db4e67
KK
380%dir %{_sysconfdir}/vmware/vmnet8/dhcpd
381%dir %{_sysconfdir}/vmware/vmnet8/nat
103bf38a
SP
382%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vmware/vmnet8/dhcpd/dhcpd.conf
383%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vmware/vmnet8/nat/nat.conf
384%verify(not md5 mtime size) %{_sysconfdir}/vmware/vmnet8/dhcpd/dhcpd.leases*
1c60cba6 385%endif
34cc98b4 386
22db4e67
KK
387%if %{with kernel} || %{with dist_kernel}
388%files -n kernel%{_alt_kernel}-misc-vmblock
389%defattr(644,root,root,755)
390/lib/modules/%{_kernel_ver}/misc/vmblock.ko*
391
d577a9d1 392%if %{with kernel} || %{with dist_kernel}
10635e79 393%files -n kernel%{_alt_kernel}-misc-vmmon
34cc98b4 394%defattr(644,root,root,755)
7cff8066 395/lib/modules/%{_kernel_ver}/misc/vmmon.ko*
34cc98b4 396
10635e79 397%files -n kernel%{_alt_kernel}-misc-vmnet
34cc98b4 398%defattr(644,root,root,755)
7cff8066 399/lib/modules/%{_kernel_ver}/misc/vmnet.ko*
f411e373 400%endif
This page took 0.209223 seconds and 4 git commands to generate.