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