1 | # $Id: VirtualBox.tmpl.spec 103028 2024-01-24 15:53:59Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Spec file for creating VirtualBox rpm packages
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2023 Oracle and/or its affiliates.
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox base platform packages, as
|
---|
10 | # available from https://www.virtualbox.org.
|
---|
11 | #
|
---|
12 | # This program is free software; you can redistribute it and/or
|
---|
13 | # modify it under the terms of the GNU General Public License
|
---|
14 | # as published by the Free Software Foundation, in version 3 of the
|
---|
15 | # License.
|
---|
16 | #
|
---|
17 | # This program is distributed in the hope that it will be useful, but
|
---|
18 | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | # General Public License for more details.
|
---|
21 | #
|
---|
22 | # You should have received a copy of the GNU General Public License
|
---|
23 | # along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
24 | #
|
---|
25 | # SPDX-License-Identifier: GPL-3.0-only
|
---|
26 | #
|
---|
27 |
|
---|
28 | %define %SPEC% 1
|
---|
29 | %define %OSE% 1
|
---|
30 | %define %PYTHON% 1
|
---|
31 | %define %QHELP% 1
|
---|
32 | %define VBOXDOCDIR %{_defaultdocdir}/%NAME%
|
---|
33 | %global __requires_exclude_from ^/usr/lib/virtualbox/VBoxPython.*$|^/usr/lib/python.*$|^.*\\.py$
|
---|
34 | %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
---|
35 |
|
---|
36 | Summary: Oracle VM VirtualBox
|
---|
37 | Name: %NAME%
|
---|
38 | Version: %BUILDVER%_%BUILDREL%
|
---|
39 | Release: 1
|
---|
40 | URL: http://www.virtualbox.org/
|
---|
41 | Source: VirtualBox.tar
|
---|
42 | License: GPLv3
|
---|
43 | Group: Applications/System
|
---|
44 | Vendor: Oracle Corporation
|
---|
45 | BuildRoot: %BUILDROOT%
|
---|
46 | Requires: %INITSCRIPTS% %LIBASOUND% %NETTOOLS% %LIBVULKAN%
|
---|
47 |
|
---|
48 | %if %{?rpm_suse:1}%{!?rpm_suse:0}
|
---|
49 | %debug_package
|
---|
50 | %endif
|
---|
51 |
|
---|
52 | %MACROSPYTHON%
|
---|
53 | %if %{?__python3:1}%{!?__python3:0}
|
---|
54 | %define vbox_python %{__python3}
|
---|
55 | %define vbox_python_sitelib %{python3_sitelib}
|
---|
56 | %else
|
---|
57 | %define vbox_python %{__python}
|
---|
58 | %{?rpm_suse: %define vbox_python_sitelib %{py_sitedir}}
|
---|
59 | %{!?rpm_suse: %define vbox_python_sitelib %{python_sitelib}}
|
---|
60 | %endif
|
---|
61 |
|
---|
62 | # Remove source code from debuginfo package, needed for Fedora 27 and later
|
---|
63 | # as we build the binaries before creating the RPMs.
|
---|
64 | %if 0%{?fedora} >= 27
|
---|
65 | %undefine _debugsource_packages
|
---|
66 | %undefine _debuginfo_subpackages
|
---|
67 | %endif
|
---|
68 | %if 0%{?rhel} >= 8
|
---|
69 | %undefine _debugsource_packages
|
---|
70 | %undefine _debuginfo_subpackages
|
---|
71 | %endif
|
---|
72 |
|
---|
73 | %description
|
---|
74 | VirtualBox is a powerful PC virtualization solution allowing
|
---|
75 | you to run a wide range of PC operating systems on your Linux
|
---|
76 | system. This includes Windows, Linux, FreeBSD, DOS, OpenBSD
|
---|
77 | and others. VirtualBox comes with a broad feature set and
|
---|
78 | excellent performance, making it the premier virtualization
|
---|
79 | software solution on the market.
|
---|
80 |
|
---|
81 |
|
---|
82 | %prep
|
---|
83 | %setup -q
|
---|
84 | DESTDIR=""
|
---|
85 | unset DESTDIR
|
---|
86 |
|
---|
87 |
|
---|
88 | %build
|
---|
89 |
|
---|
90 |
|
---|
91 | %install
|
---|
92 | # Mandriva: prevent replacing 'echo' by 'gprintf'
|
---|
93 | export DONT_GPRINTIFY=1
|
---|
94 | rm -rf $RPM_BUILD_ROOT
|
---|
95 | install -m 755 -d $RPM_BUILD_ROOT/sbin
|
---|
96 | install -m 755 -d $RPM_BUILD_ROOT%{_initrddir}
|
---|
97 | install -m 755 -d $RPM_BUILD_ROOT/lib/modules
|
---|
98 | install -m 755 -d $RPM_BUILD_ROOT/etc/vbox
|
---|
99 | install -m 755 -d $RPM_BUILD_ROOT/usr/bin
|
---|
100 | install -m 755 -d $RPM_BUILD_ROOT/usr/src
|
---|
101 | install -m 755 -d $RPM_BUILD_ROOT/usr/share/applications
|
---|
102 | install -m 755 -d $RPM_BUILD_ROOT/usr/share/pixmaps
|
---|
103 | install -m 755 -d $RPM_BUILD_ROOT/usr/share/icons/hicolor
|
---|
104 | install -m 755 -d $RPM_BUILD_ROOT%{VBOXDOCDIR}
|
---|
105 | install -m 755 -d $RPM_BUILD_ROOT/usr/lib/virtualbox
|
---|
106 | install -m 755 -d $RPM_BUILD_ROOT/usr/share/virtualbox
|
---|
107 | install -m 755 -d $RPM_BUILD_ROOT/usr/share/mime/packages
|
---|
108 | %if %{?with_python:1}%{!?with_python:0}
|
---|
109 | (export VBOX_INSTALL_PATH=/usr/lib/virtualbox && \
|
---|
110 | cd ./sdk/installer/python && \
|
---|
111 | %{vbox_python} ./vboxapisetup.py install --prefix %{_prefix} --root $RPM_BUILD_ROOT)
|
---|
112 | %endif
|
---|
113 | rm -rf sdk/installer
|
---|
114 | mv UnattendedTemplates $RPM_BUILD_ROOT/usr/share/virtualbox
|
---|
115 | mv nls $RPM_BUILD_ROOT/usr/share/virtualbox
|
---|
116 | cp -a src $RPM_BUILD_ROOT/usr/share/virtualbox
|
---|
117 | mv VBox.sh $RPM_BUILD_ROOT/usr/bin/VBox
|
---|
118 | mv VBoxSysInfo.sh $RPM_BUILD_ROOT/usr/share/virtualbox
|
---|
119 | cp icons/128x128/virtualbox.png $RPM_BUILD_ROOT/usr/share/pixmaps/virtualbox.png
|
---|
120 | cd icons
|
---|
121 | for i in *; do
|
---|
122 | if [ -f $i/virtualbox.* ]; then
|
---|
123 | install -d $RPM_BUILD_ROOT/usr/share/icons/hicolor/$i/apps
|
---|
124 | mv $i/virtualbox.* $RPM_BUILD_ROOT/usr/share/icons/hicolor/$i/apps
|
---|
125 | fi
|
---|
126 | install -d $RPM_BUILD_ROOT/usr/share/icons/hicolor/$i/mimetypes
|
---|
127 | mv $i/* $RPM_BUILD_ROOT/usr/share/icons/hicolor/$i/mimetypes || true
|
---|
128 | rmdir $i
|
---|
129 | done
|
---|
130 | cd -
|
---|
131 | rmdir icons
|
---|
132 | mv virtualbox.xml $RPM_BUILD_ROOT/usr/share/mime/packages
|
---|
133 | %if %{?is_ose:0}%{!?is_ose:1}
|
---|
134 | %if "%BUILDREL%" == "el7"
|
---|
135 | # For el7 we use gcc from devtoolset-4, which is not suitable for kernel work.
|
---|
136 | # See the PATH trickery in src/VBox/Installer/linux/rpm/rules.
|
---|
137 | old_path="$PATH"
|
---|
138 | PATH=${PATH#/opt/rh/devtoolset-4/root/usr/bin:}
|
---|
139 | %endif
|
---|
140 | for d in /lib/modules/*; do
|
---|
141 | if [ -L $d/build ]; then
|
---|
142 | rm -f /tmp/vboxdrv-Module.symvers
|
---|
143 | ./src/vboxhost/build_in_tmp \
|
---|
144 | --save-module-symvers /tmp/vboxdrv-Module.symvers \
|
---|
145 | --module-source `pwd`/src/vboxhost/vboxdrv \
|
---|
146 | KBUILD_VERBOSE= KERN_VER=$(basename $d) INSTALL_MODULE_PATH=$RPM_BUILD_ROOT -j4 \
|
---|
147 | %INSTMOD%
|
---|
148 | ./src/vboxhost/build_in_tmp \
|
---|
149 | --use-module-symvers /tmp/vboxdrv-Module.symvers \
|
---|
150 | --module-source `pwd`/src/vboxhost/vboxnetflt \
|
---|
151 | KBUILD_VERBOSE= KERN_VER=$(basename $d) INSTALL_MODULE_PATH=$RPM_BUILD_ROOT -j4 \
|
---|
152 | %INSTMOD%
|
---|
153 | ./src/vboxhost/build_in_tmp \
|
---|
154 | --use-module-symvers /tmp/vboxdrv-Module.symvers \
|
---|
155 | --module-source `pwd`/src/vboxhost/vboxnetadp \
|
---|
156 | KBUILD_VERBOSE= KERN_VER=$(basename $d) INSTALL_MODULE_PATH=$RPM_BUILD_ROOT -j4 \
|
---|
157 | %INSTMOD%
|
---|
158 | if [ -e `pwd`/src/vboxhost/vboxpci ]; then
|
---|
159 | ./src/vboxhost/build_in_tmp \
|
---|
160 | --use-module-symvers /tmp/vboxdrv-Module.symvers \
|
---|
161 | --module-source `pwd`/src/vboxhost/vboxpci \
|
---|
162 | KBUILD_VERBOSE= KERN_VER=$(basename $d) INSTALL_MODULE_PATH=$RPM_BUILD_ROOT -j4 \
|
---|
163 | %INSTMOD%
|
---|
164 | fi
|
---|
165 | fi
|
---|
166 | done
|
---|
167 | %if "%BUILDREL%" == "el7"
|
---|
168 | # For el7 restore PATH, see above.
|
---|
169 | PATH="$old_path"
|
---|
170 | unset old_path
|
---|
171 | %endif
|
---|
172 | rm -r src
|
---|
173 | %endif
|
---|
174 | for i in additions/VBoxGuestAdditions.iso; do
|
---|
175 | mv $i $RPM_BUILD_ROOT/usr/share/virtualbox; done
|
---|
176 | ln -s VBox $RPM_BUILD_ROOT/usr/bin/VirtualBox
|
---|
177 | ln -s VBox $RPM_BUILD_ROOT/usr/bin/virtualbox
|
---|
178 | ln -s VBox $RPM_BUILD_ROOT/usr/bin/VirtualBoxVM
|
---|
179 | ln -s VBox $RPM_BUILD_ROOT/usr/bin/virtualboxvm
|
---|
180 | ln -s VBox $RPM_BUILD_ROOT/usr/bin/VBoxManage
|
---|
181 | ln -s VBox $RPM_BUILD_ROOT/usr/bin/vboxmanage
|
---|
182 | test -f VBoxSDL && ln -s VBox $RPM_BUILD_ROOT/usr/bin/VBoxSDL
|
---|
183 | test -f VBoxSDL && ln -s VBox $RPM_BUILD_ROOT/usr/bin/vboxsdl
|
---|
184 | ln -s VBox $RPM_BUILD_ROOT/usr/bin/VBoxVRDP
|
---|
185 | ln -s VBox $RPM_BUILD_ROOT/usr/bin/VBoxHeadless
|
---|
186 | ln -s VBox $RPM_BUILD_ROOT/usr/bin/vboxheadless
|
---|
187 | ln -s VBox $RPM_BUILD_ROOT/usr/bin/VBoxDTrace
|
---|
188 | ln -s VBox $RPM_BUILD_ROOT/usr/bin/VBoxAudioTest
|
---|
189 | ln -s VBox $RPM_BUILD_ROOT/usr/bin/vboxdtrace
|
---|
190 | ln -s VBox $RPM_BUILD_ROOT/usr/bin/vboxaudiotest
|
---|
191 | test -f VBoxBugReport && ln -s VBox $RPM_BUILD_ROOT/usr/bin/VBoxBugReport
|
---|
192 | test -f VBoxBugReport && ln -s VBox $RPM_BUILD_ROOT/usr/bin/vboxbugreport
|
---|
193 | test -f VBoxBalloonCtrl && ln -s VBox $RPM_BUILD_ROOT/usr/bin/VBoxBalloonCtrl
|
---|
194 | test -f VBoxBalloonCtrl && ln -s VBox $RPM_BUILD_ROOT/usr/bin/vboxballoonctrl
|
---|
195 | test -f VBoxAutostart && ln -s VBox $RPM_BUILD_ROOT/usr/bin/VBoxAutostart
|
---|
196 | test -f VBoxAutostart && ln -s VBox $RPM_BUILD_ROOT/usr/bin/vboxautostart
|
---|
197 | test -f vboxwebsrv && ln -s VBox $RPM_BUILD_ROOT/usr/bin/vboxwebsrv
|
---|
198 | ln -s /usr/lib/virtualbox/vbox-img $RPM_BUILD_ROOT/usr/bin/vbox-img
|
---|
199 | ln -s /usr/lib/virtualbox/vboximg-mount $RPM_BUILD_ROOT/usr/bin/vboximg-mount
|
---|
200 | ln -s /usr/share/virtualbox/src/vboxhost $RPM_BUILD_ROOT/usr/src/vboxhost-%VER%
|
---|
201 | mv virtualbox.desktop $RPM_BUILD_ROOT/usr/share/applications/virtualbox.desktop
|
---|
202 | mv VBox.png $RPM_BUILD_ROOT/usr/share/pixmaps/VBox.png
|
---|
203 | %{!?is_ose: mv LICENSE $RPM_BUILD_ROOT%{VBOXDOCDIR}}
|
---|
204 | mv UserManual*.pdf $RPM_BUILD_ROOT%{VBOXDOCDIR}
|
---|
205 | %{?with_qhelp: mv UserManual*.qch UserManual*.qhc $RPM_BUILD_ROOT%{VBOXDOCDIR}}
|
---|
206 | install -m 755 -d $RPM_BUILD_ROOT/usr/lib/debug/usr/lib/virtualbox
|
---|
207 | %if %{?rpm_suse:1}%{!?rpm_suse:0}
|
---|
208 | rm *.debug
|
---|
209 | %else
|
---|
210 | mv *.debug $RPM_BUILD_ROOT/usr/lib/debug/usr/lib/virtualbox
|
---|
211 | %endif
|
---|
212 | mv * $RPM_BUILD_ROOT/usr/lib/virtualbox
|
---|
213 | if [ -f $RPM_BUILD_ROOT/usr/lib/virtualbox/libQt6CoreVBox.so.6 ]; then
|
---|
214 | $RPM_BUILD_ROOT/usr/lib/virtualbox/chrpath --keepgoing --replace /usr/lib/virtualbox \
|
---|
215 | $RPM_BUILD_ROOT/usr/lib/virtualbox/*.so.6 \
|
---|
216 | $RPM_BUILD_ROOT/usr/lib/virtualbox/plugins/platforms/*.so \
|
---|
217 | $RPM_BUILD_ROOT/usr/lib/virtualbox/plugins/platformthemes/*.so \
|
---|
218 | $RPM_BUILD_ROOT/usr/lib/virtualbox/plugins/sqldrivers/*.so \
|
---|
219 | $RPM_BUILD_ROOT/usr/lib/virtualbox/plugins/styles/*.so || true
|
---|
220 | echo "[Paths]" > $RPM_BUILD_ROOT/usr/lib/virtualbox/qt.conf
|
---|
221 | echo "Plugins = /usr/lib/virtualbox/plugins" >> $RPM_BUILD_ROOT/usr/lib/virtualbox/qt.conf
|
---|
222 | fi
|
---|
223 | rm -f $RPM_BUILD_ROOT/usr/lib/virtualbox/chrpath
|
---|
224 | ln -s ../VBoxVMM.so $RPM_BUILD_ROOT/usr/lib/virtualbox/components/VBoxVMM.so
|
---|
225 | for i in VBoxHeadless VBoxNetDHCP VBoxNetNAT VBoxNetAdpCtl; do
|
---|
226 | chmod 4511 $RPM_BUILD_ROOT/usr/lib/virtualbox/$i; done
|
---|
227 | if test -e $RPM_BUILD_ROOT/usr/lib/virtualbox/VirtualBoxVM; then
|
---|
228 | chmod 4511 $RPM_BUILD_ROOT/usr/lib/virtualbox/VirtualBoxVM
|
---|
229 | else
|
---|
230 | chmod 4511 $RPM_BUILD_ROOT/usr/lib/virtualbox/VirtualBox
|
---|
231 | fi
|
---|
232 | if [ -f $RPM_BUILD_ROOT/usr/lib/virtualbox/VBoxVolInfo ]; then
|
---|
233 | chmod 4511 $RPM_BUILD_ROOT/usr/lib/virtualbox/VBoxVolInfo
|
---|
234 | fi
|
---|
235 | test -f $RPM_BUILD_ROOT/usr/lib/virtualbox/VBoxSDL && \
|
---|
236 | chmod 4511 $RPM_BUILD_ROOT/usr/lib/virtualbox/VBoxSDL
|
---|
237 | %if %{?with_python:1}%{!?with_python:0}
|
---|
238 | if [ -x /usr/bin/pathfix.py ]; then
|
---|
239 | /usr/bin/pathfix.py -pni "%{__python3} %{py3_shbang_opts}" $RPM_BUILD_ROOT/usr/lib/virtualbox/vboxshell.py
|
---|
240 | fi
|
---|
241 | %endif
|
---|
242 |
|
---|
243 |
|
---|
244 | %pre
|
---|
245 | # defaults
|
---|
246 | [ -r /etc/default/virtualbox ] && . /etc/default/virtualbox
|
---|
247 |
|
---|
248 | # check for old installation
|
---|
249 | if [ -r /etc/vbox/vbox.cfg ]; then
|
---|
250 | . /etc/vbox/vbox.cfg
|
---|
251 | if [ "x$INSTALL_DIR" != "x" -a -d "$INSTALL_DIR" ]; then
|
---|
252 | echo "An old installation of VirtualBox was found. To install this package the"
|
---|
253 | echo "old package has to be removed first. Have a look at /etc/vbox/vbox.cfg to"
|
---|
254 | echo "determine the installation directory of the previous installation. After"
|
---|
255 | echo "uninstalling the old package remove the file /etc/vbox/vbox.cfg."
|
---|
256 | exit 1
|
---|
257 | fi
|
---|
258 | fi
|
---|
259 |
|
---|
260 | # check for active VMs of the installed (old) package
|
---|
261 | # Execute the installed packages pre-uninstaller if present.
|
---|
262 | /usr/lib/virtualbox/prerm-common.sh 2>/dev/null
|
---|
263 | # Stop services from older versions without pre-uninstaller.
|
---|
264 | /etc/init.d/vboxballoonctrl-service stop 2>/dev/null
|
---|
265 | /etc/init.d/vboxautostart-service stop 2>/dev/null
|
---|
266 | /etc/init.d/vboxweb-service stop 2>/dev/null
|
---|
267 | VBOXSVC_PID=`pidof VBoxSVC 2>/dev/null || true`
|
---|
268 | if [ -n "$VBOXSVC_PID" ]; then
|
---|
269 | # ask the daemon to terminate immediately
|
---|
270 | kill -USR1 $VBOXSVC_PID
|
---|
271 | sleep 1
|
---|
272 | if pidof VBoxSVC > /dev/null 2>&1; then
|
---|
273 | echo "A copy of VirtualBox is currently running. Please close it and try again."
|
---|
274 | echo "Please note that it can take up to ten seconds for VirtualBox (in particular"
|
---|
275 | echo "the VBoxSVC daemon) to finish running."
|
---|
276 | exit 1
|
---|
277 | fi
|
---|
278 | fi
|
---|
279 |
|
---|
280 |
|
---|
281 | %post
|
---|
282 | LOG="/var/log/vbox-install.log"
|
---|
283 |
|
---|
284 | # defaults
|
---|
285 | [ -r /etc/default/virtualbox ] && . /etc/default/virtualbox
|
---|
286 |
|
---|
287 | # remove old cruft
|
---|
288 | if [ -f /etc/init.d/vboxdrv.sh ]; then
|
---|
289 | echo "Found old version of /etc/init.d/vboxdrv.sh, removing."
|
---|
290 | rm /etc/init.d/vboxdrv.sh
|
---|
291 | fi
|
---|
292 | if [ -f /etc/vbox/vbox.cfg ]; then
|
---|
293 | echo "Found old version of /etc/vbox/vbox.cfg, removing."
|
---|
294 | rm /etc/vbox/vbox.cfg
|
---|
295 | fi
|
---|
296 | rm -f /etc/vbox/module_not_compiled
|
---|
297 |
|
---|
298 | # create users groups (disable with INSTALL_NO_GROUP=1 in /etc/default/virtualbox)
|
---|
299 | if [ "$INSTALL_NO_GROUP" != "1" ]; then
|
---|
300 | echo
|
---|
301 | echo "Creating group 'vboxusers'. VM users must be member of that group!"
|
---|
302 | echo
|
---|
303 | groupadd -r -f vboxusers 2> /dev/null
|
---|
304 | fi
|
---|
305 |
|
---|
306 | %if %{?rpm_mdv:1}%{!?rpm_mdv:0}
|
---|
307 | /sbin/ldconfig
|
---|
308 | %update_menus
|
---|
309 | %endif
|
---|
310 | update-mime-database /usr/share/mime &> /dev/null || :
|
---|
311 | update-desktop-database -q > /dev/null 2>&1 || :
|
---|
312 | touch --no-create /usr/share/icons/hicolor
|
---|
313 | gtk-update-icon-cache -q /usr/share/icons/hicolor 2> /dev/null || :
|
---|
314 |
|
---|
315 | # Disable module compilation with INSTALL_NO_VBOXDRV=1 in /etc/default/virtualbox
|
---|
316 | if test "${INSTALL_NO_VBOXDRV}" = 1; then
|
---|
317 | POSTINST_START=--nostart
|
---|
318 | else
|
---|
319 | POSTINST_START=
|
---|
320 | fi
|
---|
321 | # Install and start the new service scripts.
|
---|
322 | /usr/lib/virtualbox/prerm-common.sh || true
|
---|
323 | /usr/lib/virtualbox/postinst-common.sh ${POSTINST_START} > /dev/null || true
|
---|
324 |
|
---|
325 |
|
---|
326 | %preun
|
---|
327 | # Called before the package is removed, or during upgrade after (not before)
|
---|
328 | # the new version's "post" scriptlet.
|
---|
329 | # $1==0: remove the last version of the package
|
---|
330 | # $1>=1: upgrade
|
---|
331 | if [ "$1" = 0 ]; then
|
---|
332 | /usr/lib/virtualbox/prerm-common.sh || exit 1
|
---|
333 | rm -f /etc/udev/rules.d/60-vboxdrv.rules
|
---|
334 | rm -f /etc/vbox/license_agreed
|
---|
335 | rm -f /etc/vbox/module_not_compiled
|
---|
336 | fi
|
---|
337 |
|
---|
338 | %postun
|
---|
339 | %if %{?rpm_mdv:1}%{!?rpm_mdv:0}
|
---|
340 | /sbin/ldconfig
|
---|
341 | %{clean_desktop_database}
|
---|
342 | %clean_menus
|
---|
343 | %endif
|
---|
344 | update-mime-database /usr/share/mime &> /dev/null || :
|
---|
345 | update-desktop-database -q > /dev/null 2>&1 || :
|
---|
346 | touch --no-create /usr/share/icons/hicolor
|
---|
347 | gtk-update-icon-cache -q /usr/share/icons/hicolor 2> /dev/null || :
|
---|
348 | rm -rf /usr/lib/virtualbox/ExtensionPacks
|
---|
349 |
|
---|
350 |
|
---|
351 | %clean
|
---|
352 | rm -rf $RPM_BUILD_ROOT
|
---|
353 |
|
---|
354 |
|
---|
355 | %changelog
|
---|
356 | * %DATE% Oracle Corporation <info@virtualbox.org>
|
---|
357 | - rebuild RPM package, see https://www.virtualbox.org/wiki/Changelog
|
---|
358 |
|
---|
359 |
|
---|
360 | %files
|
---|
361 | %defattr(-,root,root)
|
---|
362 | %doc %{VBOXDOCDIR}/*
|
---|
363 | %if %{?with_python:1}%{!?with_python:0}
|
---|
364 | %{vbox_python_sitelib}/*
|
---|
365 | %endif
|
---|
366 | /etc/vbox
|
---|
367 | /usr/bin/*
|
---|
368 | /usr/src/vbox*
|
---|
369 | /usr/lib/virtualbox
|
---|
370 | /usr/share/applications/*
|
---|
371 | /usr/share/icons/hicolor/*/apps/*
|
---|
372 | /usr/share/icons/hicolor/*/mimetypes/*
|
---|
373 | /usr/share/mime/packages/*
|
---|
374 | /usr/share/pixmaps/*
|
---|
375 | /usr/share/virtualbox
|
---|