commit f066d2fa7aa2b6f62ef5332710e8a0ea017c9a3c
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Wed Jun 17 18:21:43 2020 +0100
Fix (#5677)
https://docs.pagure.org/packaging-guidelines/Packaging%3AScriptlets.html (On
upgrade, the scripts are run in the following order)
VirtualBox.spec | 10 +++++++++-
update_vbox.sh | 6 ++++--
2 files changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/VirtualBox.spec b/VirtualBox.spec
index 9f8fa42..28545f3 100644
--- a/VirtualBox.spec
+++ b/VirtualBox.spec
@@ -46,7 +46,7 @@
Name: VirtualBox
Version: 6.1.10
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: A general-purpose full virtualizer for PC hardware
License: GPLv2 or (GPLv2 and CDDL)
@@ -675,6 +675,9 @@ fi
%postun server
%systemd_postun_with_restart vboxdrv.service
+%triggerun -- VirtualBox-server < 0:6.1.10-4
+/usr/bin/systemctl --no-reload preset vboxdrv.service || :
+
# Need review, I don't know the rules of Icon Cache, mimeinfo and Desktop databases
for epel 8
%if 0%{?rhel} && 0%{?rhel} < 8
%post
@@ -890,6 +893,11 @@ getent passwd vboxadd >/dev/null || \
%{_datadir}/%{name}-kmod-%{version}
%changelog
+* Wed Jun 17 2020 Sérgio Basto <sergio(a)serjux.com> - 6.1.10-4
+- Fix (#5677)
+
https://docs.pagure.org/packaging-guidelines/Packaging%3AScriptlets.html (On
+ upgrade, the scripts are run in the following order)
+
* Sat Jun 13 2020 Sérgio Basto <sergio(a)serjux.com> - 6.1.10-3
- Syncronize with virtualbox-guest-additions from Fedora
- Add a vboxclient.service which runs VBoxClient --vwsvga when using the
diff --git a/update_vbox.sh b/update_vbox.sh
index c92d9ad..dce3364 100755
--- a/update_vbox.sh
+++ b/update_vbox.sh
@@ -1,8 +1,7 @@
VERSION=6.1.10
-REL=3
+REL=4
RAWHIDE=33
REPOS="f32 f31 el8 el7"
-REPOS="el8 el7"
if [ -z "$1" ]
then
stage=0
@@ -27,9 +26,12 @@ fi
if test $stage -le 1
then
echo STAGE 1
+if test $REL -eq 1
+then
echo Press enter to upload sources; read dummy;
rfpkg new-sources ./VirtualBox-$VERSION.tar.bz2 ./UserManual.pdf
rfpkg ci -c && git show
+fi
echo Press enter to push and build on rawhide; read dummy;
rfpkg push && rfpkg build --nowait
fi