]>
Commit | Line | Data |
---|---|---|
3f055ecc ER |
1 | # TODO |
2 | # - sync modules -pl | |
e3c25a84 | 3 | # |
c744b566 | 4 | # Conditional build: |
5 | %bcond_without dist_kernel # without distribution kernel | |
6 | %bcond_without kernel # don't build kernel modules | |
c744b566 | 7 | %bcond_without userspace # don't build userspace utilities |
c744b566 | 8 | %bcond_with internal_libs # internal libs stuff |
9 | %bcond_with verbose # verbose build (V=1) | |
c744b566 | 10 | |
397503c2 ER |
11 | %if %{without kernel} |
12 | %undefine with_dist_kernel | |
13 | %endif | |
c744b566 | 14 | %ifarch %{x8664} |
15 | %undefine with_userspace | |
16 | %endif | |
8793ed7f | 17 | |
e3c25a84 JB |
18 | %define ver 16.1.2 |
19 | %define buildid 17966106 | |
8793ed7f ER |
20 | %define rel 0.1 |
21 | ||
22 | # point to some working url | |
23 | %define download_url %{nil} | |
24 | ||
c744b566 | 25 | Summary: VMware player |
ae690285 | 26 | Summary(pl.UTF-8): VMware player - wirtualna platforma dla stacji roboczej |
c744b566 | 27 | Name: VMware-player |
397503c2 | 28 | Version: %{ver}.%{buildid} |
8793ed7f | 29 | Release: %{rel} |
c744b566 | 30 | License: custom, non-distributable |
31 | Group: Applications/Emulators | |
8793ed7f | 32 | # https://www.vmware.com/go/downloadplayer/ |
e3c25a84 JB |
33 | Source0: %{download_url}VMware-Player-%{ver}-%{buildid}.x86_64.bundle |
34 | # NoSource0-md5: f50090a394730f20c0ae9c715e56f6ed | |
6f6022e1 | 35 | NoSource: 0 |
8793ed7f | 36 | Patch0: installer.patch |
e3c25a84 | 37 | URL: https://www.vmware.com/products/workstation-player.html |
7116706d | 38 | %{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.7} |
c744b566 | 39 | BuildRequires: rpmbuild(macros) >= 1.268 |
40 | BuildRequires: sed >= 4.0 | |
d99adf06 ER |
41 | Requires: atk |
42 | Requires: cairo | |
43 | Requires: cairomm | |
75ff6eae | 44 | Requires: curl-libs >= 7.19.7-2 |
d99adf06 ER |
45 | Requires: expat |
46 | Requires: fontconfig-libs | |
47 | Requires: freetype | |
48 | Requires: glib2 | |
49 | Requires: glibmm | |
50 | Requires: gtk+2 | |
51 | Requires: gtkmm | |
52 | Requires: gtkmm-atk | |
f5ea5751 | 53 | Requires: libaio |
d99adf06 ER |
54 | Requires: libarchive |
55 | Requires: libart_lgpl | |
56 | Requires: libgcc | |
57 | Requires: libpng | |
58 | Requires: librsvg | |
75ff6eae ER |
59 | Requires: libsexy |
60 | Requires: libsexymm | |
d99adf06 ER |
61 | Requires: libsigc++ |
62 | Requires: libstdc++ | |
c744b566 | 63 | Requires: libview >= 0.5.5-2 |
d99adf06 | 64 | Requires: libxml2 |
4b4af15f | 65 | Requires: openssl >= 0.9.7 |
d99adf06 ER |
66 | Requires: pango |
67 | Requires: pangomm | |
68 | Requires: xorg-lib-libXau | |
69 | Requires: xorg-lib-libXcomposite | |
70 | Requires: xorg-lib-libXcursor | |
71 | Requires: xorg-lib-libXdamage | |
72 | Requires: xorg-lib-libXdmcp | |
73 | Requires: xorg-lib-libXfixes | |
74 | Requires: xorg-lib-libXft | |
75 | Requires: xorg-lib-libXinerama | |
76 | Requires: xorg-lib-libXrandr | |
77 | Requires: xorg-lib-libXrender | |
e3c25a84 | 78 | ExclusiveArch: %{x8664} |
c744b566 | 79 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
80 | ||
81 | %define _noautoprovfiles %{_libdir}/vmware/lib/.*\.so.* | |
82 | ||
e3c25a84 JB |
83 | %define debug_package %{nil} |
84 | ||
c744b566 | 85 | %description |
86 | VMware Player Virtual Platform is a thin software layer that allows | |
87 | multiple guest operating systems to run concurrently on a single | |
88 | standard PC, without repartitioning or rebooting, and without | |
89 | significant loss of performance. | |
90 | ||
8cef0267 | 91 | %description -l pl.UTF-8 |
c744b566 | 92 | VMware Player Virtual Platform to cienka warstwa oprogramowania |
8cef0267 JR |
93 | pozwalająca na jednoczesne działanie wielu gościnnych systemów |
94 | operacyjnych na jednym zwykłym PC, bez repartycjonowania ani | |
95 | rebootowania, bez znacznej utraty wydajności. | |
c744b566 | 96 | |
97 | %package debug | |
98 | Summary: VMware debug utility | |
ae690285 | 99 | Summary(pl.UTF-8): Narzędzie VMware do odpluskwiania |
c744b566 | 100 | Group: Applications/Emulators |
101 | Requires: %{name} = %{version}-%{release} | |
102 | ||
103 | %description debug | |
104 | VMware debug utility. | |
105 | ||
8cef0267 JR |
106 | %description debug -l pl.UTF-8 |
107 | Narzędzie VMware do odpluskwiania. | |
c744b566 | 108 | |
109 | %package help | |
110 | Summary: VMware Player help files | |
ae690285 | 111 | Summary(pl.UTF-8): Pliki pomocy dla VMware Player |
c744b566 | 112 | Group: Applications/Emulators |
113 | Requires: %{name} = %{version}-%{release} | |
c744b566 | 114 | |
115 | %description help | |
116 | VMware Player help files. | |
117 | ||
8cef0267 | 118 | %description help -l pl.UTF-8 |
c744b566 | 119 | Pliki pomocy dla VMware Player. |
120 | ||
121 | %package networking | |
122 | Summary: VMware networking utilities | |
ae690285 | 123 | Summary(pl.UTF-8): Narzędzia VMware do obsługi sieci |
c744b566 | 124 | Group: Applications/Emulators |
125 | Requires(post,preun): /sbin/chkconfig | |
126 | Requires: %{name} = %{version}-%{release} | |
c744b566 | 127 | Requires: rc-scripts |
e9f6663b | 128 | Obsoletes: VMware-player-samba < 2.0 |
c744b566 | 129 | |
130 | %description networking | |
131 | VMware networking utilities. | |
132 | ||
8cef0267 JR |
133 | %description networking -l pl.UTF-8 |
134 | Narzędzia VMware do obsługi sieci. | |
c744b566 | 135 | |
7eb646b8 | 136 | %package -n kernel%{_alt_kernel}-misc-vmmon |
3f055ecc | 137 | Summary: VMware Virtual Machine Monitor |
ae690285 | 138 | Summary(pl.UTF-8): Moduł jądra dla VMware Player |
8793ed7f | 139 | Release: %{rel}@%{_kernel_ver_str} |
c744b566 | 140 | Group: Base/Kernel |
141 | Requires(post,postun): /sbin/depmod | |
142 | Requires: dev >= 2.9.0-7 | |
143 | %if %{with dist_kernel} | |
a0a85295 | 144 | %requires_releq_kernel |
145 | Requires(postun): %releq_kernel | |
c744b566 | 146 | %endif |
c744b566 | 147 | |
7eb646b8 | 148 | %description -n kernel%{_alt_kernel}-misc-vmmon |
3f055ecc | 149 | VMware Virtual Machine Monitor. |
c744b566 | 150 | |
8cef0267 JR |
151 | %description -n kernel%{_alt_kernel}-misc-vmmon -l pl.UTF-8 |
152 | Moduły jądra dla VMware Player - vmmon. | |
c744b566 | 153 | |
7eb646b8 | 154 | %package -n kernel%{_alt_kernel}-misc-vmnet |
3f055ecc | 155 | Summary: VMware Virtual Networking Driver |
ae690285 | 156 | Summary(pl.UTF-8): Moduł jądra dla VMware Player |
8793ed7f | 157 | Release: %{rel}@%{_kernel_ver_str} |
c744b566 | 158 | Group: Base/Kernel |
159 | Requires(post,postun): /sbin/depmod | |
160 | Requires: dev >= 2.9.0-7 | |
161 | %if %{with dist_kernel} | |
a0a85295 | 162 | %requires_releq_kernel |
163 | Requires(postun): %releq_kernel | |
c744b566 | 164 | %endif |
c744b566 | 165 | |
7eb646b8 | 166 | %description -n kernel%{_alt_kernel}-misc-vmnet |
3f055ecc | 167 | VMware Virtual Networking Driver. |
c744b566 | 168 | |
8cef0267 JR |
169 | %description -n kernel%{_alt_kernel}-misc-vmnet -l pl.UTF-8 |
170 | Moduły jądra dla VMware Player - vmnet. | |
c744b566 | 171 | |
8793ed7f ER |
172 | %prep |
173 | %setup -qcT | |
e3c25a84 | 174 | |
8793ed7f | 175 | export SOURCE=%{SOURCE0} |
c744b566 | 176 | |
8793ed7f ER |
177 | # extract installer shell blob |
178 | %{__sed} -ne '1,/^exit/{s,$0,$SOURCE,;p}' $SOURCE > install.sh | |
179 | %{__sed} -i -e "2iSOURCE=$SOURCE" install.sh | |
397503c2 | 180 | %patch0 -p1 |
8793ed7f ER |
181 | chmod a+x install.sh |
182 | ||
183 | ./install.sh --extract bundles | |
184 | ||
e3c25a84 | 185 | cd bundles/vmware-vmx/lib/modules |
8793ed7f ER |
186 | %{__tar} xf source/vmmon.tar |
187 | %{__tar} xf source/vmnet.tar | |
8793ed7f | 188 | cd - |
397503c2 | 189 | |
c744b566 | 190 | %build |
8793ed7f | 191 | %if %{with kernel} |
e3c25a84 JB |
192 | cd bundles/vmware-vmx/lib/modules |
193 | ||
194 | %build_kernel_modules -C vmmon-only -m vmmon SRCROOT=$PWD VM_KBUILD=yes | |
195 | ||
196 | %build_kernel_modules -C vmnet-only -m vmnet SRCROOT=$PWD VM_KBUILD=yes | |
197 | ||
198 | cd ../../../.. | |
c744b566 | 199 | %endif |
200 | ||
201 | %install | |
202 | rm -rf $RPM_BUILD_ROOT | |
e3c25a84 | 203 | |
c744b566 | 204 | %if %{with kernel} |
e3c25a84 JB |
205 | %install_kernel_modules -m bundles/vmware-vmx/lib/modules/vmmon-only/vmmon -d misc |
206 | %install_kernel_modules -m bundles/vmware-vmx/lib/modules/vmnet-only/vmnet -d misc | |
c744b566 | 207 | %endif |
208 | ||
209 | %clean | |
210 | rm -rf $RPM_BUILD_ROOT | |
211 | ||
7eb646b8 | 212 | %post -n kernel%{_alt_kernel}-misc-vmmon |
c744b566 | 213 | %depmod %{_kernel_ver} |
214 | ||
7eb646b8 | 215 | %postun -n kernel%{_alt_kernel}-misc-vmmon |
c744b566 | 216 | %depmod %{_kernel_ver} |
217 | ||
7eb646b8 | 218 | %post -n kernel%{_alt_kernel}-misc-vmnet |
c744b566 | 219 | %depmod %{_kernel_ver} |
220 | ||
7eb646b8 | 221 | %postun -n kernel%{_alt_kernel}-misc-vmnet |
c744b566 | 222 | %depmod %{_kernel_ver} |
223 | ||
75ff6eae ER |
224 | %if %{with userspace} |
225 | %files | |
226 | %defattr(644,root,root,755) | |
227 | %endif | |
228 | ||
7eb646b8 | 229 | %files -n kernel%{_alt_kernel}-misc-vmmon |
c744b566 | 230 | %defattr(644,root,root,755) |
231 | /lib/modules/%{_kernel_ver}/misc/vmmon.ko* | |
232 | ||
7eb646b8 | 233 | %files -n kernel%{_alt_kernel}-misc-vmnet |
c744b566 | 234 | %defattr(644,root,root,755) |
235 | /lib/modules/%{_kernel_ver}/misc/vmnet.ko* |