1 | %if %{?_dist_release} == "vl5" |
---|
2 | %define kde KDE4 |
---|
3 | %else |
---|
4 | %define kde KDE |
---|
5 | %endif |
---|
6 | |
---|
7 | Name: kmid2 |
---|
8 | Summary: A MIDI/karaoke player for %{kde} |
---|
9 | Summary(ja): %{kde} 向け MIDI/カラオケプレーヤー |
---|
10 | Version: 2.4.0 |
---|
11 | Release: 1%{?_dist_release} |
---|
12 | |
---|
13 | Group: Applications/Multimedia |
---|
14 | # GPLv2+ for the code and the MMA examples, CC-BY-SA for the MIDI examples |
---|
15 | License: GPLv2+ and CC-BY-SA |
---|
16 | URL: http://userbase.kde.org/KMid2 |
---|
17 | |
---|
18 | Source0: http://downloads.sourceforge.net/project/%{name}/%{version}/kmid-%{version}.tar.bz2 |
---|
19 | |
---|
20 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
21 | |
---|
22 | BuildRequires: kdelibs4-devel |
---|
23 | #BuildRequires: kde-filesystem |
---|
24 | BuildRequires: cmake |
---|
25 | BuildRequires: alsa-lib-devel |
---|
26 | BuildRequires: drumstick-devel >= 0.3 |
---|
27 | BuildRequires: soprano-devel |
---|
28 | BuildRequires: gettext |
---|
29 | BuildRequires: desktop-file-utils |
---|
30 | |
---|
31 | #{?_kde4_macros_api:Requires: kde4-macros(api) = %{_kde4_macros_api}} |
---|
32 | #{?_kde4_version:Requires: kdelibs4%{?_isa} >= %{_kde4_version}} |
---|
33 | Requires: oxygen-icon-theme |
---|
34 | Requires: drumstick >= 0.3 |
---|
35 | Requires: %{name}-libs = %{version}-%{release} |
---|
36 | |
---|
37 | Obsoletes: kmid < 2.0-1 |
---|
38 | Provides: kmid = %{version}-%{release} |
---|
39 | |
---|
40 | %description |
---|
41 | KMid2 is a MIDI/karaoke file player, with configurable midi mapper, real |
---|
42 | Session Management, drag & drop, customizable fonts, etc. It has a very |
---|
43 | nice interface which let you easily follow the tune while changing the |
---|
44 | color of the lyrics. |
---|
45 | It supports output through external synthesizers, AWE, FM and GUS cards. |
---|
46 | It also has a keyboard view to see the notes played by each instrument. |
---|
47 | |
---|
48 | %package libs |
---|
49 | Summary: Runtime libraries for %{name} |
---|
50 | Summary(ja): %{name} のランタイムライブラリ |
---|
51 | Group: System Environment/Libraries |
---|
52 | License: GPLv2+ |
---|
53 | |
---|
54 | #{?_kde4_macros_api:Requires: kde4-macros(api) = %{_kde4_macros_api}} |
---|
55 | #{?_kde4_version:Requires: kdelibs4%{?_isa} >= %{_kde4_version}} |
---|
56 | |
---|
57 | %description libs |
---|
58 | %{summary}. |
---|
59 | |
---|
60 | %package devel |
---|
61 | Summary: Development files for %{name} |
---|
62 | Summary(ja): %{name} の開発用ファイル |
---|
63 | Group: Development/Libraries |
---|
64 | License: GPLv2+ |
---|
65 | |
---|
66 | Requires: %{name}-libs = %{version}-%{release} |
---|
67 | |
---|
68 | Obsoletes: kmid-devel < 2.0-1 |
---|
69 | Provides: kmid-devel = %{version}-%{release} |
---|
70 | |
---|
71 | %description devel |
---|
72 | %{summary}. |
---|
73 | |
---|
74 | %prep |
---|
75 | %setup -q -n kmid-%{version} |
---|
76 | # zap bundled copy of drumstick to guarantee it's never used |
---|
77 | rm -rf drumstick |
---|
78 | |
---|
79 | |
---|
80 | %build |
---|
81 | mkdir -p %{_target_platform} |
---|
82 | pushd %{_target_platform} |
---|
83 | %cmake \ |
---|
84 | -DCMAKE_BUILD_TYPE=release \ |
---|
85 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
86 | -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \ |
---|
87 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \ |
---|
88 | -DLIB_INSTALL_DIR:PATH=%{_libdir} \ |
---|
89 | -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \ |
---|
90 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
91 | .. |
---|
92 | popd |
---|
93 | |
---|
94 | make %{?_smp_mflags} -C %{_target_platform} |
---|
95 | |
---|
96 | |
---|
97 | %install |
---|
98 | rm -rf %{buildroot} |
---|
99 | make install DESTDIR=%{buildroot} -C %{_target_platform} |
---|
100 | desktop-file-validate %{buildroot}%{_datadir}/applications/kde4/kmid.desktop |
---|
101 | %find_lang kmid |
---|
102 | |
---|
103 | %clean |
---|
104 | rm -rf %{buildroot} |
---|
105 | |
---|
106 | |
---|
107 | %post |
---|
108 | touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : |
---|
109 | update-desktop-database &> /dev/null || : |
---|
110 | |
---|
111 | %postun |
---|
112 | update-desktop-database &> /dev/null || : |
---|
113 | if [ $1 -eq 0 ] ; then |
---|
114 | touch --no-create %{_datadir}/icons/hicolor &>/dev/null |
---|
115 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
116 | fi |
---|
117 | |
---|
118 | %posttrans |
---|
119 | gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : |
---|
120 | |
---|
121 | %post libs -p /sbin/ldconfig |
---|
122 | %postun libs -p /sbin/ldconfig |
---|
123 | |
---|
124 | |
---|
125 | %files -f kmid.lang |
---|
126 | %defattr(-,root,root,-) |
---|
127 | %doc ChangeLog COPYING README TODO |
---|
128 | %{_bindir}/kmid |
---|
129 | %{_datadir}/dbus-1/interfaces/*.xml |
---|
130 | %{_datadir}/kde4/apps/kmid/ |
---|
131 | %{_datadir}/kde4/apps/kmid_part/kmid_part.rc |
---|
132 | %{_datadir}/applications/kde4/kmid.desktop |
---|
133 | %{_datadir}/config.kcfg/* |
---|
134 | %{_datadir}/kde4/services/* |
---|
135 | %{_datadir}/kde4/servicetypes/* |
---|
136 | %{_datadir}/icons/hicolor/*/apps/* |
---|
137 | %{_libdir}/kde4/* |
---|
138 | %doc %{_docdir}/HTML/*/kmid/ |
---|
139 | |
---|
140 | %files libs |
---|
141 | %defattr(-,root,root,-) |
---|
142 | %{_libdir}/libkmidbackend.so.* |
---|
143 | |
---|
144 | %files devel |
---|
145 | %defattr(-,root,root,-) |
---|
146 | %{_libdir}/libkmidbackend.so |
---|
147 | %{_includedir}/kde4/kmid/ |
---|
148 | |
---|
149 | |
---|
150 | %changelog |
---|
151 | * Mon Sep 03 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.4.0-1 |
---|
152 | - update to 2.4.0 |
---|
153 | - remove Patch0 (kmid-2.3.0-kde#240394.patch) |
---|
154 | - add BuildRequires: soprano-devel |
---|
155 | |
---|
156 | * Sat Feb 26 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.3.0-4 |
---|
157 | - removed --with-kde from %%find_lang |
---|
158 | |
---|
159 | * Sun Jan 16 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.3.0-3 |
---|
160 | - Initial build for Vine Linux |
---|
161 | |
---|
162 | * Fri May 28 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 2.3.0-2 |
---|
163 | - Fix crash in ALSA backend due to reloadDeviceList (kde#240394, upstream patch) |
---|
164 | |
---|
165 | * Fri May 28 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 2.3.0-1 |
---|
166 | - Update to 2.3.0 (new versioning scheme) |
---|
167 | - BR drumstick-devel >= 0.3 |
---|
168 | - Requires: drumstick >= 0.3 |
---|
169 | - Drop obsolete drumstick-version patch |
---|
170 | - Examples now partly CC-BY-SA, partly GPLv2+ (instead of CC-BY) |
---|
171 | - Use _kde4_version macro |
---|
172 | - Add -devel and -libs subpackages |
---|
173 | - Package COPYING |
---|
174 | |
---|
175 | * Tue Feb 09 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.2.1-2 |
---|
176 | - Requires: drumstick >= 0.2.99-0.3 |
---|
177 | |
---|
178 | * Tue Feb 09 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.2.1-1 |
---|
179 | - Update to 0.2.1 |
---|
180 | - Drop upstreamed timidity-pulseaudio patch |
---|
181 | - Drop dont-translate-output-names patch, should not be needed anymore |
---|
182 | - BR drumstick-devel >= 0.2.99-0.3 (0.2.1 needs the 20100208 snapshot) |
---|
183 | - relax drumstick version check in CMakeLists.txt as 0.3 is not out yet |
---|
184 | |
---|
185 | * Fri Feb 05 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.2.0-3 |
---|
186 | - Don't translate output names, breaks autospawning sequencers |
---|
187 | |
---|
188 | * Sun Jan 31 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.2.0-2 |
---|
189 | - Support PulseAudio when autospawning TiMidity++ (-OO -opulse switches) |
---|
190 | |
---|
191 | * Sun Jan 31 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.2.0-1 |
---|
192 | - Update to 0.2.0 |
---|
193 | - The examples with copyright issues have been dropped by upstream |
---|
194 | - BR drumstick-devel instead of aseqmm-devel |
---|
195 | |
---|
196 | * Wed Jan 27 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.1.1-4 |
---|
197 | - Fix the kde4-config output parsing for 4.4 ("KDE Development Platform:") |
---|
198 | |
---|
199 | * Wed Jan 27 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.1.1-3 |
---|
200 | - Correctly require at least the kdelibs version used for building |
---|
201 | |
---|
202 | * Wed Jan 27 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.1.1-2 |
---|
203 | - Remove nonsense Requires: kdelibs4 >= %%{version}, as %%{version} is 0.1.1 |
---|
204 | |
---|
205 | * Fri Jan 22 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.1.1-1 |
---|
206 | - First Fedora package, replaces kmid |
---|