-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdmidiplayer.spec
More file actions
65 lines (56 loc) · 1.91 KB
/
dmidiplayer.spec
File metadata and controls
65 lines (56 loc) · 1.91 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
Summary: Multi-platform MIDI File Player
Name: dmidiplayer
Version: 1.7.5
Release: 1
License: GPLv3+
Group: Sound
Url: https://sourceforge.net/projects/dmidiplayer/
Source0: https://sourceforge.net/projects/dmidiplayer/files/v%{version}/%{name}-%{version}.tar.bz2
BuildRequires: cmake >= 3.16
BuildRequires: git
BuildRequires: gzip-utils
# Needed for docs, but not provided yet
#BuildRequires: pandoc
BuildRequires: pbzip2
BuildRequires: uchardet
BuildRequires: qt6-qttools-linguist-tools
BuildRequires: pkgconfig(drumstick-file) >= 2.10
BuildRequires: pkgconfig(drumstick-rt)
BuildRequires: pkgconfig(drumstick-widgets)
BuildRequires: pkgconfig(Qt6Core) >= 6.2
BuildRequires: pkgconfig(Qt6Core5Compat)
BuildRequires: pkgconfig(Qt6Gui)
BuildRequires: pkgconfig(Qt6PrintSupport)
BuildRequires: pkgconfig(Qt6Widgets)
BuildRequires: pkgconfig(uchardet) >= 0.0.8
%description
Drumstick MIDI File Player: a Qt-only replacement for Kmid2.
Some key features:
* MIDI Output to hardware MIDI ports, or any other Drumstick back-end.
* Transpose song tonality between -12 and +12 semitones.
* Change MIDI volume level (using MIDI CC7).
* Scale song speed between half and double tempo.
* Lyrics, Piano Player and MIDI Channels views.
* Supports MID/KAR (Standard MIDI Files) and WRK (Cakewalk) file formats.
%files
%doc ChangeLog LICENSE README.md
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/net.sourceforge.%{name}.desktop
%{_datadir}/metainfo/net.sourceforge.%{name}.metainfo.xml
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_mandir}/man1/%{name}.1*
#-----------------------------------------------------------------------------
%prep
%autosetup -p1
%build
# Building docs now requires pandoc and we don't have it yet...
%cmake -DUSE_QT5=OFF -DBUILD_DOCS=OFF
%make_build
%install
%make_install -C build
# Fix gzipped-svg-icon
(
cd %{buildroot}%{_iconsdir}/hicolor/scalable/apps/
zcat %{name}.svgz > %{name}.svg && rm -f %{name}.svgz
)