/[packages]/backports/7/mscore/current/SPECS/mscore.spec
ViewVC logotype

Annotation of /backports/7/mscore/current/SPECS/mscore.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1458677 - (hide annotations) (download)
Thu Nov 7 15:00:24 2019 UTC (4 years, 6 months ago) by daviddavid
File size: 8899 byte(s)
- fix mscore data dir for "/usr/share/mscore-3.3/"

1 wally 1319862 %define shortver %(echo %{version}|cut -d. -f1,2)
2    
3 spuhler 851716 %global fontdir %{_datadir}/fonts/mscore
4 spuhler 316904
5 akien 1046440 Summary: Linux MusE Score Typesetter
6     Name: mscore
7 daviddavid 1457573 Version: 3.3.0
8 daviddavid 1458677 %define subrel 1
9 daviddavid 1457573 Release: %mkrel 1
10 spuhler 316904 # (Fedora) rtf2html is LGPLv2+
11     # paper4.png paper5.png are LGPLv3
12     # the rest is GPLv2
13 spuhler 846490 # Soundfont is MIT
14     # Bravura and gootville are OFL
15 akien 1046440 License: GPLv2 and LGPLv2+ and LGPLv3 and CC-BY and MIT and OFL
16     Url: http://musescore.org
17     Group: Publishing
18 daviddavid 1457573 Source0: https://github.com/musescore/MuseScore/archive/v%{shortver}/MuseScore-%{version}.tar.gz
19 spuhler 846490
20 spuhler 316904 # For mime types
21 akien 1046440 Source1: %{name}.xml
22 spuhler 846490 # Add metainfo file for font to show in gnome-software
23 wally 1074087 Source2: %{name}.metainfo.xml
24 daviddavid 1365223
25 spuhler 316904 # Use Fedora's default soundfont instead of the removed one:
26 daviddavid 1457573 Patch0: mscore-3.2.3-use-default-soundfont.patch
27 spuhler 316904 # We don't build the common files (font files, wallpapers, demo song, instrument
28 wally 1074087 # list) into the binary executable to reduce its size. This is also useful to
29 spuhler 316904 # inform the users about the existence of different choices for common files.
30     # The font files need to be separated due to the font packaging guidelines.
31 daviddavid 1457573 Patch1: mscore-3.3.0-separate-commonfiles.patch
32 spuhler 846490 # Fix desktop file. The Version= field is for the Desktop File Specification version
33     # not the version of MuseScore
34 wally 1319862 Patch3: mscore-2.3.2-fix-desktop-file.patch
35 spuhler 846490 # Use CXXFLAGS for precompiled header
36 akien 1046440 Patch4: musescore-2.0.1-fix-flags-for-precompiled-header.patch
37 daviddavid 1327217 # link with system lame
38 daviddavid 1365223 Patch5: mscore-3.0.2-lame-link.patch
39 daviddavid 1370357 # revision number (in mscore/revision.h) is incorrect in the assets automatically
40     # generated by GitHub
41 daviddavid 1457573 Patch6: mscore-3.3.0-fix-revision-number.patch
42 spuhler 316904
43     BuildRequires: cmake
44 akien 1046442 BuildRequires: doxygen
45 daviddavid 1365223 BuildRequires: qttools5-assistant
46 daviddavid 1327131 BuildRequires: pkgconfig(freetype2)
47 akien 1046442 BuildRequires: perl(Pod::Usage)
48     BuildRequires: pkgconfig(alsa)
49     BuildRequires: pkgconfig(fluidsynth)
50     BuildRequires: pkgconfig(jack)
51 daviddavid 1365223 BuildRequires: pkgconfig(libpulse)
52 akien 1046442 BuildRequires: pkgconfig(portaudio-2.0)
53 daviddavid 1327217 BuildRequires: pkgconfig(Qt5Concurrent)
54 spuhler 849638 BuildRequires: pkgconfig(Qt5Help)
55 wally 1319862 BuildRequires: pkgconfig(Qt5OpenGL)
56 akien 1046442 BuildRequires: pkgconfig(Qt5QuickWidgets)
57 spuhler 849638 BuildRequires: pkgconfig(Qt5ScriptTools)
58     BuildRequires: pkgconfig(Qt5Svg)
59 daviddavid 1327217 BuildRequires: pkgconfig(Qt5Test)
60 akien 1046442 BuildRequires: pkgconfig(Qt5UiTools)
61 daviddavid 1365223 BuildRequires: pkgconfig(Qt5WebEngine)
62     BuildRequires: pkgconfig(Qt5WebEngineWidgets)
63 akien 1046442 BuildRequires: pkgconfig(Qt5XmlPatterns)
64     BuildRequires: pkgconfig(vorbis)
65 daviddavid 1327217 BuildRequires: lame-devel
66 wally 1319862 BuildRequires: portmidi-devel
67 daviddavid 1365223 BuildRequires: porttime-devel
68 wally 1319862 BuildRequires: qtsingleapplication-qt5-devel
69 spuhler 849638
70 wally 1074162 Requires: qtquickcontrols5
71 daviddavid 1370176 Requires: qtwebengine5
72 spuhler 316904 Requires: %{name}-fonts = %{version}-%{release}
73     Requires: soundfont2-default
74 akien 608866 Provides: musescore = %{version}-%{release}
75 akien 608845 Obsoletes: musescore < 1.2-1
76 spuhler 316904
77 wally 1074087 # Doxygen documentation is huge and it is for musescore development only.
78 spuhler 846490 # Hence we don't build it for now. Otherwise it needs:
79     # BuildRequires: graphviz doxygen texlive-latex texlive-dvips
80    
81 spuhler 316904 %description
82     MuseScore stands for Linux MusE Score Typesetter.
83    
84     Features:
85 akien 1046440 - WYSIWYG design, notes are entered on a "virtual notepaper"
86     - TrueType font(s) for printing & display allows for high quality
87     scaling to all sizes
88     - easy & fast note entry
89     - many editing functions
90     - MusicXML import/export
91     - Midi (SMF) import/export
92     - MuseData import
93     - Midi input for note entry
94     - integrated sequencer and software synthesizer to
95     play the score
96     - print or create pdf files
97 spuhler 316904
98     %package doc
99 akien 1046440 Summary: MuseScore documentation
100     Group: Development/Other
101     License: CC-BY
102 daviddavid 1365223 Requires: %{name} >= %{version}-%{release}
103 akien 1046440 BuildArch: noarch
104     Obsoletes: musescore-doc
105 spuhler 316904
106     %description doc
107     MuseScore is a free cross platform WYSIWYG music notation program.
108    
109     This package contains the user manual of MuseScore in different languages.
110    
111     %package fonts
112 akien 1046440 Summary: MuseScore fonts
113     Group: Publishing
114     License: GPL+ with exceptions and OFL
115     BuildArch: noarch
116     BuildRequires: fontforge
117     BuildRequires: texlive
118 daviddavid 1365223 BuildRequires: texlive-texmf
119 akien 1046440 BuildRequires: t1utils
120 spuhler 316904
121 spuhler 424881
122 spuhler 316904 %description fonts
123     MuseScore is a free cross platform WYSIWYG music notation program.
124    
125     This package contains the musical notation fonts for use of MuseScore.
126    
127     %prep
128 daviddavid 1457573 %setup -q -n MuseScore-%{shortver}
129 ovitters 877706 %autopatch -p1
130 spuhler 316904
131 wally 1319862 # Remove the precompiled binary
132 spuhler 849638 rm thirdparty/rtf2html/rtf2html
133 spuhler 316904
134 wally 1319862 # Remove bundled stuff
135     sed -i -e 's|#include "singleapp/src/QtSingleApplication"|#include <QtSingleApplication>|' mscore/musescore.h
136     rm -vrf thirdparty/singleapp
137     rm -vrf thirdparty/freetype
138    
139     rm demos/All_Dudes.mscz demos/Triumph.mscz
140    
141 spuhler 316904 %build
142     # Build the actual program
143 akien 1046440 %cmake \
144 wally 1074087 -DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING="-DNDEBUG -DQT_NO_DEBUG" \
145 daviddavid 1365223 -DUSE_PATH_WITH_EXPLICIT_QT_VERSION=5 \
146     -DUSE_SYSTEM_QTSINGLEAPPLICATION=ON \
147     -DQTSINGLEAPPLICATION_INCLUDE_DIRS=%{_qt5_includedir}/QtSolutions \
148     -DUSE_SYSTEM_FREETYPE=ON \
149     -DDOWNLOAD_SOUNDFONT=OFF \
150 daviddavid 1370176 -DBUILD_WEBENGINE=ON \
151 daviddavid 1370369 -DBUILD_LAME=ON \
152     -DBUILD_CRASH_REPORTER=OFF
153 spuhler 856601
154 akien 1046440 %make_build PREFIX=%{_prefix} lrelease
155 wally 1319862 %make_build PREFIX=%{_prefix} manpages
156 akien 1046440 %make_build PREFIX=%{_prefix} VERBOSE=1
157 spuhler 316904
158     %install
159 wally 1319862 echo %{shortver}
160 akien 1046440 %make_install PREFIX=%{_prefix} -C build
161 spuhler 316904
162 spuhler 851716 # Install fonts
163 akien 1046440 mkdir -p %{buildroot}%{fontdir}
164     mkdir -p %{buildroot}%{fontdir}/bravura
165 daviddavid 1457573 mkdir -p %{buildroot}%{fontdir}/campania
166 akien 1046440 mkdir -p %{buildroot}%{fontdir}/gootville
167 daviddavid 1365223 mkdir -p %{buildroot}%{fontdir}/musejazz
168 akien 1046440 install -pm 644 fonts/*.ttf %{buildroot}%{fontdir}
169     install -pm 644 fonts/bravura/*.otf %{buildroot}%{fontdir}
170     install -pm 644 fonts/bravura/*.json %{buildroot}%{fontdir}/bravura
171 daviddavid 1457573 install -pm 644 fonts/campania/*.otf %{buildroot}%{fontdir}
172 akien 1046440 install -pm 644 fonts/gootville/*.otf %{buildroot}%{fontdir}
173     install -pm 644 fonts/gootville/*.json %{buildroot}%{fontdir}/gootville/
174 daviddavid 1365223 install -pm 644 fonts/mscore/*.ttf %{buildroot}%{fontdir}
175 akien 1046440 install -pm 644 fonts/mscore/*.json %{buildroot}%{fontdir}
176 daviddavid 1365223 install -pm 644 fonts/musejazz/*.otf %{buildroot}%{fontdir}
177     install -pm 644 fonts/musejazz/*.json %{buildroot}%{fontdir}/musejazz/
178 akien 1046440 install -pm 644 fonts/*.xml %{buildroot}%{fontdir}
179 spuhler 316904
180 daviddavid 1377055 # mscz and mscx
181 akien 1046440 mkdir -p %{buildroot}%{_datadir}/%{name}-%{shortver}/demos/
182     install -p share/templates/*.mscz %{buildroot}%{_datadir}/%{name}-%{shortver}/demos/
183 daviddavid 1377055 install -p share/templates/*.mscx %{buildroot}%{_datadir}/%{name}-%{shortver}/demos/
184 spuhler 316904
185 akien 1046440 pushd %{buildroot}%{fontdir}
186 spuhler 851716 cd bravura
187     ln -s ../Bravura.otf .
188     ln -s ../BravuraText.otf .
189 daviddavid 1457573 cd ../campania
190     ln -s ../Campania.otf .
191 spuhler 851716 cd ../gootville
192     ln -s ../Gootville.otf .
193     ln -s ../GootvilleText.otf .
194 daviddavid 1365223 cd ../musejazz
195     ln -s ../MuseJazz.otf .
196     ln -s ../MuseJazzText.otf .
197 spuhler 851716 cd ..
198     popd
199 spuhler 316904
200 spuhler 851716 # Mime type
201 akien 1046440 mkdir -p %{buildroot}%{_datadir}/mime/packages
202     install -pm 644 %{SOURCE1} %{buildroot}%{_datadir}/mime/packages/
203 spuhler 851716
204     # Desktop file
205     desktop-file-install \
206 akien 1046440 --dir=%{buildroot}%{_datadir}/applications \
207 spuhler 851716 --add-category="X-Notation" \
208     --remove-category="Sequencer" \
209     --remove-category="AudioVideoEditing" \
210     --add-mime-type="audio/midi" \
211     --add-mime-type="text/x-lilypond" \
212     --add-mime-type="application/xml" \
213 akien 1046440 %{buildroot}%{_datadir}/applications/%{name}.desktop
214 spuhler 851716
215     # Move images to the freedesktop location
216 daviddavid 1457573 mkdir -p %{buildroot}%{_datadir}/icons/hicolor/64x64/mimetypes/
217 spuhler 851716 cp -a mscore/data/mscore.png \
218 akien 1046440 %{buildroot}%{_datadir}/icons/hicolor/64x64/mimetypes/application-x-musescore.png
219 spuhler 316904
220 spuhler 851716 # There are many doc files spread around the tarball. Let's collect them
221 wally 1074087 mkdir -p docs
222     rm -rf docs/*
223     cp -a thirdparty/rtf2html/ChangeLog docs/ChangeLog.rtf2html
224     cp -a thirdparty/rtf2html/COPYING.LESSER docs/COPYING.LESSER.rtf2html
225     cp -a thirdparty/rtf2html/README docs/README.rtf2html
226     cp -a thirdparty/rtf2html/README.mscore docs/README.mscore.rtf2html
227     cp -a thirdparty/rtf2html/README.ru docs/README.ru.rtf2html
228     cp -a share/wallpaper/COPYRIGHT docs/COPYING.wallpaper
229     cp -a fonts/bravura/OFL.txt docs/COPYING.OFL
230 wally 1319862 cp -a share/sound/FluidR3Mono_License.md docs/COPYING.FluidR3Mono
231 spuhler 316904
232 daviddavid 1365223 # Add AppStream metadata for fonts
233 spuhler 851716 install -Dm 0644 -p %{SOURCE2} \
234 wally 1074087 %{buildroot}%{_datadir}/appdata/%{name}.metainfo.xml
235 spuhler 316904
236 wally 1319862 # Install soundfont
237     install -Dm 0644 -p share/sound/FluidR3Mono_GM.sf3 \
238     %{buildroot}%{_datadir}/soundfonts/FluidR3Mono_GM.sf3
239    
240 spuhler 316904 %files
241 wally 1074115 %doc README* docs/ChangeLog* docs/README*
242     %license docs/COPYING*
243 spuhler 316904 %{_bindir}/%{name}
244 wally 1074087 %{_bindir}/musescore
245 spuhler 851716 %{_datadir}/%{name}-%{shortver}/
246     %exclude %{_datadir}/%{name}-%{shortver}/manual/
247 spuhler 316904 %{_datadir}/icons/hicolor/*/*/*
248     %{_datadir}/applications/%{name}.desktop
249     %{_datadir}/mime/packages/%{name}.xml
250 spuhler 856601 %{_datadir}/mime/packages/musescore.xml
251 akien 1046440 %{_mandir}/man1/*.1*
252 spuhler 851716 %{_datadir}/soundfonts/FluidR3Mono_GM.sf3
253 daviddavid 1457573 %{_metainfodir}/org.musescore.MuseScore.appdata.xml
254 spuhler 316904
255     %files doc
256 spuhler 851716 %doc %{_datadir}/%{name}-%{shortver}/manual/
257 spuhler 316904
258     %files fonts
259 akien 1046440 %{_datadir}/fonts/mscore/
260 wally 1074087 %{_datadir}/appdata/%{name}.metainfo.xml

  ViewVC Help
Powered by ViewVC 1.1.30