commit 3f5120951d5b8a9c110107ed4d694d392db80ebc
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Sat Oct 9 03:31:37 2021 +0100
Fix vendor
VirtualBox.spec | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/VirtualBox.spec b/VirtualBox.spec
index 26ac948..3d8c0d7 100644
--- a/VirtualBox.spec
+++ b/VirtualBox.spec
@@ -375,9 +375,12 @@ cp %{SOURCE1} UserManual.pdf
. ./env.sh
umask 0022
-#TODO fix publisher in copr
+%if "%{vendor}" == "RPM Fusion"
+%global publisher _rpmfusion
+%else
%global publisher _%{?vendor:%(echo "%{vendor}" | \
- sed -e 's/[^[:alnum:]]//g; s/FedoraProject//' | cut -c
-9)}%{?!vendor:custom}
+ sed -e 's/[^[:alnum:]]//g; s/FedoraCopruser//' | cut -c
-9)}%{?!vendor:custom}
+%endif
# VirtualBox build system installs and builds in the same step,
# not always looking for the installed files in places they have