diff --git a/README.SUSE b/README.SUSE
new file mode 100644
index 0000000..53492b0
--- /dev/null
+++ b/README.SUSE
@@ -0,0 +1,57 @@
+## Get Muse Hub working
+
+MuseScore4 is much more fun if you can use the Muse-Hub extensions. Hopefully,
+the instructions presented here will soon be obsolete, but until they are, they
+serve as a step-by-step guide to activating Muse-Hub.
+
+
+1. Fetch debian package
+
+ At the time of this writing, this is version 1.0.0.392, available at:
+
+ `wget https://pub-c7a32e5b5d834ec9aeef400105452a42.r2.dev/Muse_Hub.deb`
+
+
+2. Convert to rpm
+
+ `sudo alien -r --scripts Muse_Hub.deb`
+
+
+3. For Tumbleweed, you need an additional library `lttng-ust0`, the distribution
+ went on to `lttng-ust1` already. A build is available in `home:frispete:musescore`.
+
+
+4. Install rpm
+
+ `sudo zypper in muse-hub-1.0.0.392-2.x86_64.rpm`
+
+
+5. Create a compatibility symlink
+
+ `sudo ln -s /var/lib/ca-certificates/ca-bundle.pem /etc/ssl/certs/ca-certificates.crt`
+
+
+6. Restart the muse-hub service
+
+ `sudo systemctl restart muse-hub`
+
+
+Now, the muse-hub client should work, but the musescore sampler does not yet.
+Install one of the muse-sounds at least. This will also install the necessary
+library `libMuseSamplerCoreLib.so` behind the scenes. But unfortunately in the
+wrong directory: `/usr/lib`. The easiest work around for this is creating a
+compatibility symlink again:
+
+`ln -s /usr/lib/libMuseSamplerCoreLib.so /usr/lib64/libMuseSamplerCoreLib.so`
+
+
+## Get VSTs working
+
+Only available for the -git build. Install the `vst3sdk` package. Again, you
+need to provide a compatibility symlink to make it work:
+
+`ln -s /usr/lib64/VST3 /usr/lib/`
+
+Now, some standard `VSTs` should be available in the git build of MS4.
+
+## Happy composing!
diff --git a/_constraints b/_constraints
new file mode 100644
index 0000000..9a05094
--- /dev/null
+++ b/_constraints
@@ -0,0 +1,8 @@
+
+
+
+
+ 8
+
+
+
diff --git a/musescore.changes b/musescore.changes
index 824cde2..05b487f 100644
--- a/musescore.changes
+++ b/musescore.changes
@@ -1,3 +1,11 @@
+-------------------------------------------------------------------
+Thu Dec 29 14:17:31 UTC 2022 - Hans-Peter Jansen
+
+- Switch to RelWithDebInfo build
+- Fix Leap build issue (missing -ldl)
+- Add README.SUSE and referring notes
+- Add 8 GB disk contraints
+
-------------------------------------------------------------------
Sat Dec 17 11:19:50 UTC 2022 - Cor Blom
diff --git a/musescore.spec b/musescore.spec
index bfccc82..e0021c5 100644
--- a/musescore.spec
+++ b/musescore.spec
@@ -19,11 +19,10 @@
# Internal QML imports
%global __requires_exclude qmlimport\\((MuseScore|FileIO).*
# Workaround boo#1189991
-%define _lto_cflags %{nil}
-
-%define rname mscore
-%define version_lesser 4.0
-%define revision 3224f34
+%define _lto_cflags %{nil}
+%define rname mscore
+%define version_lesser 4.0
+%define revision 5485621
%define fontdir %{_datadir}/fonts/%{name}
%define docdir %{_docdir}/%{name}
Name: musescore
@@ -44,6 +43,7 @@ Source1: https://ftp.osuosl.org/pub/musescore/soundfont/MuseScore_General
Source2: https://ftp.osuosl.org/pub/musescore/soundfont/MuseScore_General/MuseScore_General_License.md
Source3: https://ftp.osuosl.org/pub/musescore/soundfont/MuseScore_General/MuseScore_General_Readme.md
Source4: https://ftp.osuosl.org/pub/musescore/soundfont/MuseScore_General/MuseScore_General.sf3
+Source5: README.SUSE
# PATCH-FIX-OPENSUSE: openSUSE has qmake-qt5 qmake was reserved for qt4, which is no longer present
Patch0: use-qtmake-qt5.patch
BuildRequires: cmake
@@ -59,6 +59,7 @@ BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Designer)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Help)
+BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5NetworkAuth)
BuildRequires: pkgconfig(Qt5OpenGL)
BuildRequires: pkgconfig(Qt5PrintSupport)
@@ -93,6 +94,9 @@ MuseScore is a graphical music typesetter. It allows for note entry on a
virtual note sheet. It has an integrated sequencer for immediate playing of the
score. MuseScore can import and export MusicXml and standard MIDI files.
+Regarding Muse-Hub and VSTs, you should really read:
+%{_docdir}/%{name}/README.SUSE.
+
%package fonts
Summary: MuseScore fonts
License: GPL-3.0-or-later WITH Font-exception-2.0 AND OFL-1.1
@@ -113,6 +117,7 @@ MuseScore files, used for plugin development.
%prep
%autosetup -p1 -n MuseScore-%{version}
cp %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} share/sound/
+cp %{SOURCE5} .
# fix EOL encoding
sed 's/\r$//' fonts/bravura/OFL-FAQ.txt > tmpfile
@@ -127,10 +132,13 @@ sed 's/\r$//' thirdparty/rtf2html/README.ru > tmpfile
touch -r thirdparty/rtf2html/README.ru tmpfile
mv -f tmpfile thirdparty/rtf2html/README.ru
+# fix missing -ldl for Leaps
+sed -i 's/\(target_link_libraries(mscore ${LINK_LIB}\)/\1 ${CMAKE_DL_LIBS}/' src/main/CMakeLists.txt
+
%build
%define __builddir build.release
%cmake \
- -DCMAKE_BUILD_TYPE=RELEASE \
+ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DMUSESCORE_BUILD_CONFIG=release \
-DBUILD_UNIT_TESTS=OFF \
-DUSE_SYSTEM_FREETYPE=ON \
@@ -169,10 +177,11 @@ install -p -m 644 demos/*.mscz %{buildroot}%{_datadir}/%{rname}-%{version_lesser
# Remove opus devel files, they are provided by system
rm -rf %{buildroot}%{_includedir}/opus
# Delete crashpad binary
-rm -rf %{buildroot}/usr/bin/crashpad_handler
+rm -rf %{buildroot}%{_bindir}/crashpad_handler
# collect doc files
install -d -m 755 %{buildroot}%docdir
+install -p -m 644 README.SUSE %{buildroot}%docdir/
install -p -m 644 thirdparty/beatroot/COPYING %{buildroot}%docdir/COPYING.beatroot
install -p -m 644 thirdparty/beatroot/README.txt %{buildroot}%docdir/README.txt.beatroot
install -p -m 644 thirdparty/dtl/COPYING %{buildroot}%docdir/COPYING.BSD.dtl
@@ -190,6 +199,8 @@ install -p -m 644 thirdparty/singleapp/README.TXT %{buildroot}%docdir/README
install -p -m 644 tools/bww2mxml/COPYING %{buildroot}%docdir/COPYING.bww2mxml
install -p -m 644 tools/bww2mxml/README %{buildroot}%docdir/README.bww2mxml
+install -p -m 644 share/sound/README.md %{buildroot}%docdir/README.md.sound
+install -p -m 644 share/instruments/README.md %{buildroot}%docdir/README.md.instruments
install -p -m 644 share/wallpapers/COPYRIGHT %{buildroot}%docdir/COPYING.wallpaper
%fdupes %{buildroot}/%{_prefix}
@@ -218,7 +229,7 @@ install -p -m 644 share/wallpapers/COPYRIGHT %{buildroot}%docdir/COPYIN
%dir %{_datadir}/%{rname}-%{version_lesser}
%{_datadir}/%{rname}-%{version_lesser}/*
%{_mandir}/man1/*
-%doc README.md
+%doc README.md README.SUSE
%dir %docdir
%doc %docdir/*
@@ -230,14 +241,14 @@ install -p -m 644 share/wallpapers/COPYRIGHT %{buildroot}%docdir/COPYIN
%doc fonts/bravura/bravura-text.md
%doc fonts/bravura/OFL-FAQ.txt
%doc fonts/bravura/OFL.txt
-%doc fonts/campania/LICENSE
+%license fonts/campania/LICENSE
%doc fonts/gootville/readme.txt
# see section 'unique names for font docs' above
%doc fonts/edwin/README.md.edwin
-%doc fonts/edwin/LICENSE.txt.edwin
+%license fonts/edwin/LICENSE.txt.edwin
%doc fonts/leland/README.md.leland
-%doc fonts/leland/LICENSE.txt.leland
+%license fonts/leland/LICENSE.txt.leland
%files devel
%license LICENSE.GPL