05b6588
Name:		jack-keyboard
05b6588
Version:	2.5
6ced180
Release:	6%{?dist}
05b6588
Summary:	Virtual keyboard for JACK MIDI
05b6588
Group:		Applications/Multimedia
05b6588
License:	BSD
05b6588
URL:		http://pin.if.uz.zgora.pl/~trasz/jack-keyboard/
05b6588
Source0:	http://pin.if.uz.zgora.pl/~trasz/%{name}/%{name}-%{version}.tar.gz
05b6588
# Icon is derived from the image on the website:
05b6588
Source1:	%{name}.png
49eaf22
# Add support for Dvorak keyboard. Patch sent upstream via email
49eaf22
# (no bugtracker):
49eaf22
Patch0:		%{name}-dvorak.patch
05b6588
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
05b6588
05b6588
BuildRequires:	desktop-file-utils
05b6588
BuildRequires:	gtk2-devel
05b6588
BuildRequires:	jack-audio-connection-kit-devel
05b6588
BuildRequires:	lash-devel
05b6588
05b6588
%description
05b6588
jack-keyboard is a virtual MIDI keyboard - a program that allows you to send
05b6588
JACK MIDI events using your PC keyboard. It's somewhat similar to vkeybd,
05b6588
except it uses JACK MIDI instead of ALSA, and the default keyboard mapping is
05b6588
much better - it uses the same layout as trackers (like Impulse Tracker) did,
05b6588
so you have two and half octaves under your fingers.
05b6588
05b6588
%prep
05b6588
%setup -q
49eaf22
%patch0 -p1 -b .dvorak
05b6588
05b6588
# Add GenericName to the desktop file
05b6588
echo "GenericName=Virtual MIDI Keyboard" >> src/%{name}.desktop
05b6588
05b6588
# To suppress d-f-i warning
05b6588
sed -i 's|\.png||' src/%{name}.desktop
05b6588
05b6588
%build
05b6588
%configure
05b6588
make %{?_smp_mflags}
05b6588
05b6588
05b6588
%install
05b6588
rm -rf $RPM_BUILD_ROOT
05b6588
make install DESTDIR=$RPM_BUILD_ROOT
05b6588
05b6588
rm -fr $RPM_BUILD_ROOT/%{_datadir}/pixmaps/
05b6588
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/72x72/apps/
05b6588
install -pm 644	%{SOURCE1} \
05b6588
	$RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/72x72/apps/
05b6588
05b6588
desktop-file-install						\
05b6588
	--dir=$RPM_BUILD_ROOT%{_datadir}/applications		\
05b6588
	--remove-category=Application				\
3d16bb7
	--add-category=X-Jack					\
05b6588
	$RPM_BUILD_ROOT/%{_datadir}/applications/%{name}.desktop
05b6588
05b6588
05b6588
%post
05b6588
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
05b6588
05b6588
%postun
05b6588
if [ $1 -eq 0 ] ; then
05b6588
	touch --no-create %{_datadir}/icons/hicolor &>/dev/null
05b6588
	gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
05b6588
fi
05b6588
05b6588
%posttrans
05b6588
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
05b6588
05b6588
05b6588
%clean
05b6588
rm -rf $RPM_BUILD_ROOT
05b6588
05b6588
05b6588
%files
05b6588
%defattr(-,root,root,-)
05b6588
%doc AUTHORS COPYING NEWS README TODO
05b6588
%{_bindir}/%{name}
05b6588
%{_mandir}/man1/%{name}*
05b6588
%{_datadir}/icons/hicolor/72x72/apps/%{name}.png
05b6588
%{_datadir}/applications/%{name}.desktop
05b6588
05b6588
05b6588
%changelog
6ced180
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-6
6ced180
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
6ced180
49eaf22
* Sat Dec 19 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 2.5-5
49eaf22
- Add dvorak keyboard support
49eaf22
3d16bb7
* Wed Aug 05 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 2.5-4
3d16bb7
- Update the .desktop file
3d16bb7
5c63d7b
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-3
5c63d7b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
5c63d7b
05b6588
* Fri Mar 20 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 2.5-2
05b6588
- Update GenericName
05b6588
05b6588
* Fri Mar 20 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 2.5-1
05b6588
- Initial build