]>
Commit | Line | Data |
---|---|---|
44a0c82d ER |
1 | # NOTE |
2 | # - https://www.virtualbox.org/wiki/Linux%20build%20instructions | |
744bc35e JR |
3 | # TODO |
4 | # - java bindings | |
74268e47 | 5 | # - Package SDK. |
ffb38bb6 | 6 | # - Check License of VBoxGuestAdditions_*.iso, it's probably not GPL v2. |
5f8b0a92 | 7 | # If so check if it is distributable. |
21a1d8ab | 8 | # - guest x11 additions: currently incomplete/untested |
23790586 | 9 | # - enable VDE networking: --enable-vde |
21a1d8ab | 10 | # - initscripts for webservice |
988a8f09 | 11 | # - fix desc for dkms packages (proper wording needed), kernel modules desc is mess as well |
48363591 | 12 | # |
13 | # Conditional build: | |
8da42f47 | 14 | %bcond_without doc # don't build the documentation |
077e37dc | 15 | %bcond_without debuginfo # disable debuginfo creation (to save space when compiling) |
48363591 | 16 | %bcond_without dist_kernel # without distribution kernel |
d1c4ec5b | 17 | %bcond_without kernel # don't build kernel module |
d1c4ec5b | 18 | %bcond_without userspace # don't build userspace package |
21a1d8ab | 19 | %bcond_with webservice # webservice (SOAP) support |
7223ee37 | 20 | %bcond_without lightdm # lightdm greeter |
c38a3946 | 21 | %bcond_without dkms # build dkms package |
bddee32c | 22 | %bcond_without verbose |
05f1b1f5 | 23 | |
8833bce1 | 24 | %if %{without kernel} |
25 | %undefine with_dist_kernel | |
163ddb28 JR |
26 | %else |
27 | %define _duplicate_files_terminate_build 0 | |
28 | %endif | |
29 | ||
30 | # The goal here is to have main, userspace, package built once with | |
31 | # simple release number, and only rebuild kernel packages with kernel | |
32 | # version as part of release number, without the need to bump release | |
33 | # with every kernel change. | |
34 | %if 0%{?_pld_builder:1} && %{with kernel} && %{with userspace} | |
35 | %{error:kernel and userspace cannot be built at the same time on PLD builders} | |
36 | exit 1 | |
8833bce1 | 37 | %endif |
163ddb28 | 38 | |
bd3faca3 | 39 | %if "%{_alt_kernel}" != "%{nil}" |
163ddb28 JR |
40 | %if 0%{?build_kernels:1} |
41 | %{error:alt_kernel and build_kernels are mutually exclusive} | |
42 | exit 1 | |
43 | %endif | |
bd3faca3 | 44 | %undefine with_userspace |
163ddb28 JR |
45 | %global _build_kernels %{alt_kernel} |
46 | %else | |
47 | %global _build_kernels %{?build_kernels:,%{?build_kernels}} | |
bd3faca3 | 48 | %endif |
163ddb28 | 49 | |
05f9288a ER |
50 | %if %{without userspace} |
51 | # nothing to be placed to debuginfo package | |
077e37dc ER |
52 | %undefine with_debuginfo |
53 | %endif | |
54 | ||
55 | %if %{without debuginfo} | |
05f9288a ER |
56 | %define _enable_debug_packages 0 |
57 | %endif | |
bd3faca3 | 58 | |
6ca4d491 | 59 | %define kbrs %(echo %{_build_kernels} | tr , '\\n' | while read n ; do echo %%undefine alt_kernel ; [ -z "$n" ] || echo %%define alt_kernel $n ; echo "BuildRequires:kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2" ; done) |
163ddb28 JR |
60 | %define kpkg %(echo %{_build_kernels} | tr , '\\n' | while read n ; do echo %%undefine alt_kernel ; [ -z "$n" ] || echo %%define alt_kernel $n ; echo %%kernel_pkg ; done) |
61 | %define bkpkg %(echo %{_build_kernels} | tr , '\\n' | while read n ; do echo %%undefine alt_kernel ; [ -z "$n" ] || echo %%define alt_kernel $n ; echo %%build_kernel_pkg ; done) | |
62 | %define ikpkg %(echo %{_build_kernels} | tr , '\\n' | while read n ; do echo %%undefine alt_kernel ; [ -z "$n" ] || echo %%define alt_kernel $n ; echo %%install_kernel_pkg ; done) | |
63 | ||
f84ed0e2 | 64 | %define rel 4 |
33aeed61 | 65 | %define pname VirtualBox |
393ec35d ER |
66 | Summary: VirtualBox - x86 hardware virtualizer |
67 | Summary(pl.UTF-8): VirtualBox - wirtualizator sprzętu x86 | |
6ca4d491 | 68 | Name: %{pname}%{?_pld_builder:%{?with_kernel:-kernel}}%{_alt_kernel} |
b328d783 | 69 | Version: 4.3.8 |
6ca4d491 | 70 | Release: %{rel}%{?_pld_builder:%{?with_kernel:@%{_kernel_ver_str}}} |
48363591 | 71 | License: GPL v2 |
72 | Group: Applications/Emulators | |
33aeed61 | 73 | Source0: http://download.virtualbox.org/virtualbox/%{version}/%{pname}-%{version}.tar.bz2 |
b328d783 | 74 | # Source0-md5: 422ab09b7eb9c0564b55a6a0a6e6678f |
744bc35e | 75 | Source1: http://download.virtualbox.org/virtualbox/%{version}/VBoxGuestAdditions_%{version}.iso |
b328d783 | 76 | # Source1-md5: f23d3980a509418b2dcb614483271ffa |
07e9b84d | 77 | Source2: vboxservice.init |
4365ecaf | 78 | Source3: vboxservice.service |
4365ecaf JR |
79 | Source5: mount.vdi |
80 | Source6: udev.rules | |
81 | Source7: %{pname}-virtualbox-host-modules-load.conf | |
82 | Source8: %{pname}-virtualbox-guest-modules-load.conf | |
38d06cb9 ER |
83 | Source9: vboxautostart.init |
84 | Source10: autostart.cfg | |
33aeed61 | 85 | Patch0: %{pname}-configure-spaces.patch |
db6f33e3 KK |
86 | Patch1: %{pname}-VBoxSysInfo.patch |
87 | Patch2: %{pname}-warning_workaround.patch | |
88 | Patch3: %{pname}-dri.patch | |
44a0c82d | 89 | Patch4: wrapper.patch |
db6f33e3 | 90 | Patch5: xserver-1.12.patch |
44a0c82d | 91 | Patch6: hardening-shared.patch |
d3884acf | 92 | Patch7: lightdm-greeter-glib-includes.patch |
8d08b907 | 93 | Patch8: lightdm-greeter-g++-link.patch |
621cd96c | 94 | Patch9: pld-guest.patch |
b980c81c ER |
95 | Patch10: 16-no-update.patch |
96 | Patch11: 18-system-xorg.patch | |
48363591 | 97 | URL: http://www.virtualbox.org/ |
83ffcfa8 | 98 | %if %{with userspace} |
ce9843cd ER |
99 | %ifarch %{x8664} |
100 | BuildRequires: gcc-multilib | |
101 | BuildRequires: glibc-devel(i686) | |
102 | BuildRequires: libstdc++-multilib-devel | |
4fff279a | 103 | BuildRequires: libstdc++-multilib-static |
ce9843cd | 104 | %endif |
ce9843cd ER |
105 | %if "%{pld_release}" == "ac" |
106 | BuildRequires: XFree86-devel | |
107 | %else | |
1abc0217 | 108 | BuildRequires: xorg-lib-libXcomposite-devel |
ce9843cd ER |
109 | BuildRequires: xorg-lib-libXcursor-devel |
110 | BuildRequires: xorg-lib-libXmu-devel | |
e649d11e | 111 | BuildRequires: xorg-proto-glproto-devel |
acf12a87 | 112 | BuildRequires: xorg-xserver-server-devel |
ce9843cd | 113 | %endif |
00149140 | 114 | BuildRequires: OpenGL-GLU-devel |
523e7409 | 115 | BuildRequires: OpenGL-devel |
cef75615 | 116 | BuildRequires: QtGui-devel |
2d17bb72 | 117 | BuildRequires: QtNetwork-devel |
dd64a424 | 118 | BuildRequires: QtOpenGL-devel |
c574efad | 119 | BuildRequires: SDL-devel >= 1.2.7 |
9a1cb119 | 120 | BuildRequires: acpica |
ba702945 | 121 | BuildRequires: alsa-lib-devel >= 1.0.6 |
e5aaadde | 122 | BuildRequires: bash |
48363591 | 123 | BuildRequires: bcc |
124 | BuildRequires: bin86 | |
07ef7f06 | 125 | BuildRequires: curl-devel |
fc19d844 | 126 | BuildRequires: device-mapper-devel |
8da42f47 | 127 | %{?with_doc:BuildRequires: docbook-dtd44-xml} |
44a0c82d | 128 | BuildRequires: fakeroot |
df3c39bd | 129 | %{?with_lightdm:BuildRequires: fltk-devel} |
eba4b2aa | 130 | BuildRequires: gcc >= 5:3.2.3 |
55f7d7d3 | 131 | %{?with_webservice:BuildRequires: gsoap-devel} |
e9aa839a | 132 | BuildRequires: issue |
7733446a | 133 | BuildRequires: kBuild >= 0.1.9998.2700 |
48363591 | 134 | BuildRequires: libIDL-devel |
fa974331 | 135 | BuildRequires: libcap-static |
acf12a87 | 136 | BuildRequires: libdrm-devel |
ff01a704 | 137 | BuildRequires: libpng-devel >= 1.2.5 |
d22f0a53 | 138 | BuildRequires: libstdc++-devel >= 5:3.2.3 |
4fff279a | 139 | BuildRequires: libstdc++-static >= 5:3.2.3 |
48363591 | 140 | BuildRequires: libuuid-devel |
b75fd17a | 141 | BuildRequires: libvncserver-devel >= 0.9.9 |
df3c39bd | 142 | BuildRequires: libvpx-devel |
ba702945 | 143 | BuildRequires: libxml2-devel >= 2.6.26 |
76ea5ecb | 144 | BuildRequires: libxslt-devel >= 1.1.17 |
ba702945 | 145 | BuildRequires: libxslt-progs >= 1.1.17 |
7223ee37 | 146 | %{?with_lightdm:BuildRequires: lightdm-libs-qt-devel} |
744bc35e | 147 | BuildRequires: makeself |
90de3b27 | 148 | BuildRequires: mkisofs |
3613936b | 149 | BuildRequires: pam-devel |
acf12a87 | 150 | BuildRequires: pixman-devel |
0bf43862 | 151 | BuildRequires: pkgconfig |
ba702945 | 152 | BuildRequires: pulseaudio-devel >= 0.9.0 |
523e7409 | 153 | BuildRequires: python-devel |
6055e733 | 154 | BuildRequires: python-modules |
250583d4 | 155 | BuildRequires: qt4-build >= 4.2.0 |
2700662b | 156 | BuildRequires: qt4-linguist |
163ddb28 | 157 | BuildRequires: rpmbuild(macros) >= 1.678 |
1e840a77 | 158 | BuildRequires: sed >= 4.0 |
8da42f47 | 159 | %if %{with doc} |
744bc35e JR |
160 | BuildRequires: texlive-fonts-bitstream |
161 | BuildRequires: texlive-fonts-other | |
162 | BuildRequires: texlive-fonts-type1-bitstream | |
163 | BuildRequires: texlive-format-pdflatex | |
acf12a87 | 164 | BuildRequires: texlive-latex-ucs |
660fb056 | 165 | BuildRequires: texlive-xetex |
8da42f47 | 166 | %endif |
0bf43862 | 167 | BuildRequires: which |
e5aaadde | 168 | BuildRequires: xalan-c-devel >= 1.10.0 |
e5aaadde | 169 | BuildRequires: xerces-c-devel >= 2.6.0 |
fc19d844 | 170 | BuildRequires: yasm |
e5aaadde | 171 | BuildRequires: zlib-devel >= 1.2.1 |
23d9d34e | 172 | %endif |
6ca4d491 | 173 | %{?with_dist_kernel:%{expand:%kbrs}} |
0afa64ad | 174 | Requires(post,preun): /sbin/chkconfig |
5f1cec1f ER |
175 | Requires(postun): /usr/sbin/groupdel |
176 | Requires(pre): /usr/bin/getgid | |
177 | Requires(pre): /usr/sbin/groupadd | |
b75fd17a | 178 | Requires: libvncserver >= 0.9.9 |
12db98a7 | 179 | Requires: udev-core |
5f1cec1f | 180 | Provides: group(vbox) |
873b17cf | 181 | Obsoletes: VirtualBox-udev < 4.2.10-5 |
eba4b2aa | 182 | ExclusiveArch: %{ix86} %{x8664} |
48363591 | 183 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
184 | ||
eba4b2aa | 185 | %ifarch %{x8664} |
f377eb62 | 186 | %define vbox_arch amd64 |
5088674d | 187 | %else |
f377eb62 | 188 | %define vbox_arch x86 |
5088674d | 189 | %endif |
f377eb62 | 190 | %define vbox_platform linux.%{vbox_arch} |
27a1aef6 | 191 | %define outdir out/%{vbox_platform}/release/bin |
8d08b907 | 192 | %define objdir out/%{vbox_platform}/release/obj |
5088674d | 193 | |
48363591 | 194 | %description |
393ec35d | 195 | Oracle VirtualBox is a general-purpose full virtualizer for x86 |
48363591 | 196 | hardware. Targeted at server, desktop and embedded use, it is now the |
197 | only professional-quality virtualization solution that is also Open | |
198 | Source Software. | |
199 | ||
393ec35d | 200 | Some of the features of VirtualBox are: |
48363591 | 201 | |
393ec35d | 202 | Modularity: VirtualBox has an extremely modular design with |
48363591 | 203 | well-defined internal programming interfaces and a client/server |
204 | design. This makes it easy to control it from several interfaces at | |
205 | once: for example, you can start a virtual machine in a typical | |
206 | virtual machine GUI and then control that machine from the command | |
393ec35d ER |
207 | line. VirtualBox also comes with a full Software Development Kit: even |
208 | though it is Open Source Software, you don't have to hack the source | |
209 | to write a new interface for VirtualBox. | |
48363591 | 210 | |
211 | Virtual machine descriptions in XML: the configuration settings of | |
212 | virtual machines are stored entirely in XML and are independent of the | |
213 | local machines. Virtual machine definitions can therefore easily be | |
214 | ported to other computers. | |
215 | ||
1067d08d ER |
216 | You should install this package in your Host OS. |
217 | ||
fd8fc899 | 218 | %description -l pl.UTF-8 |
393ec35d ER |
219 | Oracle VirtualBox jest emulatorem sprzętu x86. Kierowany do zastosowań |
220 | serwerowych, desktopowych oraz wbudowanych jest obecnie jedynym | |
221 | wysokiej jakości rozwiązaniem wirtualizacyjnym dostępnym również jako | |
222 | Otwarte Oprogramowanie. | |
48363591 | 223 | |
fd8fc899 | 224 | Przykładowe cechy VirtualBoksa: |
48363591 | 225 | |
393ec35d | 226 | Modularność: VirtualBox jest wysoce zmodularyzowanym produktem z |
fd8fc899 JR |
227 | dobrze zaprojektowanym wewnętrznym interfejsem programowym typu |
228 | klient/serwer. Dzięki temu można łatwo kontrolować go za pomocą | |
229 | różnych interfejsów. Można na przykład uruchomić maszynę wirtualną z | |
230 | poziomu interfejsu graficznego, a później kontrolować ją z linii | |
393ec35d ER |
231 | poleceń. VirtualBox dostarcza również pełny pakiet deweloperski, co |
232 | pozwala stworzyć dowolny inny interfejs zarządzania maszyną wirtualną. | |
48363591 | 233 | |
fd8fc899 JR |
234 | Opisy maszyn wirtualnych w XML-u: konfiguracje poszczególnych maszyn |
235 | wirtualnych są w całości przechowywane w XML-u i są niezależne od | |
236 | lokalnej maszyny. Dzięki temu można szybko i łatwo przenieść | |
237 | konfigurację maszyny wirtualnej na inny komputer. | |
48363591 | 238 | |
501bee39 ER |
239 | %package gui |
240 | Summary: Qt GUI part for VirtualBox | |
241 | Group: X11/Applications | |
242 | Requires: %{name} = %{version}-%{release} | |
243 | Requires: QtCore >= 4.7.0 | |
244 | Requires: desktop-file-utils | |
245 | Requires: desktop-file-utils | |
246 | Requires: fontconfig | |
247 | Requires: fonts-Type1-urw | |
44a0c82d ER |
248 | Requires: gtk-update-icon-cache |
249 | Requires: hicolor-icon-theme | |
501bee39 ER |
250 | Requires: shared-mime-info |
251 | Suggests: gxmessage | |
6f37454e | 252 | Conflicts: %{name} < 4.3.8-3 |
501bee39 ER |
253 | |
254 | %description gui | |
255 | Qt GUI part for VirtualBox. | |
256 | ||
90de3b27 ER |
257 | %package doc |
258 | Summary: VirtualBox documentation | |
259 | Group: Documentation | |
260 | ||
261 | %description doc | |
262 | This package contains VirtualBox User Manual. | |
263 | ||
ffb38bb6 ER |
264 | %package additions |
265 | Summary: VirtualBox Guest Additions | |
266 | Group: Base | |
b9cc0b23 | 267 | Requires: %{name} = %{version} |
44a0c82d ER |
268 | %if "%{_rpmversion}" >= "5" |
269 | BuildArch: noarch | |
270 | %endif | |
ffb38bb6 | 271 | |
00a4a7ca | 272 | %description additions |
ffb38bb6 ER |
273 | VirtualBox Guest Additions. |
274 | ||
275 | This package contains ISO9660 image with drivers for Guest OS. | |
276 | ||
1067d08d ER |
277 | You should install this package in your Host OS. |
278 | ||
279 | %package guest | |
c0372ee9 ER |
280 | Summary: VirtualBox Guest tools |
281 | Group: Base | |
551622b8 | 282 | Provides: group(vboxsf) |
4365ecaf | 283 | Requires(post): systemd-units >= 38 |
551622b8 ER |
284 | Requires(post,preun): /sbin/chkconfig |
285 | Requires(postun): /usr/sbin/groupdel | |
286 | Requires(pre): /usr/bin/getgid | |
287 | Requires(pre): /usr/sbin/groupadd | |
ffb104d5 | 288 | Requires: rc-scripts |
2e3636e9 | 289 | Requires: systemd-units >= 38 |
3d9b19d8 ER |
290 | Suggests: kernel(vboxguest) |
291 | Suggests: kernel(vboxsf) | |
bf131a21 | 292 | Suggests: pam-pam_vbox |
c0372ee9 ER |
293 | |
294 | %description guest | |
295 | Tools that utilize kernel modules for supporting integration with the | |
296 | Host, including file sharing. | |
297 | ||
3d9b19d8 ER |
298 | You should install this package in your Guest OS for base VirtualBox |
299 | communication | |
c0372ee9 ER |
300 | |
301 | %package guest-x11 | |
307e824c ER |
302 | Summary: VirtualBox Guest X11 Additions |
303 | Group: X11/Applications | |
c0372ee9 | 304 | Requires: %{name}-guest = %{version}-%{release} |
307e824c | 305 | Requires: xorg-app-xrandr |
1067d08d | 306 | Requires: xorg-driver-video-vboxvideo = %{version}-%{release} |
3d9b19d8 | 307 | Suggests: kernel(vboxvideo) |
873b17cf | 308 | Obsoletes: xorg-driver-input-vboxmouse < %{version}-%{release} |
1067d08d | 309 | |
c0372ee9 | 310 | %description guest-x11 |
3d9b19d8 ER |
311 | Tools for X11 session that utilize kernel modules for supporting |
312 | integration with the Host, like tracking of mouse pointer movement and | |
313 | X.org X11 video and mouse drivers | |
1067d08d | 314 | |
c0372ee9 | 315 | You should install this package in your Guest OS for X11 session. |
1067d08d | 316 | |
21a1d8ab ER |
317 | %package webservice |
318 | Summary: VirtualBox Web Service | |
319 | Group: Applications/Emulators | |
320 | Requires: %{name} = %{version}-%{release} | |
321 | ||
322 | %description webservice | |
323 | This package contains VirtualBox web service API daemon. It allows to | |
324 | control virtual machines via web interface. | |
325 | ||
9e4dd6a9 | 326 | %package -n lightdm-greeter-vbox |
8d08b907 ER |
327 | Summary: VirtualBox greeter for lightdm |
328 | Group: Themes | |
22380dc7 ER |
329 | # NOTE: '#' in url is lost because rpm treats it as comment, even hacking with |
330 | # macros doesn't help as rpmbuild takes final result to parse | |
8d08b907 | 331 | URL: http://www.virtualbox.org/manual/ch09.html#autologon_unix_lightdm |
4365ecaf | 332 | Requires: kernel(vboxguest) |
8d08b907 | 333 | Requires: lightdm >= 1.0.1 |
7d778590 | 334 | Requires: pam-pam_vbox = %{version}-%{release} |
8d08b907 ER |
335 | Provides: lightdm-greeter |
336 | ||
9e4dd6a9 | 337 | %description -n lightdm-greeter-vbox |
8d08b907 ER |
338 | VirtualBox greeter for LightDM. |
339 | ||
3613936b JR |
340 | %package -n pam-pam_vbox |
341 | Summary: PAM module to perform automated guest logons | |
342 | Group: Base | |
343 | ||
344 | %description -n pam-pam_vbox | |
3ee6b9d9 ER |
345 | PAM module (Pluggable Authentication Module) which can be used to |
346 | perform automated guest logons. | |
3613936b | 347 | |
fbea1005 | 348 | %package -n xorg-driver-video-vboxvideo |
393ec35d ER |
349 | Summary: X.org video driver for VirtualBox guest OS |
350 | Summary(pl.UTF-8): Sterownik grafiki dla systemu gościa w VirtualBoksie | |
fbea1005 | 351 | Group: X11/Applications |
20b8335d | 352 | Requires: Mesa-dri-driver-swrast |
fbea1005 ER |
353 | Requires: xorg-xserver-libdri >= 1.7.4 |
354 | Requires: xorg-xserver-server >= 1.0.99.901 | |
cd4d7202 | 355 | Requires: xorg-xserver-server(videodrv-abi) <= 15.0 |
fbea1005 | 356 | Requires: xorg-xserver-server(videodrv-abi) >= 2.0 |
7e84622a ER |
357 | Provides: OpenGL = 2.1 |
358 | Provides: OpenGL-GLX = 1.3 | |
2e3636e9 | 359 | Provides: xorg-driver-video |
7e84622a | 360 | Provides: xorg-xserver-module(glx) |
fbea1005 ER |
361 | |
362 | %description -n xorg-driver-video-vboxvideo | |
393ec35d | 363 | X.org video driver for VirtualBox guest OS. |
fbea1005 ER |
364 | |
365 | %description -n xorg-driver-video-vboxvideo -l pl.UTF-8 | |
393ec35d | 366 | Sterownik grafiki dla systemu gościa w VirtualBoksie. |
fbea1005 | 367 | |
988a8f09 ER |
368 | %package -n dkms-vboxguest |
369 | Summary: VirtualBox kernel modules source for Linux Guest | |
370 | Summary(pl.UTF-8): Moduły VirtualBoksa do jądra Linuksa dla systemu gościa | |
371 | License: GPL v2+ | |
372 | Group: Base/Kernel | |
373 | Requires(pre): dkms | |
374 | Requires(post): dkms | |
375 | %if "%{_rpmversion}" >= "5" | |
376 | BuildArch: noarch | |
377 | %endif | |
378 | ||
379 | %description -n dkms-vboxguest | |
380 | This package contains DKMS-ready VirtualBox Guest Additions for Linux | |
381 | Module, host file system access (Shared Folders) and DRM support for | |
382 | Linux guest system. | |
383 | ||
384 | %description -n dkms-vboxguest -l pl.UTF-8 | |
385 | Ten pakiet zawiera moduł jądra Linuksa vboxguest dla VirtualBoksa - | |
386 | dodatki dla systemu gościa, dostęp do plików systemu głównego z | |
387 | poziomu systemu gościa i sterownik obsługi DRM. | |
388 | ||
389 | %package -n dkms-vboxhost | |
390 | Summary: VirtualBox Support Drivers source | |
391 | Summary(pl.UTF-8): Moduły jądra Linuksa dla VirtualBoksa | |
392 | License: GPL v2+ | |
393 | Group: Base/Kernel | |
394 | Requires(pre): dkms | |
395 | Requires(post): dkms | |
396 | %if "%{_rpmversion}" >= "5" | |
397 | BuildArch: noarch | |
398 | %endif | |
399 | ||
400 | %description -n dkms-vboxhost | |
401 | This package contains DKMS enabled sourcecode of VirtualBox Support | |
402 | Driver, Network Adapter Driver, Network Filter Driver and PCI card | |
403 | passthrough driver that works as host proxy between guest and PCI | |
404 | hardware. | |
405 | ||
406 | %description -n dkms-vboxhost -l pl.UTF-8 | |
407 | Ten pakiet zawiera sterownik wsparcia dla systemu głównego, sterownik | |
408 | witrualnej karty sieciowej, sterownik filtrowania sieci dla systemu | |
409 | głównego oraz sterownik, ktory działa jako proxy między gościem i | |
410 | gospodarzem sprzętu PCI. | |
411 | ||
18adabff | 412 | # KERNEL PACKAGES |
b980c81c | 413 | |
18adabff | 414 | # KEEP ALL REGULAR SUBPACKAGES BEFORE KERNEL PACKAGES. |
b980c81c | 415 | |
163ddb28 JR |
416 | %define kernel_pkg()\ |
417 | %package -n kernel%{_alt_kernel}-virtualbox-guest\ | |
418 | Summary: VirtualBox kernel modules for Linux Guest\ | |
419 | Summary(pl.UTF-8): Moduły VirtualBoksa do jądra Linuksa dla systemu gościa\ | |
420 | Release: %{rel}@%{_kernel_ver_str}\ | |
421 | Group: Base/Kernel\ | |
422 | Requires(post,postun): /sbin/depmod\ | |
423 | Requires(post): systemd-units >= 38\ | |
424 | Requires: dev >= 2.9.0-7\ | |
425 | Requires: systemd-units >= 38\ | |
426 | %if %{with dist_kernel}\ | |
427 | %requires_releq_kernel\ | |
eb3ec0e6 | 428 | Requires: %{releq_kernel -n drm}\ |
163ddb28 JR |
429 | Requires(postun): %releq_kernel\ |
430 | %endif\ | |
163ddb28 JR |
431 | Provides: kernel(vboxguest) = %{version}-%{rel}\ |
432 | Provides: kernel(vboxsf) = %{version}-%{rel}\ | |
433 | Provides: kernel(vboxvideo) = %{version}-%{rel}\ | |
434 | Obsoletes: kernel-init-guest\ | |
435 | Conflicts: kernel%{_alt_kernel}-virtualbox-host\ | |
436 | \ | |
437 | %description -n kernel%{_alt_kernel}-virtualbox-guest\ | |
438 | This package contains VirtualBox Guest Additions for Linux Module,\ | |
439 | host file system access (Shared Folders) and DRM support for\ | |
440 | Linux guest system.\ | |
441 | \ | |
442 | %description -n kernel%{_alt_kernel}-virtualbox-guest -l pl.UTF-8\ | |
443 | Ten pakiet zawiera moduł jądra Linuksa vboxguest dla VirtualBoksa -\ | |
444 | dodatki dla systemu gościa, dostęp do plików systemu głównego z\ | |
445 | poziomu systemu gościa i sterownik obsługi DRM.\ | |
446 | \ | |
447 | %package -n kernel%{_alt_kernel}-virtualbox-host\ | |
448 | Summary: VirtualBox Support Drivers\ | |
449 | Summary(pl.UTF-8): Moduły jądra Linuksa dla VirtualBoksa\ | |
450 | Release: %{rel}@%{_kernel_ver_str}\ | |
451 | Group: Base/Kernel\ | |
452 | Requires(post,postun): /sbin/depmod\ | |
453 | Requires(post): systemd-units >= 38\ | |
454 | Requires: dev >= 2.9.0-7\ | |
455 | %if %{with dist_kernel}\ | |
456 | %requires_releq_kernel\ | |
457 | Requires(postun): %releq_kernel\ | |
458 | %endif\ | |
459 | Requires: systemd-units >= 38\ | |
163ddb28 JR |
460 | Provides: kernel(vboxdrv) = %{version}-%{rel}\ |
461 | Provides: kernel(vboxnetadp) = %{version}-%{rel}\ | |
462 | Provides: kernel(vboxnetflt) = %{version}-%{rel}\ | |
463 | Provides: kernel(vboxpci) = %{version}-%{rel}\ | |
464 | Obsoletes: kernel-init-host\ | |
465 | \ | |
466 | %description -n kernel%{_alt_kernel}-virtualbox-host\ | |
467 | This package contains VirtualBox Support Driver, Network Adapter\ | |
468 | Driver, Network Filter Driver and PCI card passthrough driver that\ | |
469 | works as host proxy between guest and PCI hardware.\ | |
470 | \ | |
471 | %description -n kernel%{_alt_kernel}-virtualbox-host -l pl.UTF-8\ | |
472 | Ten pakiet zawiera sterownik wsparcia dla systemu głównego, sterownik\ | |
473 | witrualnej karty sieciowej, sterownik filtrowania sieci dla systemu\ | |
474 | głównego oraz sterownik, ktory działa jako proxy między gościem i\ | |
475 | gospodarzem sprzętu PCI.\ | |
476 | \ | |
477 | %if %{with kernel}\ | |
478 | %files -n kernel%{_alt_kernel}-virtualbox-guest\ | |
479 | %defattr(644,root,root,755)\ | |
480 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/virtualbox-guest.conf\ | |
481 | /lib/modules/%{_kernel_ver}/misc/vboxguest.ko*\ | |
482 | /lib/modules/%{_kernel_ver}/misc/vboxsf.ko*\ | |
483 | /lib/modules/%{_kernel_ver}/misc/vboxvideo.ko*\ | |
484 | \ | |
485 | %files -n kernel%{_alt_kernel}-virtualbox-host\ | |
486 | %config(noreplace) %verify(not md5 mtime size) /etc/modules-load.d/virtualbox-host.conf\ | |
487 | /lib/modules/%{_kernel_ver}/misc/vboxdrv.ko*\ | |
488 | /lib/modules/%{_kernel_ver}/misc/vboxnetadp.ko*\ | |
489 | /lib/modules/%{_kernel_ver}/misc/vboxnetflt.ko*\ | |
490 | /lib/modules/%{_kernel_ver}/misc/vboxpci.ko*\ | |
491 | %endif\ | |
492 | \ | |
493 | %post -n kernel%{_alt_kernel}-virtualbox-guest\ | |
494 | %depmod %{_kernel_ver}\ | |
495 | \ | |
496 | %postun -n kernel%{_alt_kernel}-virtualbox-guest\ | |
497 | %depmod %{_kernel_ver}\ | |
498 | \ | |
499 | %post -n kernel%{_alt_kernel}-virtualbox-host\ | |
500 | %depmod %{_kernel_ver}\ | |
501 | \ | |
502 | %postun -n kernel%{_alt_kernel}-virtualbox-host\ | |
503 | %depmod %{_kernel_ver}\ | |
504 | %{nil} | |
505 | ||
506 | %define build_kernel_pkg()\ | |
507 | export KERN_DIR=%{_kernelsrcdir}\ | |
508 | cd PLD-MODULE-BUILD/HostDrivers\ | |
509 | %build_kernel_modules -m vboxdrv -C vboxdrv\ | |
510 | %build_kernel_modules -m vboxnetadp -C vboxnetadp\ | |
511 | %build_kernel_modules -m vboxnetflt -C vboxnetflt\ | |
512 | %build_kernel_modules -m vboxpci -C vboxpci\ | |
513 | cd ../GuestDrivers\ | |
514 | %build_kernel_modules -m vboxguest -C vboxguest\ | |
515 | cp -a vboxguest/Module.symvers vboxsf\ | |
516 | %build_kernel_modules -m vboxsf -C vboxsf -c\ | |
517 | %build_kernel_modules -m vboxvideo -C vboxvideo\ | |
518 | cd ../..\ | |
519 | %install_kernel_modules -D PLD-MODULE-BUILD/installed -m PLD-MODULE-BUILD/HostDrivers/vboxdrv/vboxdrv -d misc\ | |
520 | %install_kernel_modules -D PLD-MODULE-BUILD/installed -m PLD-MODULE-BUILD/HostDrivers/vboxnetadp/vboxnetadp -d misc\ | |
521 | %install_kernel_modules -D PLD-MODULE-BUILD/installed -m PLD-MODULE-BUILD/HostDrivers/vboxnetflt/vboxnetflt -d misc\ | |
522 | %install_kernel_modules -D PLD-MODULE-BUILD/installed -m PLD-MODULE-BUILD/HostDrivers/vboxpci/vboxpci -d misc\ | |
523 | %install_kernel_modules -D PLD-MODULE-BUILD/installed -m PLD-MODULE-BUILD/GuestDrivers/vboxguest/vboxguest -d misc\ | |
524 | %install_kernel_modules -D PLD-MODULE-BUILD/installed -m PLD-MODULE-BUILD/GuestDrivers/vboxsf/vboxsf -d misc\ | |
525 | %install_kernel_modules -D PLD-MODULE-BUILD/installed -m PLD-MODULE-BUILD/GuestDrivers/vboxvideo/vboxvideo -d misc\ | |
526 | %{nil} | |
527 | ||
528 | %{?with_kernel:%{expand:%kpkg}} | |
67a4f3c1 | 529 | |
48363591 | 530 | %prep |
33aeed61 | 531 | %setup -q -n %{pname}-%{version} |
e709ce6b | 532 | %patch0 -p1 |
db6f33e3 | 533 | %patch1 -p1 |
006342ee | 534 | %patch2 -p1 |
8473a80d | 535 | %patch3 -p1 |
44a0c82d | 536 | %patch4 -p1 |
9a7b1cdc | 537 | %patch5 -p1 |
44a0c82d | 538 | %patch6 -p1 |
d3884acf | 539 | %patch7 -p1 |
8d08b907 | 540 | %patch8 -p1 |
621cd96c | 541 | %patch9 -p1 |
077e37dc ER |
542 | %patch10 -p1 |
543 | %patch11 -p1 | |
fddcb741 | 544 | |
744bc35e JR |
545 | %{__sed} -i -e 's,@VBOX_DOC_PATH@,%{_docdir}/%{name}-%{version},' \ |
546 | -e 's/Categories=.*/Categories=Utility;Emulator;/' src/VBox/Installer/common/virtualbox.desktop.in | |
0b6de2b7 | 547 | |
f471b832 ER |
548 | # Respect LDFLAGS |
549 | %{__sed} -i -e "s@_LDFLAGS\.%{vbox_arch}*.*=@& %{rpmldflags}@g" \ | |
550 | -i Config.kmk src/libs/xpcom18a4/Config.kmk | |
551 | ||
44a0c82d | 552 | %{__sed} -i -e 's#@INSTALL_DIR@#%{_libdir}/%{pname}#' src/VBox/Installer/linux/VBox.sh |
fa19f650 | 553 | |
bc1ca596 | 554 | %if %{with kernel} |
1794e74d ER |
555 | install -d PLD-MODULE-BUILD/{GuestDrivers,HostDrivers} |
556 | cd PLD-MODULE-BUILD | |
557 | ../src/VBox/Additions/linux/export_modules guest-modules.tar.gz | |
558 | tar -zxf guest-modules.tar.gz -C GuestDrivers | |
559 | ||
cadbdf55 | 560 | ../src/VBox/HostDrivers/linux/export_modules host-modules.tar.gz --without-hardening |
1794e74d ER |
561 | tar -zxf host-modules.tar.gz -C HostDrivers |
562 | cd - | |
077e37dc | 563 | %endif |
59d12745 | 564 | |
e9ed9ec1 ER |
565 | # using system kBuild package |
566 | %{__rm} -r kBuild | |
567 | ||
621cd96c ER |
568 | # use linux icon for now |
569 | cp -p src/VBox/Frontends/VirtualBox/images/os_{linux26,pld}.png | |
570 | cp -p src/VBox/Frontends/VirtualBox/images/os_{linux26,pld}_64.png | |
571 | ||
316a5697 ER |
572 | cat <<'EOF'>> LocalConfig.kmk |
573 | %{?with_verbose:KBUILD_VERBOSE=3} | |
574 | USERNAME=%(id -un) | |
575 | __VBOX_BUILD_PUBLISHER=_PLD | |
576 | VBOX_VERSION_STRING=$(VBOX_VERSION_MAJOR).$(VBOX_VERSION_MINOR).$(VBOX_VERSION_BUILD)_PLD | |
577 | XSERVER_VERSION=%(rpm -q --queryformat '%{V}\n' xorg-xserver-server-devel | awk -F. '{ print $1 $2 }' 2>/dev/null || echo ERROR) | |
578 | VBOX_USE_SYSTEM_XORG_HEADERS=1 | |
579 | %if %{with lightdm} | |
580 | VBOX_WITH_LIGHTDM_GREETER=1 | |
581 | VBOX_WITH_LIGHTDM_GREETER_PACKING=1 | |
582 | %endif | |
583 | TOOL_GCC3_CFLAGS=%{rpmcflags} | |
584 | TOOL_GCC3_CXXFLAGS=%{rpmcxxflags} | |
585 | VBOX_GCC_OPT=%{rpmcxxflags} | |
44a0c82d ER |
586 | |
587 | VBOX_PATH_APP_PRIVATE_ARCH := %{_libdir}/%{pname} | |
588 | VBOX_PATH_APP_PRIVATE := %{_datadir}/%{pname} | |
589 | VBOX_PATH_SHARED_LIBS := $(VBOX_PATH_APP_PRIVATE_ARCH) | |
590 | VBOX_WITH_ORIGIN := | |
591 | VBOX_WITH_RUNPATH := $(VBOX_PATH_APP_PRIVATE_ARCH) | |
592 | #VBOX_PATH_APP_DOCS := %{_docdir}/%{pname}-doc-%{version} | |
593 | ||
594 | # don't build testcases to save time, they are not needed for the package | |
595 | VBOX_WITH_TESTCASES := | |
596 | VBOX_WITH_TESTSUITE := | |
316a5697 ER |
597 | EOF |
598 | ||
fddcb741 | 599 | %build |
83ffcfa8 | 600 | %if %{with userspace} |
106d8451 | 601 | ./configure \ |
ae1bbc88 | 602 | --with-gcc="%{__cc}" \ |
603 | --with-g++="%{__cxx}" \ | |
8da42f47 | 604 | %{!?with_doc:--disable-docs} \ |
744bc35e | 605 | --disable-java \ |
5a497466 | 606 | --disable-hardening \ |
01e414ba | 607 | --disable-kmods \ |
55f7d7d3 ER |
608 | --enable-vnc \ |
609 | %{__enable webservice} \ | |
610 | %{nil} | |
48363591 | 611 | |
316a5697 | 612 | kmk %{?_smp_mflags} |
74268e47 | 613 | |
744bc35e | 614 | %{__cc} %{rpmcflags} %{rpmldflags} -Wall -Werror src/VBox/Additions/linux/sharedfolders/{mount.vboxsf.c,vbsfmount.c} -o mount.vboxsf |
d1c4ec5b | 615 | %endif |
48363591 | 616 | |
51ef4838 JR |
617 | %{?with_kernel:%{expand:%bkpkg}} |
618 | ||
48363591 | 619 | %install |
620 | rm -rf $RPM_BUILD_ROOT | |
621 | ||
d1c4ec5b | 622 | %if %{with userspace} |
c11f39b3 | 623 | install -d $RPM_BUILD_ROOT{%{_bindir},/sbin,%{_sbindir},%{_libdir}/%{pname}/ExtensionPacks} \ |
501bee39 | 624 | $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_datadir}/mime/packages} \ |
2daf9ea4 | 625 | $RPM_BUILD_ROOT%{_sysconfdir}/vbox/autostart \ |
12db98a7 | 626 | $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{drivers,dri,input} \ |
4365ecaf | 627 | $RPM_BUILD_ROOT{/lib/udev,/etc/udev/rules.d} \ |
44a0c82d | 628 | $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{systemdunitdir},%{_usrsrc}} |
a70507fb | 629 | |
dca6c443 | 630 | # test if we can hardlink -- %{_builddir} and $RPM_BUILD_ROOT on same partition |
632ec0b7 | 631 | if cp -al COPYING $RPM_BUILD_ROOT/COPYING; then |
dca6c443 | 632 | l=l |
44a0c82d | 633 | %{__rm} $RPM_BUILD_ROOT/COPYING |
dca6c443 ER |
634 | fi |
635 | ||
33aeed61 | 636 | cp -a$l %{outdir}/* $RPM_BUILD_ROOT%{_libdir}/%{pname} |
6110bfb9 | 637 | cp -a$l %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/VBoxGuestAdditions.iso |
48363591 | 638 | |
44a0c82d | 639 | # vboxvideo |
ffd7f18a | 640 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions/VBoxOGL.so,%{_libdir}/xorg/modules/dri/vboxvideo_dri.so} |
44a0c82d | 641 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions/vboxvideo_drv_system.so,%{_libdir}/xorg/modules/drivers/vboxvideo_drv.so} |
27a1aef6 | 642 | # XXX: where else to install them that vboxvideo_dri.so finds them? patch with rpath? |
ffd7f18a JR |
643 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLarrayspu.so |
644 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLcrutil.so | |
645 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLerrorspu.so | |
646 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLfeedbackspu.so | |
647 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLpackspu.so | |
648 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_libdir}}/VBoxOGLpassthroughspu.so | |
d1c4ec5b | 649 | |
1067d08d | 650 | # Guest Only Tools |
ffd7f18a JR |
651 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxClient |
652 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxControl | |
44a0c82d | 653 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_bindir}}/VBoxService |
4e3859c5 | 654 | install -d $RPM_BUILD_ROOT/etc/xdg/autostart |
90de3b27 ER |
655 | cp -p src/VBox/Additions/x11/Installer/vboxclient.desktop \ |
656 | $RPM_BUILD_ROOT/etc/xdg/autostart/vboxclient.desktop | |
4e3859c5 | 657 | install -p src/VBox/Additions/x11/Installer/98vboxadd-xclient $RPM_BUILD_ROOT%{_bindir}/VBoxClient-all |
44a0c82d ER |
658 | install -p %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxservice |
659 | install -p %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/vboxservice.service | |
1067d08d | 660 | |
38d06cb9 ER |
661 | install -p %{SOURCE9} $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxautostart |
662 | %{__sed} -i -e 's#@INSTALL_DIR@#%{_libdir}/%{pname}#' $RPM_BUILD_ROOT/etc/rc.d/init.d/vboxautostart | |
663 | cp -p %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/vbox | |
664 | ||
8d08b907 ER |
665 | %if %{with lightdm} |
666 | install -d $RPM_BUILD_ROOT%{_datadir}/xgreeters | |
29c4b6b6 | 667 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,%{_sbindir}}/vbox-greeter |
8d08b907 ER |
668 | cp -p %{objdir}/Additions/Installer/linux/share/VBoxGuestAdditions/vbox-greeter.desktop $RPM_BUILD_ROOT%{_datadir}/xgreeters |
669 | %endif | |
670 | ||
bc1ca596 ER |
671 | %if %{with dkms} |
672 | mv $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/src $RPM_BUILD_ROOT%{_usrsrc}/vboxguest-%{version}-%{rel} | |
673 | %endif | |
674 | ||
44a0c82d ER |
675 | # pam |
676 | install -d $RPM_BUILD_ROOT/%{_lib}/security | |
677 | %{__mv} $RPM_BUILD_ROOT{%{_libdir}/%{pname}/additions,/%{_lib}/security}/pam_vbox.so | |
678 | ||
679 | # mount.vboxsf | |
680 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/mount.vboxsf | |
681 | install -p mount.vboxsf $RPM_BUILD_ROOT/sbin/mount.vboxsf | |
682 | ||
683 | # mount.vdi | |
684 | install -p %{SOURCE5} $RPM_BUILD_ROOT/sbin/mount.vdi | |
685 | ||
686 | # these belong to .iso | |
687 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/autorun.sh | |
688 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/runasroot.sh | |
689 | ||
ce061de6 | 690 | # scripts to setup modules, x11 and service. we have covered that in our packages |
44a0c82d ER |
691 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/vboxadd |
692 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/vboxadd-service | |
693 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/additions/vboxadd-x11 | |
ce061de6 ER |
694 | |
695 | # unknown - checkme | |
696 | %if 1 | |
44a0c82d | 697 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/helpers/generate_service_file |
ffd7f18a JR |
698 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPInstall |
699 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPLoggerCtl | |
700 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/SUPUninstall | |
ffd7f18a JR |
701 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/load.sh |
702 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/loadall.sh | |
ffd7f18a | 703 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/scripts/VBoxHeadlessXOrg.sh |
ffd7f18a JR |
704 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/scripts/init_template.sh |
705 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/scripts/install_service | |
44a0c82d ER |
706 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxshell.py |
707 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/xpidl | |
1067d08d | 708 | %endif |
dca6c443 | 709 | |
44a0c82d ER |
710 | # use upstream installer to relocate rest of the files, fakeroot because it forces uid/gid 0 |
711 | fakeroot sh -x $RPM_BUILD_ROOT%{_libdir}/%{pname}/scripts/install.sh \ | |
712 | --ose \ | |
713 | --prefix %{_prefix} \ | |
714 | %{!?with_webservice:--no-web-service} \ | |
715 | --root $RPM_BUILD_ROOT | |
e56dcfeb | 716 | |
44a0c82d ER |
717 | %{__mv} $RPM_BUILD_ROOT{%{_datadir}/%{pname},/lib/udev}/VBoxCreateUSBNode.sh |
718 | cp -p %{SOURCE6} $RPM_BUILD_ROOT/etc/udev/rules.d/virtualbox.rules | |
719 | ||
bc1ca596 ER |
720 | %if %{with dkms} |
721 | mv $RPM_BUILD_ROOT%{_datadir}/%{pname}/src $RPM_BUILD_ROOT%{_usrsrc}/vboxhost-%{version}-%{rel} | |
722 | %{__rm} $RPM_BUILD_ROOT%{_usrsrc}/vboxhost-%{version}_PLD | |
723 | %endif | |
724 | ||
44a0c82d ER |
725 | # cleanup lowercased variants, not used in any script (less cruft) |
726 | %{__rm} -r $RPM_BUILD_ROOT%{_bindir}/vboxautostart | |
727 | %{__rm} -r $RPM_BUILD_ROOT%{_bindir}/vboxballoonctrl | |
728 | %{__rm} -r $RPM_BUILD_ROOT%{_bindir}/vboxheadless | |
729 | %{__rm} -r $RPM_BUILD_ROOT%{_bindir}/vboxmanage | |
730 | %{__rm} -r $RPM_BUILD_ROOT%{_bindir}/vboxsdl | |
731 | %{__rm} -r $RPM_BUILD_ROOT%{_bindir}/virtualbox | |
732 | ||
733 | # cleanup unpackaged | |
734 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/{sdk,testcase} | |
735 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/%{pname}/dtrace | |
44a0c82d ER |
736 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/vboxkeyboard.tar.bz2 |
737 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/tst* | |
738 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/scripts/generated.sh | |
739 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/%{pname}/ExtensionPacks/VNC/ExtPack-license.* | |
44a0c82d ER |
740 | %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/vboxapi* |
741 | ||
742 | # weird icon size | |
743 | %{__rm} -r $RPM_BUILD_ROOT%{_iconsdir}/hicolor/40x40 | |
744 | # duplicate, we already have virtualbox.png (128x128), this is 32x32 | |
745 | %{__rm} -r $RPM_BUILD_ROOT%{_pixmapsdir}/VBox.png | |
746 | ||
747 | %if %{with doc} | |
748 | ln -sf %{_docdir}/%{pname}-doc-%{version}/UserManual.pdf $RPM_BUILD_ROOT%{_libdir}/%{pname}/UserManual.pdf | |
749 | ln -sf %{_docdir}/%{pname}-doc-%{version}/UserManual_fr_FR.pdf $RPM_BUILD_ROOT%{_libdir}/%{pname}/UserManual_fr_FR.pdf | |
750 | %endif | |
c38a3946 | 751 | %endif |
988a8f09 | 752 | |
da083e45 | 753 | %if %{with kernel} |
4365ecaf | 754 | install -d $RPM_BUILD_ROOT{/etc/modules-load.d,/sbin} |
163ddb28 JR |
755 | |
756 | cp -a PLD-MODULE-BUILD/installed/* $RPM_BUILD_ROOT | |
fa974331 | 757 | |
35ccdfcc | 758 | # Tell systemd to load modules |
4365ecaf JR |
759 | cp -p %{SOURCE7} $RPM_BUILD_ROOT/etc/modules-load.d/virtualbox-host.conf |
760 | cp -p %{SOURCE8} $RPM_BUILD_ROOT/etc/modules-load.d/virtualbox-guest.conf | |
d1c4ec5b | 761 | %endif |
05f1b1f5 | 762 | |
48363591 | 763 | %clean |
764 | rm -rf $RPM_BUILD_ROOT | |
765 | ||
3b63d3e8 | 766 | %pre |
767 | %groupadd -g 221 -r -f vbox | |
768 | ||
14561782 | 769 | %post |
38d06cb9 ER |
770 | /sbin/chkconfig --add vboxautostart |
771 | %service -n vboxautostart restart | |
772 | ||
12db98a7 JR |
773 | for i in /sys/bus/usb/devices/*; do |
774 | if [ -r "$i/dev" ]; then | |
775 | dev="`cat "$i/dev" 2>/dev/null || true`" | |
776 | major="`expr "$dev" : '\(.*\):' 2> /dev/null || true`" | |
777 | minor="`expr "$dev" : '.*:\(.*\)' 2> /dev/null || true`" | |
778 | class="`cat $i/bDeviceClass 2> /dev/null || true`" | |
779 | /lib/udev/VBoxCreateUSBNode.sh "$major" "$minor" "$class" vbox 2>/dev/null | |
780 | fi | |
781 | done | |
1403ac49 | 782 | |
d8ed80f4 | 783 | cat << 'EOF' |
4365ecaf | 784 | You must install vboxdrv kernel modules for this software to work: |
163ddb28 | 785 | kernel*-virtualbox-host-%{version}-%{rel}@* |
05f12a30 | 786 | |
fa974331 | 787 | On Guest Linux system you might want to install: |
163ddb28 | 788 | kernel*-virtualbox-guest-%{version}-%{rel}@* |
7841ddfd | 789 | |
d8ed80f4 | 790 | EOF |
791 | ||
38d06cb9 ER |
792 | %preun |
793 | if [ "$1" = "0" ]; then | |
794 | /sbin/chkconfig --del vboxautostart | |
795 | %service vboxautostart -q stop | |
796 | fi | |
797 | ||
798 | ||
3b63d3e8 | 799 | %postun |
800 | if [ "$1" = "0" ]; then | |
801 | %groupremove vbox | |
802 | fi | |
803 | ||
501bee39 ER |
804 | %post gui |
805 | %update_desktop_database | |
44a0c82d | 806 | %update_icon_cache hicolor |
501bee39 ER |
807 | %update_mime_database |
808 | ||
809 | %postun gui | |
810 | %update_desktop_database | |
44a0c82d | 811 | %update_icon_cache hicolor |
501bee39 ER |
812 | %update_mime_database |
813 | ||
551622b8 ER |
814 | %pre guest |
815 | # Add a group "vboxsf" for Shared Folders access | |
816 | # All users which want to access the auto-mounted Shared Folders have to be added to this group. | |
817 | %groupadd -g 266 -r -f vboxsf | |
818 | ||
07e9b84d | 819 | %post guest |
31e46441 ER |
820 | /sbin/chkconfig --add vboxservice |
821 | %service vboxservice restart | |
4365ecaf | 822 | %systemd_post vboxservice.service |
07e9b84d | 823 | |
b93128e2 | 824 | %preun guest |
07e9b84d | 825 | if [ "$1" = "0" ]; then |
31e46441 ER |
826 | /sbin/chkconfig --del vboxservice |
827 | %service vboxservice -q stop | |
07e9b84d | 828 | fi |
4365ecaf | 829 | %systemd_preun vboxservice.service |
07e9b84d | 830 | |
4365ecaf | 831 | %postun guest |
551622b8 ER |
832 | if [ "$1" = "0" ]; then |
833 | %groupremove vboxsf | |
834 | fi | |
4365ecaf | 835 | %systemd_reload |
ece7f2f1 | 836 | |
4365ecaf JR |
837 | %triggerpostun guest -- VirtualBox-guest < 4.3.0-1 |
838 | %systemd_trigger vboxservice.service | |
ece7f2f1 | 839 | |
4365ecaf JR |
840 | %pre -n lightdm-greeter-vbox |
841 | %addusertogroup xdm vbox | |
74268e47 | 842 | |
988a8f09 ER |
843 | %post -n dkms-vboxguest |
844 | set -x | |
845 | dkms add -m vboxguest -v %{version}-%{rel} --rpm_safe_upgrade && \ | |
846 | dkms build -m vboxguest -v %{version}-%{rel} --rpm_safe_upgrade && \ | |
847 | dkms install -m vboxguest -v %{version}-%{rel} --rpm_safe_upgrade || : | |
848 | ||
849 | %preun -n dkms-vboxguest | |
850 | set -x | |
851 | dkms remove -m vboxguest -v %{version}-%{rel} --rpm_safe_upgrade --all || : | |
852 | ||
853 | %post -n dkms-vboxhost | |
854 | set -x | |
855 | dkms add -m vboxhost -v %{version}-%{rel} --rpm_safe_upgrade && \ | |
856 | dkms build -m vboxhost -v %{version}-%{rel} --rpm_safe_upgrade && \ | |
857 | dkms install -m vboxhost -v %{version}-%{rel} --rpm_safe_upgrade || : | |
858 | ||
859 | %preun -n dkms-vboxhost | |
860 | set -x | |
861 | dkms remove -m vboxhost -v %{version}-%{rel} --rpm_safe_upgrade --all || : | |
862 | ||
d1c4ec5b | 863 | %if %{with userspace} |
48363591 | 864 | %files |
865 | %defattr(644,root,root,755) | |
2daf9ea4 ER |
866 | %dir %attr(751,root,root) %{_sysconfdir}/vbox |
867 | %dir %attr(770,root,vbox) %{_sysconfdir}/vbox/autostart | |
38d06cb9 ER |
868 | %attr(640,root,vbox) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/vbox/autostart.cfg |
869 | %attr(754,root,root) /etc/rc.d/init.d/vboxautostart | |
44a0c82d | 870 | %attr(755,root,root) /sbin/mount.vdi |
753cf356 ER |
871 | %attr(755,root,root) %{_bindir}/VBox |
872 | %attr(755,root,root) %{_bindir}/VBoxAutostart | |
873 | %attr(755,root,root) %{_bindir}/VBoxBalloonCtrl | |
85b005e2 | 874 | %attr(755,root,root) %{_bindir}/VBoxHeadless |
875 | %attr(755,root,root) %{_bindir}/VBoxManage | |
876 | %attr(755,root,root) %{_bindir}/VBoxSDL | |
85b005e2 | 877 | %attr(755,root,root) %{_bindir}/VBoxTunctl |
44a0c82d | 878 | %dir %{_libdir}/%{pname} |
753cf356 | 879 | # libraries |
23790586 ER |
880 | %attr(755,root,root) %{_libdir}/%{pname}/DBGCPlugInDiggers.so |
881 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxAuth.so | |
882 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxAuthSimple.so | |
23790586 | 883 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxDD.so |
753cf356 | 884 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxDD2.so |
23790586 ER |
885 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxDDU.so |
886 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxDragAndDropSvc.so | |
23790586 ER |
887 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxGuestControlSvc.so |
888 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxGuestPropSvc.so | |
23790586 ER |
889 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxHostChannel.so |
890 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxKeyboard.so | |
23790586 ER |
891 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxOGLhostcrutil.so |
892 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxOGLhosterrorspu.so | |
893 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxOGLrenderspu.so | |
894 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxPython*.so | |
895 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxREM.so | |
753cf356 ER |
896 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxRT.so |
897 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSharedClipboard.so | |
898 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSharedCrOpenGL.so | |
899 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSharedFolders.so | |
900 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxVMM.so | |
901 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxXPCOM.so | |
902 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxXPCOMC.so | |
f701b529 | 903 | %ifarch %{ix86} |
23790586 ER |
904 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxREM32.so |
905 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxREM64.so | |
f701b529 | 906 | %endif |
753cf356 ER |
907 | |
908 | # binaries | |
909 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxAutostart | |
910 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxBalloonCtrl | |
911 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxExtPackHelperApp | |
912 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxHeadless | |
913 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxManage | |
914 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxNetAdpCtl | |
915 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxNetDHCP | |
916 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxNetNAT | |
23790586 | 917 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSDL |
23790586 | 918 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxSVC |
23790586 | 919 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxVMMPreload |
753cf356 | 920 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxVolInfo |
23790586 | 921 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxXPCOMIPCD |
753cf356 ER |
922 | %attr(755,root,root) %{_libdir}/%{pname}/iPxeBaseBin |
923 | %if %{with doc} | |
924 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxManageHelp | |
925 | %endif | |
44a0c82d ER |
926 | |
927 | %dir %{_libdir}/%{pname}/ExtensionPacks | |
928 | %{_libdir}/%{pname}/ExtensionPacks/VNC/ExtPack.xml | |
929 | %dir %{_libdir}/%{pname}/ExtensionPacks/VNC | |
930 | %dir %{_libdir}/%{pname}/ExtensionPacks/VNC/linux* | |
23790586 | 931 | %attr(755,root,root) %{_libdir}/%{pname}/ExtensionPacks/VNC/linux*/VBoxVNC*.so |
44a0c82d | 932 | |
7733446a | 933 | %{_libdir}/%{pname}/VBoxDD2GC.debug |
23790586 | 934 | %{_libdir}/%{pname}/VBoxDD2GC.gc |
7733446a | 935 | %{_libdir}/%{pname}/VBoxDD2R0.debug |
23790586 | 936 | %{_libdir}/%{pname}/VBoxDD2R0.r0 |
7733446a JR |
937 | %{_libdir}/%{pname}/VBoxDDGC.debug |
938 | %{_libdir}/%{pname}/VBoxDDGC.gc | |
939 | %{_libdir}/%{pname}/VBoxDDR0.debug | |
23790586 | 940 | %{_libdir}/%{pname}/VBoxDDR0.r0 |
23790586 ER |
941 | %{_libdir}/%{pname}/VBoxEFI32.fd |
942 | %{_libdir}/%{pname}/VBoxEFI64.fd | |
7733446a JR |
943 | %{_libdir}/%{pname}/VMMGC.debug |
944 | %{_libdir}/%{pname}/VMMGC.gc | |
945 | %{_libdir}/%{pname}/VMMR0.debug | |
946 | %{_libdir}/%{pname}/VMMR0.r0 | |
44a0c82d ER |
947 | |
948 | %dir %{_libdir}/%{pname}/components | |
501bee39 | 949 | %{_libdir}/%{pname}/components/VBoxXPCOMBase.xpt |
23790586 ER |
950 | %{_libdir}/%{pname}/components/VirtualBox_XPCOM.xpt |
951 | %attr(755,root,root) %{_libdir}/%{pname}/components/VBoxC.so | |
952 | %attr(755,root,root) %{_libdir}/%{pname}/components/VBoxSVCM.so | |
953 | %attr(755,root,root) %{_libdir}/%{pname}/components/VBoxXPCOMIPCC.so | |
501bee39 | 954 | |
44a0c82d ER |
955 | %dir %{_datadir}/%{pname} |
956 | %attr(755,root,root) %{_datadir}/%{pname}/VBoxSysInfo.sh | |
957 | ||
501bee39 ER |
958 | %config(noreplace) %verify(not md5 mtime size) /etc/udev/rules.d/virtualbox.rules |
959 | %attr(755,root,root) /lib/udev/VBoxCreateUSBNode.sh | |
960 | ||
961 | %files gui | |
962 | %defattr(644,root,root,755) | |
963 | %attr(755,root,root) %{_bindir}/VirtualBox | |
501bee39 ER |
964 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxDbg.so |
965 | %attr(755,root,root) %{_libdir}/%{pname}/VBoxTestOGL | |
753cf356 | 966 | %attr(755,root,root) %{_libdir}/%{pname}/VirtualBox |
44a0c82d ER |
967 | %dir %{_datadir}/%{pname}/nls |
968 | %lang(bg) %{_datadir}/%{pname}/nls/*_bg.qm | |
969 | %lang(ca) %{_datadir}/%{pname}/nls/*_ca.qm | |
970 | %lang(ca_VA) %{_datadir}/%{pname}/nls/*_ca_VA.qm | |
971 | %lang(cs) %{_datadir}/%{pname}/nls/*_cs.qm | |
972 | %lang(da) %{_datadir}/%{pname}/nls/*_da.qm | |
973 | %lang(de) %{_datadir}/%{pname}/nls/*_de.qm | |
974 | %lang(en) %{_datadir}/%{pname}/nls/*_en.qm | |
975 | %lang(es) %{_datadir}/%{pname}/nls/*_es.qm | |
976 | %lang(eu) %{_datadir}/%{pname}/nls/*_eu.qm | |
977 | %lang(fi) %{_datadir}/%{pname}/nls/*_fa_IR.qm | |
978 | %lang(fi) %{_datadir}/%{pname}/nls/*_fi.qm | |
979 | %lang(fr) %{_datadir}/%{pname}/nls/*_fr.qm | |
980 | %lang(gl_ES) %{_datadir}/%{pname}/nls/*_gl_ES.qm | |
981 | %lang(hu) %{_datadir}/%{pname}/nls/*_hu.qm | |
982 | %lang(id) %{_datadir}/%{pname}/nls/*_id.qm | |
983 | %lang(it) %{_datadir}/%{pname}/nls/*_it.qm | |
984 | %lang(ja) %{_datadir}/%{pname}/nls/*_ja.qm | |
985 | %lang(km_KH) %{_datadir}/%{pname}/nls/*_km_KH.qm | |
986 | %lang(ko) %{_datadir}/%{pname}/nls/*_ko.qm | |
987 | %lang(lt) %{_datadir}/%{pname}/nls/*_lt.qm | |
988 | %lang(nl) %{_datadir}/%{pname}/nls/*_nl.qm | |
989 | %lang(pl) %{_datadir}/%{pname}/nls/*_pl.qm | |
990 | %lang(pt) %{_datadir}/%{pname}/nls/*_pt.qm | |
991 | %lang(pt_BR) %{_datadir}/%{pname}/nls/*_pt_BR.qm | |
992 | %lang(ro) %{_datadir}/%{pname}/nls/*_ro.qm | |
993 | %lang(ru) %{_datadir}/%{pname}/nls/*_ru.qm | |
994 | %lang(sk) %{_datadir}/%{pname}/nls/*_sk.qm | |
995 | %lang(sr) %{_datadir}/%{pname}/nls/*_sr.qm | |
996 | %lang(sv) %{_datadir}/%{pname}/nls/*_sv.qm | |
997 | %lang(tr) %{_datadir}/%{pname}/nls/*_tr.qm | |
998 | %lang(uk) %{_datadir}/%{pname}/nls/*_uk.qm | |
999 | %lang(zh_CN) %{_datadir}/%{pname}/nls/*_zh_CN.qm | |
1000 | %lang(zh_TW) %{_datadir}/%{pname}/nls/*_zh_TW.qm | |
501bee39 | 1001 | %{_desktopdir}/virtualbox.desktop |
44a0c82d ER |
1002 | %{_pixmapsdir}/virtualbox.png |
1003 | %{_iconsdir}/hicolor/*/apps/virtualbox.png | |
1004 | %{_iconsdir}/hicolor/*/apps/virtualbox.svg | |
1005 | %{_iconsdir}/hicolor/*/mimetypes/virtualbox-*.png | |
501bee39 | 1006 | %{_datadir}/mime/packages/virtualbox.xml |
12db98a7 | 1007 | |
ffb38bb6 | 1008 | %files additions |
9dda6415 | 1009 | %defattr(644,root,root,755) |
44a0c82d | 1010 | %{_datadir}/%{pname}/VBoxGuestAdditions.iso |
ffb38bb6 | 1011 | |
1067d08d ER |
1012 | %files guest |
1013 | %defattr(644,root,root,755) | |
c11f39b3 | 1014 | %attr(755,root,root) /sbin/mount.vboxsf |
07e9b84d | 1015 | %attr(754,root,root) /etc/rc.d/init.d/vboxservice |
4365ecaf | 1016 | %{systemdunitdir}/vboxservice.service |
c0372ee9 ER |
1017 | %attr(755,root,root) %{_bindir}/VBoxControl |
1018 | %attr(755,root,root) %{_bindir}/VBoxService | |
1019 | ||
1020 | %files guest-x11 | |
3d9b19d8 | 1021 | %defattr(644,root,root,755) |
90de3b27 | 1022 | /etc/xdg/autostart/vboxclient.desktop |
4e3859c5 ER |
1023 | %attr(755,root,root) %{_bindir}/VBoxClient |
1024 | %attr(755,root,root) %{_bindir}/VBoxClient-all | |
1067d08d | 1025 | |
21a1d8ab ER |
1026 | %if %{with webservice} |
1027 | %files webservice | |
1028 | %defattr(644,root,root,755) | |
44a0c82d | 1029 | %attr(755,root,root) %{_bindir}/vboxwebsrv |
21a1d8ab ER |
1030 | %attr(755,root,root) %{_libdir}/%{pname}/vboxwebsrv |
1031 | %attr(755,root,root) %{_libdir}/%{pname}/webtest | |
1032 | %endif | |
1033 | ||
8d08b907 | 1034 | %if %{with lightdm} |
9e4dd6a9 | 1035 | %files -n lightdm-greeter-vbox |
8d08b907 ER |
1036 | %defattr(644,root,root,755) |
1037 | %attr(755,root,root) %{_sbindir}/vbox-greeter | |
1038 | %{_datadir}/xgreeters/vbox-greeter.desktop | |
1039 | %endif | |
1040 | ||
3613936b JR |
1041 | %files -n pam-pam_vbox |
1042 | %defattr(644,root,root,755) | |
3ee6b9d9 | 1043 | %attr(755,root,root) /%{_lib}/security/pam_vbox.so |
3613936b | 1044 | |
90de3b27 ER |
1045 | %if %{with doc} |
1046 | %files doc | |
1047 | %defattr(644,root,root,755) | |
f0a66b84 JR |
1048 | # this is a symlink... |
1049 | %doc %{_libdir}/%{pname}/UserManual.pdf | |
6ee3b66d | 1050 | %lang(fr) %doc %{_libdir}/%{pname}/UserManual_fr_FR.pdf |
f0a66b84 | 1051 | # ..to this file |
90de3b27 | 1052 | %doc %{outdir}/UserManual.pdf |
d43f5558 | 1053 | %lang(fr) %doc %{outdir}/UserManual_fr_FR.pdf |
90de3b27 ER |
1054 | %endif |
1055 | ||
09c79ddb | 1056 | %files -n xorg-driver-video-vboxvideo |
1057 | %defattr(644,root,root,755) | |
1058 | %attr(755,root,root) %{_libdir}/xorg/modules/drivers/vboxvideo_drv.so | |
27a1aef6 ER |
1059 | %attr(755,root,root) %{_libdir}/xorg/modules/dri/vboxvideo_dri.so |
1060 | # vboxvideo_dri.so deps | |
1067d08d | 1061 | %attr(755,root,root) %{_libdir}/VBoxOGLarrayspu.so |
27a1aef6 ER |
1062 | %attr(755,root,root) %{_libdir}/VBoxOGLcrutil.so |
1063 | %attr(755,root,root) %{_libdir}/VBoxOGLerrorspu.so | |
1064 | %attr(755,root,root) %{_libdir}/VBoxOGLfeedbackspu.so | |
1065 | %attr(755,root,root) %{_libdir}/VBoxOGLpackspu.so | |
1066 | %attr(755,root,root) %{_libdir}/VBoxOGLpassthroughspu.so | |
988a8f09 ER |
1067 | |
1068 | %if %{with dkms} | |
1069 | %files -n dkms-vboxguest | |
1070 | %defattr(644,root,root,755) | |
1071 | %{_usrsrc}/vboxguest-%{version}-%{rel} | |
1072 | ||
1073 | %files -n dkms-vboxhost | |
1074 | %defattr(644,root,root,755) | |
1075 | %{_usrsrc}/vboxhost-%{version}-%{rel} | |
1076 | %endif | |
c38a3946 | 1077 | %endif |