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