[2776] | 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/カラオケプレーヤー |
---|
[6785] | 10 | Version: 2.4.0 |
---|
[10763] | 11 | Release: 2%{?_dist_release} |
---|
[2776] | 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 |
---|
[6785] | 27 | BuildRequires: soprano-devel |
---|
[2776] | 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 |
---|
[6785] | 129 | %{_datadir}/dbus-1/interfaces/*.xml |
---|
[2776] | 130 | %{_datadir}/kde4/apps/kmid/ |
---|
[6785] | 131 | %{_datadir}/kde4/apps/kmid_part/kmid_part.rc |
---|
[2776] | 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 |
---|
[10763] | 151 | * Fri Sep 02 2016 Toshiaki Ara <ara_t@384.jp> 2.4.0-2 |
---|
| 152 | - rebuild with gcc-5.4.0 |
---|
| 153 | |
---|
[6785] | 154 | * Mon Sep 03 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.4.0-1 |
---|
| 155 | - update to 2.4.0 |
---|
| 156 | - remove Patch0 (kmid-2.3.0-kde#240394.patch) |
---|
| 157 | - add BuildRequires: soprano-devel |
---|
| 158 | |
---|
[2776] | 159 | * Sat Feb 26 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.3.0-4 |
---|
| 160 | - removed --with-kde from %%find_lang |
---|
| 161 | |
---|
| 162 | * Sun Jan 16 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.3.0-3 |
---|
| 163 | - Initial build for Vine Linux |
---|
| 164 | |
---|
| 165 | * Fri May 28 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 2.3.0-2 |
---|
| 166 | - Fix crash in ALSA backend due to reloadDeviceList (kde#240394, upstream patch) |
---|
| 167 | |
---|
| 168 | * Fri May 28 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 2.3.0-1 |
---|
| 169 | - Update to 2.3.0 (new versioning scheme) |
---|
| 170 | - BR drumstick-devel >= 0.3 |
---|
| 171 | - Requires: drumstick >= 0.3 |
---|
| 172 | - Drop obsolete drumstick-version patch |
---|
| 173 | - Examples now partly CC-BY-SA, partly GPLv2+ (instead of CC-BY) |
---|
| 174 | - Use _kde4_version macro |
---|
| 175 | - Add -devel and -libs subpackages |
---|
| 176 | - Package COPYING |
---|
| 177 | |
---|
| 178 | * Tue Feb 09 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.2.1-2 |
---|
| 179 | - Requires: drumstick >= 0.2.99-0.3 |
---|
| 180 | |
---|
| 181 | * Tue Feb 09 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.2.1-1 |
---|
| 182 | - Update to 0.2.1 |
---|
| 183 | - Drop upstreamed timidity-pulseaudio patch |
---|
| 184 | - Drop dont-translate-output-names patch, should not be needed anymore |
---|
| 185 | - BR drumstick-devel >= 0.2.99-0.3 (0.2.1 needs the 20100208 snapshot) |
---|
| 186 | - relax drumstick version check in CMakeLists.txt as 0.3 is not out yet |
---|
| 187 | |
---|
| 188 | * Fri Feb 05 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.2.0-3 |
---|
| 189 | - Don't translate output names, breaks autospawning sequencers |
---|
| 190 | |
---|
| 191 | * Sun Jan 31 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.2.0-2 |
---|
| 192 | - Support PulseAudio when autospawning TiMidity++ (-OO -opulse switches) |
---|
| 193 | |
---|
| 194 | * Sun Jan 31 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.2.0-1 |
---|
| 195 | - Update to 0.2.0 |
---|
| 196 | - The examples with copyright issues have been dropped by upstream |
---|
| 197 | - BR drumstick-devel instead of aseqmm-devel |
---|
| 198 | |
---|
| 199 | * Wed Jan 27 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.1.1-4 |
---|
| 200 | - Fix the kde4-config output parsing for 4.4 ("KDE Development Platform:") |
---|
| 201 | |
---|
| 202 | * Wed Jan 27 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.1.1-3 |
---|
| 203 | - Correctly require at least the kdelibs version used for building |
---|
| 204 | |
---|
| 205 | * Wed Jan 27 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.1.1-2 |
---|
| 206 | - Remove nonsense Requires: kdelibs4 >= %%{version}, as %%{version} is 0.1.1 |
---|
| 207 | |
---|
| 208 | * Fri Jan 22 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.1.1-1 |
---|
[6785] | 209 | - First Fedora package, replaces kmid |
---|