2018-09-14 13:47:32 +02:00
|
|
|
#
|
|
|
|
# spec file for package musescore
|
|
|
|
#
|
2022-08-27 22:31:01 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2018-09-14 13:47:32 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-06-08 08:58:14 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-09-14 13:47:32 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-02-09 17:20:40 +01:00
|
|
|
# Internal QML imports
|
|
|
|
%global __requires_exclude qmlimport\\((MuseScore|FileIO).*
|
2022-12-15 17:00:39 +01:00
|
|
|
# Workaround boo#1189991
|
|
|
|
%define _lto_cflags %{nil}
|
2021-02-09 17:20:40 +01:00
|
|
|
|
2018-09-14 13:47:32 +02:00
|
|
|
%define rname mscore
|
2022-12-15 17:00:39 +01:00
|
|
|
%define version_lesser 4.0
|
2021-02-09 08:32:56 +01:00
|
|
|
%define revision 3224f34
|
2018-09-14 13:47:32 +02:00
|
|
|
%define fontdir %{_datadir}/fonts/%{name}
|
|
|
|
%define docdir %{_docdir}/%{name}
|
|
|
|
Name: musescore
|
2022-12-15 17:00:39 +01:00
|
|
|
Version: 4.0
|
2018-09-14 13:47:32 +02:00
|
|
|
Release: 0
|
2018-09-17 10:29:38 +02:00
|
|
|
Summary: A WYSIWYG music score typesetter
|
2018-12-27 01:06:47 +01:00
|
|
|
# Musescore code license is GPL-2.0
|
|
|
|
# Software in thirdparty is licensed under their own license
|
|
|
|
# Documentation is CC-SA
|
2018-12-28 11:16:31 +01:00
|
|
|
License: GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-only AND LGPL-3.0-only AND MIT
|
2018-09-14 13:47:32 +02:00
|
|
|
Group: Productivity/Multimedia/Sound/Editors and Convertors
|
|
|
|
URL: https://musescore.org
|
2019-11-13 15:18:11 +01:00
|
|
|
Source0: https://github.com/musescore/MuseScore/archive/v%{version}/MuseScore-%{version}.tar.gz
|
2022-08-27 22:31:01 +02:00
|
|
|
# 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
|
2022-12-15 22:48:12 +01:00
|
|
|
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
|
2021-01-16 12:46:26 +01:00
|
|
|
# PATCH-FIX-OPENSUSE: openSUSE has qmake-qt5 qmake was reserved for qt4, which is no longer present
|
2021-01-29 20:13:19 +01:00
|
|
|
Patch0: use-qtmake-qt5.patch
|
2019-11-05 10:23:26 +01:00
|
|
|
BuildRequires: cmake
|
2019-01-04 16:45:02 +01:00
|
|
|
BuildRequires: fdupes
|
2018-12-27 01:06:47 +01:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libqt5-linguist-devel
|
2022-12-15 17:00:39 +01:00
|
|
|
BuildRequires: libqt5-qtbase-private-headers-devel
|
2019-11-05 12:40:47 +01:00
|
|
|
BuildRequires: pkgconfig
|
2020-04-27 22:32:59 +02:00
|
|
|
BuildRequires: strip-nondeterminism
|
2018-09-14 13:47:32 +02:00
|
|
|
BuildRequires: update-desktop-files
|
2019-11-05 12:40:47 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5Concurrent)
|
|
|
|
BuildRequires: pkgconfig(Qt5Core)
|
|
|
|
BuildRequires: pkgconfig(Qt5Designer)
|
|
|
|
BuildRequires: pkgconfig(Qt5Gui)
|
|
|
|
BuildRequires: pkgconfig(Qt5Help)
|
2022-12-15 17:00:39 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5NetworkAuth)
|
2019-11-05 12:40:47 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5OpenGL)
|
|
|
|
BuildRequires: pkgconfig(Qt5PrintSupport)
|
|
|
|
BuildRequires: pkgconfig(Qt5QuickControls2)
|
2022-12-16 19:45:39 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5QuickTemplates2)
|
2019-11-05 12:40:47 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5Sql)
|
|
|
|
BuildRequires: pkgconfig(Qt5Svg)
|
|
|
|
BuildRequires: pkgconfig(Qt5Test)
|
|
|
|
BuildRequires: pkgconfig(Qt5UiTools)
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets)
|
2022-12-15 17:00:39 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5X11Extras)
|
2019-11-05 12:40:47 +01:00
|
|
|
BuildRequires: pkgconfig(Qt5Xml)
|
|
|
|
BuildRequires: pkgconfig(Qt5XmlPatterns)
|
|
|
|
BuildRequires: pkgconfig(alsa)
|
|
|
|
BuildRequires: pkgconfig(freetype2)
|
|
|
|
BuildRequires: pkgconfig(jack)
|
|
|
|
BuildRequires: pkgconfig(libpulse)
|
|
|
|
BuildRequires: pkgconfig(libpulse-mainloop-glib)
|
|
|
|
BuildRequires: pkgconfig(libpulse-simple)
|
|
|
|
BuildRequires: pkgconfig(portaudio-2.0)
|
|
|
|
BuildRequires: pkgconfig(portaudiocpp)
|
|
|
|
BuildRequires: pkgconfig(sndfile)
|
|
|
|
BuildRequires: pkgconfig(vorbis)
|
|
|
|
BuildRequires: pkgconfig(vorbisenc)
|
|
|
|
BuildRequires: pkgconfig(vorbisfile)
|
2018-09-14 13:47:32 +02:00
|
|
|
Requires: %{name}-fonts = %{version}-%{release}
|
2019-11-04 08:32:08 +01:00
|
|
|
Requires: libqt5-qtgraphicaleffects
|
2019-11-05 13:03:13 +01:00
|
|
|
Requires: libqt5-qtquickcontrols2
|
2018-09-14 13:47:32 +02:00
|
|
|
|
|
|
|
%description
|
2018-09-17 10:29:38 +02:00
|
|
|
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.
|
2018-09-14 13:47:32 +02:00
|
|
|
|
|
|
|
%package fonts
|
|
|
|
Summary: MuseScore fonts
|
|
|
|
License: GPL-3.0-or-later WITH Font-exception-2.0 AND OFL-1.1
|
|
|
|
Group: System/X11/Fonts
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description fonts
|
2018-09-17 10:29:38 +02:00
|
|
|
Additional fonts for use by the MuseScore music notation program.
|
2018-09-14 13:47:32 +02:00
|
|
|
|
2022-12-15 22:48:12 +01:00
|
|
|
%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++
|
2022-12-16 17:08:40 +01:00
|
|
|
Requires: pkgconfig(opus)
|
2022-12-15 22:48:12 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
MuseScore files, used for plugin development.
|
|
|
|
|
2018-09-14 13:47:32 +02:00
|
|
|
%prep
|
2020-01-28 20:46:46 +01:00
|
|
|
%autosetup -p1 -n MuseScore-%{version}
|
2022-12-15 22:48:12 +01:00
|
|
|
cp %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} share/sound/
|
2018-09-14 13:47:32 +02:00
|
|
|
|
|
|
|
# fix EOL encoding
|
|
|
|
sed 's/\r$//' fonts/bravura/OFL-FAQ.txt > tmpfile
|
|
|
|
touch -r fonts/bravura/OFL-FAQ.txt tmpfile
|
|
|
|
mv -f tmpfile fonts/bravura/OFL-FAQ.txt
|
|
|
|
|
|
|
|
sed 's/\r$//' thirdparty/rtf2html/README > tmpfile
|
|
|
|
touch -r thirdparty/rtf2html/README tmpfile
|
|
|
|
mv -f tmpfile thirdparty/rtf2html/README
|
|
|
|
|
|
|
|
sed 's/\r$//' thirdparty/rtf2html/README.ru > tmpfile
|
|
|
|
touch -r thirdparty/rtf2html/README.ru tmpfile
|
|
|
|
mv -f tmpfile thirdparty/rtf2html/README.ru
|
|
|
|
|
|
|
|
%build
|
|
|
|
%define __builddir build.release
|
|
|
|
%cmake \
|
2019-11-05 09:50:02 +01:00
|
|
|
-DCMAKE_BUILD_TYPE=RELEASE \
|
2021-01-17 11:01:37 +01:00
|
|
|
-DMUSESCORE_BUILD_CONFIG=release \
|
2022-12-15 17:00:39 +01:00
|
|
|
-DBUILD_UNIT_TESTS=OFF \
|
2019-11-05 11:45:17 +01:00
|
|
|
-DUSE_SYSTEM_FREETYPE="ON" \
|
2021-04-24 14:45:46 +02:00
|
|
|
-DBUILD_TELEMETRY_MODULE=OFF \
|
2021-01-17 11:01:37 +01:00
|
|
|
-DMUSESCORE_REVISION=%{revision}
|
2022-12-15 22:59:24 +01:00
|
|
|
%make_jobs
|
2018-09-14 13:47:32 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
|
2022-12-15 22:48:12 +01:00
|
|
|
# don't package staic libs
|
|
|
|
rm %{buildroot}%{_libdir}/*.a
|
|
|
|
|
2018-09-14 13:47:32 +02:00
|
|
|
# install fonts
|
|
|
|
mkdir -p %{buildroot}%{fontdir}
|
|
|
|
install -p -m 644 fonts/*.ttf %{buildroot}/%{fontdir}
|
2021-01-17 11:01:37 +01:00
|
|
|
install -p -m 644 fonts/*/*.ttf %{buildroot}/%{fontdir}
|
|
|
|
install -p -m 644 fonts/bravura/BravuraText.otf %{buildroot}/%{fontdir}
|
|
|
|
install -p -m 644 fonts/campania/Campania.otf %{buildroot}/%{fontdir}
|
|
|
|
install -p -m 644 fonts/edwin/*.otf %{buildroot}/%{fontdir}
|
|
|
|
install -p -m 644 fonts/gootville/GootvilleText.otf %{buildroot}/%{fontdir}
|
|
|
|
install -p -m 644 fonts/leland/LelandText.otf %{buildroot}/%{fontdir}
|
|
|
|
install -p -m 644 fonts/musejazz/MuseJazzText.otf %{buildroot}/%{fontdir}
|
|
|
|
install -p -m 644 fonts/petaluma/PetalumaText.otf %{buildroot}/%{fontdir}
|
|
|
|
|
|
|
|
# unique names for font docs
|
|
|
|
mv fonts/edwin/README.md fonts/edwin/README.md.edwin
|
2021-01-29 20:13:19 +01:00
|
|
|
mv fonts/edwin/LICENSE.txt fonts/edwin/LICENSE.txt.edwin
|
2021-01-17 11:01:37 +01:00
|
|
|
mv fonts/leland/README.md fonts/leland/README.md.leland
|
|
|
|
mv fonts/leland/LICENSE.txt fonts/leland/LICENSE.txt.leland
|
2018-09-14 13:47:32 +02:00
|
|
|
|
|
|
|
# also package additional demos
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/%{rname}-%{version_lesser}/demos
|
|
|
|
install -p -m 644 demos/*.mscz %{buildroot}%{_datadir}/%{rname}-%{version_lesser}/demos
|
|
|
|
|
2022-12-16 17:08:40 +01:00
|
|
|
# Remove opus devel files, they are provided by system
|
2022-12-16 20:23:48 +01:00
|
|
|
rm -rf %{buildroot}%{_includedir}/opus
|
2022-12-16 17:08:40 +01:00
|
|
|
|
2018-09-14 13:47:32 +02:00
|
|
|
# collect doc files
|
2019-06-08 08:58:14 +02:00
|
|
|
install -d -m 755 %{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
|
2021-01-17 11:01:37 +01:00
|
|
|
install -p -m 644 thirdparty/dtl/COPYING %{buildroot}%docdir/COPYING.BSD.dtl
|
|
|
|
install -p -m 644 thirdparty/freetype/README %{buildroot}%docdir/README.freetype
|
2019-06-08 08:58:14 +02:00
|
|
|
install -p -m 644 thirdparty/intervaltree/README %{buildroot}%docdir/README.intervaltree
|
|
|
|
install -p -m 644 thirdparty/rtf2html/ChangeLog %{buildroot}%docdir/ChangeLog.rtf2html
|
|
|
|
install -p -m 644 thirdparty/rtf2html/COPYING.LESSER %{buildroot}%docdir/COPYING.LESSER.rtf2html
|
|
|
|
install -p -m 644 thirdparty/rtf2html/README %{buildroot}%docdir/README.rtf2html
|
|
|
|
install -p -m 644 thirdparty/rtf2html/README.mscore %{buildroot}%docdir/README.mscore.rtf2html
|
|
|
|
install -p -m 644 thirdparty/rtf2html/README.ru %{buildroot}%docdir/README.ru.rtf2html
|
|
|
|
install -p -m 644 thirdparty/singleapp/LGPL_EXCEPTION.txt %{buildroot}%docdir/LGPL_EXCEPTION.txt.singleapp
|
|
|
|
install -p -m 644 thirdparty/singleapp/LICENSE.GPL3 %{buildroot}%docdir/LICENSE.GPL3.singleapp
|
|
|
|
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
|
2018-09-14 13:47:32 +02:00
|
|
|
|
2022-12-15 22:48:12 +01:00
|
|
|
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
|
|
|
|
|
2018-09-17 10:29:38 +02:00
|
|
|
%fdupes %{buildroot}/%{_prefix}
|
2018-09-14 13:47:32 +02:00
|
|
|
|
|
|
|
%if 0%{?suse_version} < 1500
|
|
|
|
%post
|
|
|
|
%desktop_database_post
|
|
|
|
%icon_theme_cache_post
|
|
|
|
%mime_database_post
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?suse_version} < 1500
|
|
|
|
%postun
|
|
|
|
%desktop_database_postun
|
|
|
|
%icon_theme_cache_postun
|
|
|
|
%mime_database_postun
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files
|
2022-12-16 09:37:46 +01:00
|
|
|
%license LICENSE.GPL
|
2022-12-15 17:00:39 +01:00
|
|
|
%{_bindir}/crashpad_handler
|
2018-09-14 13:47:32 +02:00
|
|
|
%{_bindir}/%{rname}
|
2019-06-08 08:58:14 +02:00
|
|
|
%{_datadir}/metainfo/org.musescore.MuseScore.appdata.xml
|
2022-12-15 17:00:39 +01:00
|
|
|
%{_datadir}/applications/org.musescore.MuseScore.desktop
|
2018-09-14 13:47:32 +02:00
|
|
|
%{_datadir}/mime/packages/*
|
|
|
|
%{_datadir}/icons/hicolor/*
|
|
|
|
%dir %{_datadir}/%{rname}-%{version_lesser}
|
|
|
|
%{_datadir}/%{rname}-%{version_lesser}/*
|
|
|
|
%{_mandir}/man1/*
|
2022-12-16 10:45:20 +01:00
|
|
|
%doc README.md
|
2019-06-08 08:58:14 +02:00
|
|
|
%dir %docdir
|
|
|
|
%doc %docdir/*
|
2018-09-14 13:47:32 +02:00
|
|
|
|
|
|
|
%files fonts
|
|
|
|
%dir %{fontdir}
|
|
|
|
%{fontdir}/*.ttf
|
2021-01-17 11:01:37 +01:00
|
|
|
%{fontdir}/*.otf
|
2018-09-14 13:47:32 +02:00
|
|
|
%doc fonts/README.md
|
|
|
|
%doc fonts/bravura/bravura-text.md
|
|
|
|
%doc fonts/bravura/OFL-FAQ.txt
|
|
|
|
%doc fonts/bravura/OFL.txt
|
2021-01-17 11:01:37 +01:00
|
|
|
%doc fonts/campania/LICENSE
|
2018-09-14 13:47:32 +02:00
|
|
|
%doc fonts/gootville/readme.txt
|
|
|
|
|
2021-01-17 11:01:37 +01:00
|
|
|
# see section 'unique names for font docs' above
|
|
|
|
%doc fonts/edwin/README.md.edwin
|
2021-01-29 20:13:19 +01:00
|
|
|
%doc fonts/edwin/LICENSE.txt.edwin
|
2021-01-17 11:01:37 +01:00
|
|
|
%doc fonts/leland/README.md.leland
|
|
|
|
%doc fonts/leland/LICENSE.txt.leland
|
|
|
|
|
2022-12-15 22:48:12 +01:00
|
|
|
%files devel
|
|
|
|
%license LICENSE.GPL
|
|
|
|
%{_includedir}/kddockwidgets
|
|
|
|
%{_libdir}/cmake
|
|
|
|
|
2018-09-14 13:47:32 +02:00
|
|
|
%changelog
|