1
0
forked from pool/virtualbox

Indent large macro block at start-of-file

This commit is contained in:
Jan Engelhardt 2024-12-29 16:48:43 +01:00
parent 86fdbe5dc4
commit c2cd5e2e10

View File

@ -17,38 +17,41 @@
%if "@BUILD_FLAVOR@" == "kmp" %if "@BUILD_FLAVOR@" == "kmp"
### macros for virtualbox-kmp ### # macros for virtualbox-kmp
%define main_package 0 %define main_package 0
%define kmp_package 1 %define kmp_package 1
%if 0%{?suse_version} > 1600 %if 0%{?suse_version} > 1600
%define kmp_longterm 1 %define kmp_longterm 1
%endif %endif
%define name_suffix kmp %define name_suffix kmp
%define dash - %define dash -
%define package_summary Kernel modules for VirtualBox %define package_summary Kernel modules for VirtualBox
%if %{undefined kernel_module_directory} %if %{undefined kernel_module_directory}
%define kernel_module_directory /lib/modules %define kernel_module_directory /lib/modules
%endif %endif
%else %else
### macros for virtualbox main package ### # macros for virtualbox main package ###
%define main_package 1 %define main_package 1
%define kmp_package 0 %define kmp_package 0
%define package_summary VirtualBox is an Emulator %define package_summary VirtualBox is an Emulator
%define qt5ver %(rpm -q --queryformat %%{version} libQt5Core5|perl -ne '/(\\d+)\\.(\\d+)\\.(\\d+)?/&&printf "%%d%%02d%%02d\\n",$1,$2,$3') %define qt5ver %(rpm -q --queryformat %%{version} libQt5Core5|perl -ne '/(\\d+)\\.(\\d+)\\.(\\d+)?/&&printf "%%d%%02d%%02d\\n",$1,$2,$3')
#Compat macro for new _fillupdir macro introduced in Nov 2017 # Compat macro for new _fillupdir macro introduced in Nov 2017
%if ! %{defined _fillupdir} %if !%{defined _fillupdir}
%define _fillupdir %{_localstatedir}/adm/fillup-templates %define _fillupdir %{_localstatedir}/adm/fillup-templates
%endif %endif
%if ! %{defined _distconfdir} %if ! %{defined _distconfdir}
%define _distconfdir %{_sysconfdir} %define _distconfdir %{_sysconfdir}
%endif %endif
# Do not provide libGL.so symbols - they are owned by Mesa already and this could potentially confuse rpm/zypp # Do not provide libGL.so symbols - they are owned by Mesa already and
%global __provides_exclude ^libE?GL.so.1.*$ # this could potentially confuse rpm/zypp
# With 32-bit builds, the job limit cannot be larger than 2, otherwise the build runs out of memory. %global __provides_exclude ^libE?GL.so.1.*$
# For 64-bit builds, no memory limit is reached when more jobs are run, but the builds crash with strange errors. # With 32-bit builds, the job limit cannot be larger than 2, otherwise
# For the above reasons, limit the number of jobs to 2. # the build runs out of memory.
%define _vbox_instdir %{_prefix}/lib/virtualbox # For 64-bit builds, no memory limit is reached when more jobs are run,
%define _udevrulesdir %{_prefix}/lib/udev/rules.d # but the builds crash with strange errors.
# For the above reasons, limit the number of jobs to 2.
%define _vbox_instdir %{_prefix}/lib/virtualbox
%define _udevrulesdir %{_prefix}/lib/udev/rules.d
%endif %endif
# ********* If the VB version exceeds 6.1.x, notify the libvirt maintainer!! # ********* If the VB version exceeds 6.1.x, notify the libvirt maintainer!!
Name: virtualbox%{?dash}%{?name_suffix} Name: virtualbox%{?dash}%{?name_suffix}