]>
Commit | Line | Data |
---|---|---|
f0b50857 | 1 | %define kdeappsver 21.08.1 |
6be991a9 | 2 | %define kframever 5.56.0 |
ef385372 WF |
3 | %define qtver 5.9.0 |
4 | %define kaname minuet | |
5 | Summary: minuet | |
6 | Name: ka5-%{kaname} | |
f0b50857 | 7 | Version: 21.08.1 |
ef385372 WF |
8 | Release: 1 |
9 | License: GPL v2+/LGPL v2.1+ | |
10 | Group: X11/Libraries | |
1b93f452 | 11 | Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
f0b50857 | 12 | # Source0-md5: ab5020584b340e0926554367358cd7d6 |
ef385372 WF |
13 | URL: http://www.kde.org/ |
14 | BuildRequires: Qt5Core-devel >= %{qtver} | |
15 | BuildRequires: Qt5Gui-devel | |
16 | BuildRequires: Qt5Network-devel >= 5.11.1 | |
17 | BuildRequires: Qt5Qml-devel | |
18 | BuildRequires: Qt5Quick-controls2-devel | |
19 | BuildRequires: Qt5Quick-devel | |
20 | BuildRequires: Qt5Svg-devel | |
21 | BuildRequires: Qt5Widgets-devel >= 5.11.1 | |
22 | BuildRequires: fluidsynth-devel >= 1.1.6 | |
23 | BuildRequires: gettext-devel | |
6be991a9 WF |
24 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
25 | BuildRequires: kf5-kcoreaddons-devel >= %{kframever} | |
26 | BuildRequires: kf5-kcrash-devel >= %{kframever} | |
27 | BuildRequires: kf5-kdoctools-devel >= %{kframever} | |
28 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
89b0d4c4 | 29 | BuildRequires: ninja |
ef385372 WF |
30 | BuildRequires: qt5-build >= %{qtver} |
31 | BuildRequires: rpmbuild(macros) >= 1.164 | |
32 | BuildRequires: shared-mime-info | |
33 | BuildRequires: tar >= 1:1.22 | |
34 | BuildRequires: xz | |
35 | BuildRequires: zlib-devel | |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
37 | ||
38 | %description | |
39 | Minuet is a free and open source software for music education. It aims | |
40 | at supporting students and teachers in many aspects of music | |
41 | education, such as ear training, first-sight reading, solfa, scales, | |
42 | rhythm, harmony, and improvisation. | |
43 | ||
5efbe82d WF |
44 | %description -l pl.UTF-8 |
45 | Minuet jest wolnym i otwartoźródłowym oprogramowaniem do edukacji | |
46 | muzycznej. Wspiera uczniów i nauczycieli w wielu aspektach nauki | |
47 | muzyki, takich jak trening słuchu, czytania nut, solfeżu, | |
48 | rytmu, harmonii i improwizacji. | |
49 | ||
ef385372 WF |
50 | %package devel |
51 | Summary: Header files for %{kaname} development | |
52 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kaname} | |
53 | Group: X11/Development/Libraries | |
54 | Requires: %{name} = %{version}-%{release} | |
55 | ||
56 | %description devel | |
57 | Header files for %{kaname} development. | |
58 | ||
59 | %description devel -l pl.UTF-8 | |
60 | Pliki nagłówkowe dla programistów używających %{kaname}. | |
61 | ||
62 | %prep | |
63 | %setup -q -n %{kaname}-%{version} | |
64 | ||
65 | %build | |
66 | install -d build | |
67 | cd build | |
68 | %cmake \ | |
89b0d4c4 | 69 | -G Ninja \ |
6be991a9 | 70 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
ef385372 WF |
71 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
72 | .. | |
89b0d4c4 | 73 | %ninja_build |
ef385372 WF |
74 | |
75 | %install | |
76 | rm -rf $RPM_BUILD_ROOT | |
89b0d4c4 | 77 | %ninja_install -C build |
ef385372 WF |
78 | |
79 | %find_lang %{kaname} --all-name --with-kde --with-qm | |
80 | ||
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %post -p /sbin/ldconfig | |
85 | %postun -p /sbin/ldconfig | |
86 | ||
87 | %files -f %{kaname}.lang | |
88 | %defattr(644,root,root,755) | |
89 | %attr(755,root,root) %{_bindir}/minuet | |
90 | %attr(755,root,root) %{_libdir}/libminuetinterfaces.so.0.3.0 | |
91 | %dir %{_libdir}/qt5/plugins/minuet | |
92 | %attr(755,root,root) %{_libdir}/qt5/plugins/minuet/minuetfluidsynthsoundcontroller.so | |
93 | %{_desktopdir}/org.kde.minuet.desktop | |
94 | %{_iconsdir}/hicolor/128x128/apps/minuet.png | |
95 | %{_iconsdir}/hicolor/128x128/apps/minuet.svg | |
96 | %{_iconsdir}/hicolor/16x16/actions/minuet-chords.svg | |
97 | %{_iconsdir}/hicolor/16x16/actions/minuet-intervals.svg | |
98 | %{_iconsdir}/hicolor/16x16/actions/minuet-rhythms.svg | |
99 | %{_iconsdir}/hicolor/16x16/actions/minuet-scales.svg | |
100 | %{_iconsdir}/hicolor/16x16/apps/minuet.png | |
101 | %{_iconsdir}/hicolor/16x16/apps/minuet.svg | |
102 | %{_iconsdir}/hicolor/22x22/actions/minuet-chords.svg | |
103 | %{_iconsdir}/hicolor/22x22/actions/minuet-intervals.svg | |
104 | %{_iconsdir}/hicolor/22x22/actions/minuet-rhythms.svg | |
105 | %{_iconsdir}/hicolor/22x22/actions/minuet-scales.svg | |
106 | %{_iconsdir}/hicolor/22x22/apps/minuet.png | |
107 | %{_iconsdir}/hicolor/22x22/apps/minuet.svg | |
108 | %{_iconsdir}/hicolor/32x32/apps/minuet.png | |
109 | %{_iconsdir}/hicolor/32x32/apps/minuet.svg | |
110 | %{_iconsdir}/hicolor/48x48/apps/minuet.png | |
111 | %{_iconsdir}/hicolor/48x48/apps/minuet.svg | |
112 | %{_iconsdir}/hicolor/64x64/apps/minuet.png | |
113 | %{_iconsdir}/hicolor/64x64/apps/minuet.svg | |
114 | %{_iconsdir}/hicolor/scalable/apps/minuet.svgz | |
115 | %{_datadir}/metainfo/org.kde.minuet.appdata.xml | |
116 | %{_datadir}/minuet | |
117 | ||
118 | %files devel | |
119 | %defattr(644,root,root,755) | |
120 | %{_includedir}/minuet | |
121 | %{_libdir}/libminuetinterfaces.so |