diff --git a/virtualbox.spec b/virtualbox.spec index fb67c50..419ca07 100644 --- a/virtualbox.spec +++ b/virtualbox.spec @@ -17,38 +17,41 @@ %if "@BUILD_FLAVOR@" == "kmp" -### macros for virtualbox-kmp ### -%define main_package 0 -%define kmp_package 1 -%if 0%{?suse_version} > 1600 -%define kmp_longterm 1 -%endif -%define name_suffix kmp -%define dash - -%define package_summary Kernel modules for VirtualBox -%if %{undefined kernel_module_directory} -%define kernel_module_directory /lib/modules -%endif + # macros for virtualbox-kmp + %define main_package 0 + %define kmp_package 1 + %if 0%{?suse_version} > 1600 + %define kmp_longterm 1 + %endif + %define name_suffix kmp + %define dash - + %define package_summary Kernel modules for VirtualBox + %if %{undefined kernel_module_directory} + %define kernel_module_directory /lib/modules + %endif %else -### macros for virtualbox main package ### -%define main_package 1 -%define kmp_package 0 -%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') -#Compat macro for new _fillupdir macro introduced in Nov 2017 -%if ! %{defined _fillupdir} - %define _fillupdir %{_localstatedir}/adm/fillup-templates -%endif -%if ! %{defined _distconfdir} -%define _distconfdir %{_sysconfdir} -%endif -# Do not provide libGL.so symbols - they are owned by Mesa already and this could potentially confuse rpm/zypp -%global __provides_exclude ^libE?GL.so.1.*$ -# With 32-bit builds, the job limit cannot be larger than 2, otherwise the build runs out of memory. -# For 64-bit builds, no memory limit is reached when more jobs are run, 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 + # macros for virtualbox main package ### + %define main_package 1 + %define kmp_package 0 + %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') + # Compat macro for new _fillupdir macro introduced in Nov 2017 + %if !%{defined _fillupdir} + %define _fillupdir %{_localstatedir}/adm/fillup-templates + %endif + %if ! %{defined _distconfdir} + %define _distconfdir %{_sysconfdir} + %endif + # Do not provide libGL.so symbols - they are owned by Mesa already and + # this could potentially confuse rpm/zypp + %global __provides_exclude ^libE?GL.so.1.*$ + # With 32-bit builds, the job limit cannot be larger than 2, otherwise + # the build runs out of memory. + # For 64-bit builds, no memory limit is reached when more jobs are run, + # 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 # ********* If the VB version exceeds 6.1.x, notify the libvirt maintainer!! Name: virtualbox%{?dash}%{?name_suffix}