Name: jack-keyboard Version: 2.5 Release: 2%{?dist} Summary: Virtual keyboard for JACK MIDI Group: Applications/Multimedia License: BSD URL: http://pin.if.uz.zgora.pl/~trasz/jack-keyboard/ Source0: http://pin.if.uz.zgora.pl/~trasz/%{name}/%{name}-%{version}.tar.gz # Icon is derived from the image on the website: Source1: %{name}.png BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: desktop-file-utils BuildRequires: gtk2-devel BuildRequires: jack-audio-connection-kit-devel BuildRequires: lash-devel %description jack-keyboard is a virtual MIDI keyboard - a program that allows you to send JACK MIDI events using your PC keyboard. It's somewhat similar to vkeybd, except it uses JACK MIDI instead of ALSA, and the default keyboard mapping is much better - it uses the same layout as trackers (like Impulse Tracker) did, so you have two and half octaves under your fingers. %prep %setup -q # Add GenericName to the desktop file echo "GenericName=Virtual MIDI Keyboard" >> src/%{name}.desktop # To suppress d-f-i warning sed -i 's|\.png||' src/%{name}.desktop %build %configure make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT rm -fr $RPM_BUILD_ROOT/%{_datadir}/pixmaps/ mkdir -p $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/72x72/apps/ install -pm 644 %{SOURCE1} \ $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/72x72/apps/ desktop-file-install \ --dir=$RPM_BUILD_ROOT%{_datadir}/applications \ --remove-category=Application \ $RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop %post touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc AUTHORS COPYING NEWS README TODO %{_bindir}/%{name} %{_mandir}/man1/%{name}* %{_datadir}/icons/hicolor/72x72/apps/%{name}.png %{_datadir}/applications/%{name}.desktop %changelog * Fri Mar 20 2009 Orcan Ogetbil - 2.5-2 - Update GenericName * Fri Mar 20 2009 Orcan Ogetbil - 2.5-1 - Initial build