SHA256
1
0
forked from pool/musescore

- Update to 4.0:

Changes in interface, graving, soundsystem, mixer, everything
  See [200~https://musescore.org/nl/node/337788
- Removed unused patches:
  * no-webview-in-startcentre.patch
  * use-system-qtwebengine-files.patch

OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/musescore?expand=0&rev=103
This commit is contained in:
Cor Blom 2022-12-15 21:48:12 +00:00 committed by Git OBS Bridge
parent 760b07de22
commit a7be2c62a3
2 changed files with 40 additions and 25 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Thu Dec 15 21:46:00 UTC 2022 - Cor Blom <cornelis@solcon.nl>
- Update to 4.0:
Changes in interface, graving, soundsystem, mixer, everything
See [200~https://musescore.org/nl/node/337788
- Removed unused patches:
* no-webview-in-startcentre.patch
* use-system-qtwebengine-files.patch
-------------------------------------------------------------------
Sat Aug 27 20:06:56 UTC 2022 - Cor Blom <cornelis@solcon.nl>

View File

@ -37,30 +37,21 @@ License: GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-only AND LGPL-3.0
Group: Productivity/Multimedia/Sound/Editors and Convertors
URL: https://musescore.org
Source0: https://github.com/musescore/MuseScore/archive/v%{version}/MuseScore-%{version}.tar.gz
#Source1: %{rname}.desktop
# MuseScore expect to be able to download the latest version of its soundfonts
# They are downloaded from the link conteinde in CMakeLists.text
# They are newer versions than the one included in the MuseScore tarball itself
Source2: https://ftp.osuosl.org/pub/musescore/soundfont/MuseScore_General/MuseScore_General_Changelog.md
Source3: https://ftp.osuosl.org/pub/musescore/soundfont/MuseScore_General/MuseScore_General_License.md
Source4: https://ftp.osuosl.org/pub/musescore/soundfont/MuseScore_General/MuseScore_General_Readme.md
Source5: https://ftp.osuosl.org/pub/musescore/soundfont/MuseScore_General/MuseScore_General.sf3
Source1: https://ftp.osuosl.org/pub/musescore/soundfont/MuseScore_General/MuseScore_General_Changelog.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
Source4: https://ftp.osuosl.org/pub/musescore/soundfont/MuseScore_General/MuseScore_General.sf3
# PATCH-FIX-OPENSUSE: openSUSE has qmake-qt5 qmake was reserved for qt4, which is no longer present
Patch0: use-qtmake-qt5.patch
# PATCH-FIX-OPENSUSE: don't install qtwebengine files, they are not needed
#FIXME Patch1: use-system-qtwebengine-files.patch
# PATCH-FIX-OPENSUSE: don't use webview in startcentre (boo#1181604)
#FIXME Patch2: no-webview-in-startcentre.patch
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libQt5Help5
BuildRequires: libQt5QuickTemplates2-devel
BuildRequires: libmp3lame-devel
BuildRequires: libqt5-linguist-devel
BuildRequires: libqt5-qtbase-private-headers-devel
BuildRequires: pkgconfig
BuildRequires: portmidi-devel
BuildRequires: strip-nondeterminism
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(Qt5Concurrent)
@ -110,9 +101,17 @@ BuildArch: noarch
%description fonts
Additional fonts for use by the MuseScore music notation program.
%package devel
Summary: MuseScore development files
License: GPL-3.0-or-later WITH Font-exception-2.0 AND OFL-1.1
Group: Development/Libraries/C and C++
%description devel
MuseScore files, used for plugin development.
%prep
%autosetup -p1 -n MuseScore-%{version}
cp %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} share/sound/
cp %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} share/sound/
# fix EOL encoding
sed 's/\r$//' fonts/bravura/OFL-FAQ.txt > tmpfile
@ -136,14 +135,14 @@ mv -f tmpfile thirdparty/rtf2html/README.ru
-DUSE_SYSTEM_FREETYPE="ON" \
-DBUILD_TELEMETRY_MODULE=OFF \
-DMUSESCORE_REVISION=%{revision}
%make_jobs lrelease all
# Put the desktop file in place for the packaging
#cp %{SOURCE1} .
%make_jobs lrelease all.
%install
%cmake_install
# don't package staic libs
rm %{buildroot}%{_libdir}/*.a
# install fonts
mkdir -p %{buildroot}%{fontdir}
install -p -m 644 fonts/*.ttf %{buildroot}/%{fontdir}
@ -162,17 +161,10 @@ mv fonts/edwin/LICENSE.txt fonts/edwin/LICENSE.txt.edwin
mv fonts/leland/README.md fonts/leland/README.md.leland
mv fonts/leland/LICENSE.txt fonts/leland/LICENSE.txt.leland
# update desktop file
#%suse_update_desktop_file -n org.musescore.MuseScore AudioVideo AudioVideoEditing
# also package additional demos
mkdir -p %{buildroot}%{_datadir}/%{rname}-%{version_lesser}/demos
install -p -m 644 demos/*.mscz %{buildroot}%{_datadir}/%{rname}-%{version_lesser}/demos
# remove unneeded include and lib dir
rm -rf %{buildroot}%{_includedir}
rm -rf %{buildroot}%{_libdir}
# collect doc files
install -d -m 755 %{buildroot}%docdir
install -p -m 644 thirdparty/beatroot/COPYING %{buildroot}%docdir/COPYING.beatroot
@ -190,6 +182,10 @@ install -p -m 644 thirdparty/singleapp/LICENSE.GPL3 %{buildroot}%docdir/LICENS
install -p -m 644 thirdparty/singleapp/LICENSE.LGPL %{buildroot}%docdir/LICENSE.LGPL.singleapp
install -p -m 644 thirdparty/singleapp/README.TXT %{buildroot}%docdir/README.TXT.singleapp
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/wallpapers/COPYRIGHT %{buildroot}%docdir/COPYING.wallpaper
%fdupes %{buildroot}/%{_prefix}
%if 0%{?suse_version} < 1500
@ -238,4 +234,13 @@ install -p -m 644 thirdparty/singleapp/README.TXT %{buildroot}%docdir/README
%doc fonts/leland/README.md.leland
%doc fonts/leland/LICENSE.txt.leland
%files devel
%license LICENSE.GPL
%{_includedir}/gmock
%{_includedir}/gtest
%{_includedir}/kddockwidgets
%{_includedir}/opus
%{_libdir}/cmake
%{_libdir}/pkgconfig/*.pc
%changelog