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