]>
Commit | Line | Data |
---|---|---|
6be991a9 WF |
1 | %define kdeappsver 19.04.1 |
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} | |
6be991a9 | 7 | Version: 19.04.1 |
ef385372 WF |
8 | Release: 1 |
9 | License: GPL v2+/LGPL v2.1+ | |
10 | Group: X11/Libraries | |
11 | Source0: http://download.kde.org/stable/applications/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz | |
6be991a9 | 12 | # Source0-md5: 97788bd248708d069771ae295c5da387 |
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 | ||
44 | %package devel | |
45 | Summary: Header files for %{kaname} development | |
46 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kaname} | |
47 | Group: X11/Development/Libraries | |
48 | Requires: %{name} = %{version}-%{release} | |
49 | ||
50 | %description devel | |
51 | Header files for %{kaname} development. | |
52 | ||
53 | %description devel -l pl.UTF-8 | |
54 | Pliki nagłówkowe dla programistów używających %{kaname}. | |
55 | ||
56 | %prep | |
57 | %setup -q -n %{kaname}-%{version} | |
58 | ||
59 | %build | |
60 | install -d build | |
61 | cd build | |
62 | %cmake \ | |
89b0d4c4 | 63 | -G Ninja \ |
6be991a9 | 64 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
ef385372 WF |
65 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
66 | .. | |
89b0d4c4 | 67 | %ninja_build |
ef385372 WF |
68 | |
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
89b0d4c4 | 71 | %ninja_install -C build |
ef385372 WF |
72 | |
73 | %find_lang %{kaname} --all-name --with-kde --with-qm | |
74 | ||
75 | %clean | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %post -p /sbin/ldconfig | |
79 | %postun -p /sbin/ldconfig | |
80 | ||
81 | %files -f %{kaname}.lang | |
82 | %defattr(644,root,root,755) | |
83 | %attr(755,root,root) %{_bindir}/minuet | |
84 | %attr(755,root,root) %{_libdir}/libminuetinterfaces.so.0.3.0 | |
85 | %dir %{_libdir}/qt5/plugins/minuet | |
86 | %attr(755,root,root) %{_libdir}/qt5/plugins/minuet/minuetfluidsynthsoundcontroller.so | |
87 | %{_desktopdir}/org.kde.minuet.desktop | |
88 | %{_iconsdir}/hicolor/128x128/apps/minuet.png | |
89 | %{_iconsdir}/hicolor/128x128/apps/minuet.svg | |
90 | %{_iconsdir}/hicolor/16x16/actions/minuet-chords.svg | |
91 | %{_iconsdir}/hicolor/16x16/actions/minuet-intervals.svg | |
92 | %{_iconsdir}/hicolor/16x16/actions/minuet-rhythms.svg | |
93 | %{_iconsdir}/hicolor/16x16/actions/minuet-scales.svg | |
94 | %{_iconsdir}/hicolor/16x16/apps/minuet.png | |
95 | %{_iconsdir}/hicolor/16x16/apps/minuet.svg | |
96 | %{_iconsdir}/hicolor/22x22/actions/minuet-chords.svg | |
97 | %{_iconsdir}/hicolor/22x22/actions/minuet-intervals.svg | |
98 | %{_iconsdir}/hicolor/22x22/actions/minuet-rhythms.svg | |
99 | %{_iconsdir}/hicolor/22x22/actions/minuet-scales.svg | |
100 | %{_iconsdir}/hicolor/22x22/apps/minuet.png | |
101 | %{_iconsdir}/hicolor/22x22/apps/minuet.svg | |
102 | %{_iconsdir}/hicolor/32x32/apps/minuet.png | |
103 | %{_iconsdir}/hicolor/32x32/apps/minuet.svg | |
104 | %{_iconsdir}/hicolor/48x48/apps/minuet.png | |
105 | %{_iconsdir}/hicolor/48x48/apps/minuet.svg | |
106 | %{_iconsdir}/hicolor/64x64/apps/minuet.png | |
107 | %{_iconsdir}/hicolor/64x64/apps/minuet.svg | |
108 | %{_iconsdir}/hicolor/scalable/apps/minuet.svgz | |
109 | %{_datadir}/metainfo/org.kde.minuet.appdata.xml | |
110 | %{_datadir}/minuet | |
111 | ||
112 | %files devel | |
113 | %defattr(644,root,root,755) | |
114 | %{_includedir}/minuet | |
115 | %{_libdir}/libminuetinterfaces.so |