forked from pool/musescore
Accepting request 1045935 from multimedia:apps
OBS-URL: https://build.opensuse.org/request/show/1045935 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/musescore?expand=0&rev=27
This commit is contained in:
commit
9d6afb4fb8
57
README.SUSE
Normal file
57
README.SUSE
Normal file
@ -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!
|
8
_constraints
Normal file
8
_constraints
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<constraints>
|
||||||
|
<hardware>
|
||||||
|
<disk>
|
||||||
|
<size unit="G">8</size>
|
||||||
|
</disk>
|
||||||
|
</hardware>
|
||||||
|
</constraints>
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 29 14:17:31 UTC 2022 - Hans-Peter Jansen <hpj@urpla.net>
|
||||||
|
|
||||||
|
- 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 <cornelis@solcon.nl>
|
Sat Dec 17 11:19:50 UTC 2022 - Cor Blom <cornelis@solcon.nl>
|
||||||
|
|
||||||
|
@ -19,11 +19,10 @@
|
|||||||
# Internal QML imports
|
# Internal QML imports
|
||||||
%global __requires_exclude qmlimport\\((MuseScore|FileIO).*
|
%global __requires_exclude qmlimport\\((MuseScore|FileIO).*
|
||||||
# Workaround boo#1189991
|
# Workaround boo#1189991
|
||||||
%define _lto_cflags %{nil}
|
%define _lto_cflags %{nil}
|
||||||
|
%define rname mscore
|
||||||
%define rname mscore
|
%define version_lesser 4.0
|
||||||
%define version_lesser 4.0
|
%define revision 5485621
|
||||||
%define revision 3224f34
|
|
||||||
%define fontdir %{_datadir}/fonts/%{name}
|
%define fontdir %{_datadir}/fonts/%{name}
|
||||||
%define docdir %{_docdir}/%{name}
|
%define docdir %{_docdir}/%{name}
|
||||||
Name: musescore
|
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
|
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
|
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
|
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
|
# PATCH-FIX-OPENSUSE: openSUSE has qmake-qt5 qmake was reserved for qt4, which is no longer present
|
||||||
Patch0: use-qtmake-qt5.patch
|
Patch0: use-qtmake-qt5.patch
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
@ -59,6 +59,7 @@ BuildRequires: pkgconfig(Qt5Core)
|
|||||||
BuildRequires: pkgconfig(Qt5Designer)
|
BuildRequires: pkgconfig(Qt5Designer)
|
||||||
BuildRequires: pkgconfig(Qt5Gui)
|
BuildRequires: pkgconfig(Qt5Gui)
|
||||||
BuildRequires: pkgconfig(Qt5Help)
|
BuildRequires: pkgconfig(Qt5Help)
|
||||||
|
BuildRequires: pkgconfig(Qt5Network)
|
||||||
BuildRequires: pkgconfig(Qt5NetworkAuth)
|
BuildRequires: pkgconfig(Qt5NetworkAuth)
|
||||||
BuildRequires: pkgconfig(Qt5OpenGL)
|
BuildRequires: pkgconfig(Qt5OpenGL)
|
||||||
BuildRequires: pkgconfig(Qt5PrintSupport)
|
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
|
virtual note sheet. It has an integrated sequencer for immediate playing of the
|
||||||
score. MuseScore can import and export MusicXml and standard MIDI files.
|
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
|
%package fonts
|
||||||
Summary: MuseScore fonts
|
Summary: MuseScore fonts
|
||||||
License: GPL-3.0-or-later WITH Font-exception-2.0 AND OFL-1.1
|
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
|
%prep
|
||||||
%autosetup -p1 -n MuseScore-%{version}
|
%autosetup -p1 -n MuseScore-%{version}
|
||||||
cp %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} share/sound/
|
cp %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} share/sound/
|
||||||
|
cp %{SOURCE5} .
|
||||||
|
|
||||||
# fix EOL encoding
|
# fix EOL encoding
|
||||||
sed 's/\r$//' fonts/bravura/OFL-FAQ.txt > tmpfile
|
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
|
touch -r thirdparty/rtf2html/README.ru tmpfile
|
||||||
mv -f tmpfile thirdparty/rtf2html/README.ru
|
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
|
%build
|
||||||
%define __builddir build.release
|
%define __builddir build.release
|
||||||
%cmake \
|
%cmake \
|
||||||
-DCMAKE_BUILD_TYPE=RELEASE \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DMUSESCORE_BUILD_CONFIG=release \
|
-DMUSESCORE_BUILD_CONFIG=release \
|
||||||
-DBUILD_UNIT_TESTS=OFF \
|
-DBUILD_UNIT_TESTS=OFF \
|
||||||
-DUSE_SYSTEM_FREETYPE=ON \
|
-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
|
# Remove opus devel files, they are provided by system
|
||||||
rm -rf %{buildroot}%{_includedir}/opus
|
rm -rf %{buildroot}%{_includedir}/opus
|
||||||
# Delete crashpad binary
|
# Delete crashpad binary
|
||||||
rm -rf %{buildroot}/usr/bin/crashpad_handler
|
rm -rf %{buildroot}%{_bindir}/crashpad_handler
|
||||||
|
|
||||||
# collect doc files
|
# collect doc files
|
||||||
install -d -m 755 %{buildroot}%docdir
|
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/COPYING %{buildroot}%docdir/COPYING.beatroot
|
||||||
install -p -m 644 thirdparty/beatroot/README.txt %{buildroot}%docdir/README.txt.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
|
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/COPYING %{buildroot}%docdir/COPYING.bww2mxml
|
||||||
install -p -m 644 tools/bww2mxml/README %{buildroot}%docdir/README.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
|
install -p -m 644 share/wallpapers/COPYRIGHT %{buildroot}%docdir/COPYING.wallpaper
|
||||||
|
|
||||||
%fdupes %{buildroot}/%{_prefix}
|
%fdupes %{buildroot}/%{_prefix}
|
||||||
@ -218,7 +229,7 @@ install -p -m 644 share/wallpapers/COPYRIGHT %{buildroot}%docdir/COPYIN
|
|||||||
%dir %{_datadir}/%{rname}-%{version_lesser}
|
%dir %{_datadir}/%{rname}-%{version_lesser}
|
||||||
%{_datadir}/%{rname}-%{version_lesser}/*
|
%{_datadir}/%{rname}-%{version_lesser}/*
|
||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
%doc README.md
|
%doc README.md README.SUSE
|
||||||
%dir %docdir
|
%dir %docdir
|
||||||
%doc %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/bravura-text.md
|
||||||
%doc fonts/bravura/OFL-FAQ.txt
|
%doc fonts/bravura/OFL-FAQ.txt
|
||||||
%doc fonts/bravura/OFL.txt
|
%doc fonts/bravura/OFL.txt
|
||||||
%doc fonts/campania/LICENSE
|
%license fonts/campania/LICENSE
|
||||||
%doc fonts/gootville/readme.txt
|
%doc fonts/gootville/readme.txt
|
||||||
|
|
||||||
# see section 'unique names for font docs' above
|
# see section 'unique names for font docs' above
|
||||||
%doc fonts/edwin/README.md.edwin
|
%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/README.md.leland
|
||||||
%doc fonts/leland/LICENSE.txt.leland
|
%license fonts/leland/LICENSE.txt.leland
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%license LICENSE.GPL
|
%license LICENSE.GPL
|
||||||
|
Loading…
Reference in New Issue
Block a user