]>
Commit | Line | Data |
---|---|---|
623041ca | 1 | # |
6065f372 | 2 | |
2a7d97dd | 3 | %define min_qt_version 5.15.8 |
6065f372 | 4 | |
623041ca JK |
5 | Summary: MuseScore - music notation software |
6 | Summary(pl.UTF-8): MuseScore - oprogramowanie do notacji muzycznej | |
7 | Name: musescore | |
59c6d48a | 8 | Version: 4.1.1 |
d8139057 | 9 | Release: 1 |
623041ca JK |
10 | License: GPL v2 |
11 | Group: Applications | |
d2acd726 | 12 | Source0: https://github.com/musescore/MuseScore/archive/v%{version}.tar.gz |
59c6d48a | 13 | # Source0-md5: 080fd5bf13ef2774af451ae47de09dee |
2a7d97dd | 14 | Patch0: no-crashpad.patch |
d2acd726 KM |
15 | Patch1: desktop.patch |
16 | Patch2: use-qtmake-qt5.patch | |
17 | Patch3: set_as_stable.patch | |
623041ca | 18 | URL: https://musescore.org/ |
6065f372 JK |
19 | BuildRequires: Qt5Concurrent-devel >= %{min_qt_version} |
20 | BuildRequires: Qt5Core-devel >= %{min_qt_version} | |
21 | BuildRequires: Qt5Designer-devel >= %{min_qt_version} | |
22 | BuildRequires: Qt5Gui-devel >= %{min_qt_version} | |
23 | BuildRequires: Qt5Help-devel >= %{min_qt_version} | |
24 | BuildRequires: Qt5Network-devel >= %{min_qt_version} | |
2a7d97dd | 25 | BuildRequires: Qt5NetworkAuth-devel >= %{min_qt_version} |
6065f372 JK |
26 | BuildRequires: Qt5OpenGL-devel >= %{min_qt_version} |
27 | BuildRequires: Qt5PrintSupport-devel >= %{min_qt_version} | |
28 | BuildRequires: Qt5Qml-devel >= %{min_qt_version} | |
44df59cf | 29 | BuildRequires: Qt5Quick-controls2-devel |
6065f372 JK |
30 | BuildRequires: Qt5Quick-devel >= %{min_qt_version} |
31 | BuildRequires: Qt5Sql-devel >= %{min_qt_version} | |
32 | BuildRequires: Qt5Svg-devel >= %{min_qt_version} | |
33 | BuildRequires: Qt5Test-devel >= %{min_qt_version} | |
34 | BuildRequires: Qt5UiTools-devel >= %{min_qt_version} | |
6065f372 JK |
35 | BuildRequires: Qt5Widgets-devel >= %{min_qt_version} |
36 | BuildRequires: Qt5Xml-devel >= %{min_qt_version} | |
37 | BuildRequires: Qt5XmlPatterns-devel >= %{min_qt_version} | |
623041ca | 38 | BuildRequires: alsa-lib-devel |
24e787ac | 39 | BuildRequires: cmake >= 3.3.0 |
623041ca | 40 | BuildRequires: doxygen |
6065f372 | 41 | BuildRequires: freetype-devel >= 2.5.2 |
623041ca JK |
42 | BuildRequires: jack-audio-connection-kit-devel >= 0.98 |
43 | BuildRequires: lame-libs-devel | |
44 | BuildRequires: pkgconfig | |
45 | BuildRequires: portaudio-devel | |
46 | BuildRequires: pulseaudio-devel | |
47 | BuildRequires: qt5-assistant | |
48 | BuildRequires: qt5-build | |
49 | BuildRequires: qt5-linguist | |
d2acd726 | 50 | BuildRequires: qt5-qmake |
623041ca | 51 | BuildRequires: texlive-latex |
2a7d97dd | 52 | Requires: Qt5Quick-graphicaleffects |
44df59cf | 53 | Suggests: %{name}-fonts |
623041ca JK |
54 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
55 | ||
56 | %description | |
57 | MuseScore is an open source and free music notation software. | |
58 | ||
59 | Features: | |
60 | - WYSIWYG design, notes are entered on a "virtual notepaper" | |
61 | - TrueType font(s) for printing & display allows for high quality | |
62 | scaling to all sizes | |
63 | - easy & fast note entry | |
64 | - many editing functions | |
65 | - MusicXML import/export | |
66 | - Midi (SMF) import/export | |
67 | - MuseData import | |
68 | - Midi input for note entry | |
69 | - integrated sequencer and software synthesizer to play the score | |
70 | - print or create pdf files | |
71 | ||
44df59cf KM |
72 | %description -l pl.UTF-8 |
73 | MuseScore to otwarte i darmowe oprogramowanie do notacji muzycznej. | |
74 | ||
75 | Cechy: | |
76 | - edytor WYSIWYG, nuty są wprowadzane na "wirtualny papier nutowy" | |
77 | - czcionki TrueType do drukowania i wyświetlania umożliwiają wysokiej | |
78 | jakości skalowanie do wszystkich rozmiarów | |
79 | - łatwe i szybkie wprowadzanie nut | |
80 | - wiele funkcji edycyjnych | |
81 | - import/eksport MusicXML | |
82 | - import/eksport Midi (SMF). | |
83 | - import MuseData | |
84 | - wejście Midi do wprowadzania nut | |
85 | - zintegrowany sekwencer i syntezator programowy do odtwarzania | |
86 | partytury | |
87 | - możliwość tworzenia i drukowania plików pdf | |
88 | ||
2a7d97dd KM |
89 | %package fonts |
90 | Summary: MuseScore fonts | |
91 | Summary(pl.UTF-8): Czcionki MuseScore | |
92 | License: GPL-3.0-or-later WITH Font-exception-2.0 AND OFL-1.1 | |
93 | Group: Fonts | |
94 | BuildArch: noarch | |
95 | ||
96 | %description fonts | |
97 | Additional fonts for use by the MuseScore music notation program. | |
98 | ||
44df59cf KM |
99 | %description fonts -l pl.UTF-8 |
100 | Dodatkowe czcionki do użytku w oprogramowaniu do notacji muzycznej | |
101 | MuseScore. | |
102 | ||
623041ca | 103 | %prep |
d2acd726 | 104 | %setup -q -n MuseScore-%{version} |
24e787ac | 105 | %patch0 -p1 |
c1dcfec6 | 106 | %patch1 -p1 |
d2acd726 KM |
107 | %patch2 -p1 |
108 | %patch3 -p1 | |
6065f372 | 109 | |
44df59cf KM |
110 | # fix EOL encoding |
111 | sed 's/\r$//' fonts/bravura/OFL-FAQ.txt > tmpfile | |
112 | touch -r fonts/bravura/OFL-FAQ.txt tmpfile | |
113 | mv -f tmpfile fonts/bravura/OFL-FAQ.txt | |
114 | ||
115 | sed 's/\r$//' thirdparty/rtf2html/README > tmpfile | |
116 | touch -r thirdparty/rtf2html/README tmpfile | |
117 | mv -f tmpfile thirdparty/rtf2html/README | |
118 | ||
119 | sed 's/\r$//' thirdparty/rtf2html/README.ru > tmpfile | |
120 | touch -r thirdparty/rtf2html/README.ru tmpfile | |
121 | mv -f tmpfile thirdparty/rtf2html/README.ru | |
122 | ||
623041ca JK |
123 | %build |
124 | ||
125 | # note: 'build' directory is already there, for something else | |
126 | install -d build.release | |
127 | cd build.release | |
128 | ||
623041ca | 129 | %cmake \ |
2a7d97dd KM |
130 | -DCMAKE_BUILD_TYPE=RelWithDebInfo \ |
131 | -DMUSESCORE_BUILD_CONFIG=release \ | |
623041ca JK |
132 | -DMSCORE_INSTALL_SUFFIX="" \ |
133 | -DMUSESCORE_LABEL="" \ | |
2a7d97dd | 134 | -DBUILD_UNIT_TESTS=OFF \ |
623041ca | 135 | -DCMAKE_SKIP_RPATH="FALSE" \ |
6065f372 JK |
136 | -DDOWNLOAD_SOUNDFONT="OFF" \ |
137 | -DUSE_SYSTEM_FREETYPE="ON" \ | |
2a7d97dd | 138 | -DBUILD_CRASHPAD_CLIENT=OFF \ |
e86b8801 JK |
139 | %ifarch x32 |
140 | -DBUILD_WEBENGINE="OFF" \ | |
141 | %endif | |
623041ca JK |
142 | .. |
143 | ||
144 | %{__make} lrelease | |
145 | %{__make} | |
146 | ||
147 | %install | |
148 | rm -rf $RPM_BUILD_ROOT | |
149 | ||
150 | cd build.release | |
151 | %{__make} install \ | |
152 | DESTDIR=$RPM_BUILD_ROOT | |
153 | ||
2a7d97dd KM |
154 | # don't package kddockwidgets. It should not be installed |
155 | rm $RPM_BUILD_ROOT%{_libdir}/*.a | |
156 | rm -r $RPM_BUILD_ROOT%{_includedir}/kddockwidgets | |
157 | rm -r $RPM_BUILD_ROOT%{_libdir}/cmake/KDDockWidgets | |
158 | ||
159 | # Remove opus devel files, they are provided by system | |
160 | rm -r $RPM_BUILD_ROOT%{_includedir}/opus | |
161 | ||
162 | rm $RPM_BUILD_ROOT%{_mandir}/man1/musescore.1.gz | |
163 | echo ".so mscore.1" > $RPM_BUILD_ROOT%{_mandir}/man1/musescore.1 | |
164 | ||
44df59cf | 165 | cd .. |
2a7d97dd | 166 | # install fonts |
44df59cf KM |
167 | install -d $RPM_BUILD_ROOT%{_datadir}/fonts/{OTF,TTF} |
168 | install -p fonts/*.ttf $RPM_BUILD_ROOT%{_datadir}/fonts/TTF | |
169 | install -p fonts/*/*.ttf $RPM_BUILD_ROOT%{_datadir}/fonts/TTF | |
170 | install -p fonts/bravura/BravuraText.otf $RPM_BUILD_ROOT%{_datadir}/fonts/OTF | |
171 | install -p fonts/campania/Campania.otf $RPM_BUILD_ROOT%{_datadir}/fonts/OTF | |
172 | install -p fonts/edwin/*.otf $RPM_BUILD_ROOT%{_datadir}/fonts/OTF | |
173 | install -p fonts/gootville/GootvilleText.otf $RPM_BUILD_ROOT%{_datadir}/fonts/OTF | |
174 | install -p fonts/leland/LelandText.otf $RPM_BUILD_ROOT%{_datadir}/fonts/OTF | |
175 | install -p fonts/musejazz/MuseJazzText.otf $RPM_BUILD_ROOT%{_datadir}/fonts/OTF | |
176 | install -p fonts/petaluma/PetalumaText.otf $RPM_BUILD_ROOT%{_datadir}/fonts/OTF | |
2a7d97dd KM |
177 | |
178 | # unique names for font docs | |
179 | mv fonts/edwin/README.md fonts/edwin/README.md.edwin | |
180 | mv fonts/edwin/LICENSE.txt fonts/edwin/LICENSE.txt.edwin | |
181 | mv fonts/leland/README.md fonts/leland/README.md.leland | |
182 | mv fonts/leland/LICENSE.txt fonts/leland/LICENSE.txt.leland | |
623041ca | 183 | |
44df59cf KM |
184 | # collect doc files |
185 | mkdir tmp_doc | |
186 | install -p thirdparty/beatroot/COPYING tmp_doc/COPYING.beatroot | |
187 | install -p thirdparty/beatroot/README.txt tmp_doc/README.txt.beatroot | |
188 | install -p thirdparty/dtl/COPYING tmp_doc/COPYING.BSD.dtl | |
189 | install -p thirdparty/freetype/README tmp_doc/README.freetype | |
190 | install -p thirdparty/intervaltree/README tmp_doc/README.intervaltree | |
191 | install -p thirdparty/rtf2html/ChangeLog tmp_doc/ChangeLog.rtf2html | |
192 | install -p thirdparty/rtf2html/COPYING.LESSER tmp_doc/COPYING.LESSER.rtf2html | |
193 | install -p thirdparty/rtf2html/README tmp_doc/README.rtf2html | |
194 | install -p thirdparty/rtf2html/README.mscore tmp_doc/README.mscore.rtf2html | |
195 | install -p thirdparty/rtf2html/README.ru tmp_doc/README.ru.rtf2html | |
44df59cf KM |
196 | install -p tools/bww2mxml/COPYING tmp_doc/COPYING.bww2mxml |
197 | install -p tools/bww2mxml/README tmp_doc/README.bww2mxml | |
198 | install -p share/sound/README.md tmp_doc/README.md.sound | |
199 | install -p share/instruments/README.md tmp_doc/README.md.instruments | |
200 | install -p share/wallpapers/COPYRIGHT tmp_doc/COPYING.wallpaper | |
201 | ||
623041ca JK |
202 | %post |
203 | %update_desktop_database | |
204 | %update_icon_cache hicolor | |
205 | %update_mime_database | |
206 | ||
207 | %postun | |
208 | %update_desktop_database | |
209 | %update_icon_cache hicolor | |
210 | %update_mime_database | |
211 | ||
44df59cf KM |
212 | %post fonts |
213 | fontpostinst OTF | |
214 | fontpostinst TTF | |
215 | ||
216 | %postun fonts | |
217 | fontpostinst OTF | |
218 | fontpostinst TTF | |
219 | ||
623041ca JK |
220 | %clean |
221 | rm -rf $RPM_BUILD_ROOT | |
222 | ||
223 | %files | |
224 | %defattr(644,root,root,755) | |
44df59cf | 225 | %doc README.md Compatibility LICENSE.GPL tmp_doc/* |
623041ca | 226 | %attr(755,root,root) %{_bindir}/mscore |
59c6d48a | 227 | %{_datadir}/mscore-4.1 |
2a7d97dd | 228 | %{_desktopdir}/org.musescore.MuseScore.desktop |
623041ca JK |
229 | %{_iconsdir}/*/*/apps/* |
230 | %{_iconsdir}/*/*/mimetypes/* | |
231 | %{_mandir}/man1/mscore.1* | |
232 | %{_mandir}/man1/musescore.1* | |
233 | %{_datadir}/mime/packages/musescore.xml | |
c1dcfec6 | 234 | %{_datadir}/metainfo/org.musescore.MuseScore.appdata.xml |
44df59cf KM |
235 | |
236 | %files fonts | |
237 | %defattr(644,root,root,755) | |
238 | %{_datadir}/fonts/TTF/*.ttf | |
239 | %{_datadir}/fonts/OTF/*.otf | |
240 | %doc fonts/README.md | |
241 | %doc fonts/bravura/bravura-text.md | |
242 | %doc fonts/bravura/OFL-FAQ.txt | |
243 | %doc fonts/bravura/OFL.txt | |
244 | %doc fonts/gootville/readme.txt fonts/campania/LICENSE | |
245 | # see section 'unique names for font docs' above | |
246 | %doc fonts/edwin/README.md.edwin fonts/edwin/LICENSE.txt.edwin | |
247 | %doc fonts/leland/README.md.leland fonts/leland/LICENSE.txt.leland |