forked from pianobooster/PianoBooster
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpianobooster.spec
More file actions
151 lines (133 loc) · 3.72 KB
/
pianobooster.spec
File metadata and controls
151 lines (133 loc) · 3.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
%define build_with_cmake 1
%define orig_name PianoBooster
%if 0%{?suse_version}
%define qmake_qt5 qmake-qt5
%endif
Name: pianobooster
Version: 0.7.1
Release: %mkrel 1
Summary: A MIDI file player that teaches you how to play the piano
%if 0%{?mageia}
Group: Sound/Midi
%endif
%if 0%{?fedora}
Group: Applications/Sound
%endif
%if 0%{?suse_version}
Group: Productivity/Multimedia/Sound/Midi
%endif
%if 0%{?mageia} || 0%{?fedora}
License: GPLv3+
%endif
%if 0%{?suse_version}
License: GPL-3.0-or-later
%endif
Url: https://github.com/captnfab/PianoBooster
Source0: %{orig_name}-%{version}.tar.gz
%if %{build_with_cmake}
BuildRequires: cmake
%endif
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(ftgl)
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Help)
BuildRequires: pkgconfig(Qt5OpenGL)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Xml)
BuildRequires: pkgconfig(rtmidi)
BuildRequires: pkgconfig(fluidsynth)
BuildRequires: hicolor-icon-theme
%if 0%{?mageia}
Requires: fonts-ttf-dejavu
%endif
%if 0%{?suse_version}
Requires: dejavu-fonts
%endif
%if 0%{?fedora}
Requires: dejavu-sans-fonts
%endif
Requires: unzip
Requires: hicolor-icon-theme
#Recommends: %%{name}-fluidsynth
%if 0%{?mageia}
Recommends: qttranslations5
%endif
%if 0%{?suse_version}
Recommends: libqt5-qttranslations
%endif
%if 0%{?fedora}
Recommends: qt5-qttranslations
%endif
%description
A MIDI file player/game that displays the musical notes AND teaches you how
to play the piano.
PianoBooster is a fun way of playing along with a musical accompaniment and
at the same time learning the basics of reading musical notation.
The difference between playing along to a CD or a standard MIDI file
is that PianoBooster listens and reacts to what you are playing on a
MIDI keyboard.
To run Piano Booster you need a MIDI Piano Keyboard and a MIDI interface
for the PC. If you don't have a MIDI keyboard you can still try out
PianoBooster, using the PC keyboard ('x' is middle C), but a MIDI piano
is really recommended.
%files
%doc README.md Changelog.txt doc/faq.md
%license license.txt
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%dir %{_datadir}/games/%{name}
%dir %{_datadir}/games/%{name}/music
%dir %{_datadir}/games/%{name}/translations
%{_datadir}/games/%{name}/music/*.zip
%{_datadir}/games/%{name}/translations/%{name}*.qm
%{_datadir}/games/%{name}/translations/music*.qm
%{_datadir}/games/%{name}/translations/*.json
%{_mandir}/man6/%{name}.6*
#----------------------------------------------------------------------------
%if 0%{?mageia}
Group: Sound/Midi
%endif
%if 0%{?fedora}
Group: Applications/Sound
%endif
%if 0%{?suse_version}
Group: Productivity/Multimedia/Sound/Midi
%endif
Requires: %{name} = %{version}-%{release}
%if 0%{?mageia} || 0%{?fedora}
Requires: libnotify
%endif
%if 0%{?suse_version}
Requires: libnotify-tools
%endif
#----------------------------------------------------------------------------
%prep
%autosetup -p1 -n %{orig_name}-%{version}
%build
%if %{build_with_cmake}
%cmake \
-DUSE_SYSTEM_FONT=ON \
-DNO_DOCS=ON \
-DNO_LICENSE=ON \
-DNO_CHANGELOG=ON \
-DWITH_MAN=ON
%else
%qmake_qt5 \
USE_SYSTEM_FONT=ON \
NO_DOCS=ON \
NO_LICENSE=ON \
NO_CHANGELOG=ON \
WITH_MAN=ON
%endif
%make_build
%install
%if %{build_with_cmake}
%make_install -C build
%else
%make_install INSTALL_ROOT=%{buildroot}
%endif