Name: pianobooster Summary: A MIDI file player that teaches you how to play the piano Version: 0.6.2 Release: 3%{?dist} License: GPLv3+ Group: Applications/Multimedia URL: http://pianobooster.sourceforge.net/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.tgz Source1: %{name}.desktop BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: cmake BuildRequires: qt4-devel BuildRequires: desktop-file-utils BuildRequires: alsa-lib-devel %description A MIDI file player/game that displays the musical notes AND teaches you how to play the piano. PianoBooster is a fun way of playing along with a musical accompaniment and at the same time learning the basics of reading musical notation. The difference between playing along to a CD or a standard MIDI file is that PianoBooster listens and reacts to what you are playing on a MIDI keyboard. %prep %setup -q -n %{name}-src-%{version} sed -i -e 's|\r||g' README.txt sed -i -e 's|\r||g' license.txt %build pushd build %cmake ../src make %{?_smp_mflags} popd %install rm -rf $RPM_BUILD_ROOT pushd build install -d $RPM_BUILD_ROOT/%{_bindir} install %{name} $RPM_BUILD_ROOT/%{_bindir} popd install -d $RPM_BUILD_ROOT%{_datadir}/applications desktop-file-install \ --dir %{buildroot}%{_datadir}/applications \ %{SOURCE1} install -d $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps install -p src/images/Logo32x32.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/%{name}.png install -d $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps install -p src/images/logo64x64.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/64x64/apps/%{name}.png %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 license.txt gplv3.txt README.txt %{_bindir}/* %{_datadir}/applications/* %{_datadir}/icons/hicolor/*/apps/* %changelog * Sun Apr 12 2009 Christian Krause - 0.6.2-3 - use %%{name} macro - provide .desktop file as separate sourc1 - use sed instead of dos2unix - use install -p to preserve the timestamps - add GenericName to desktop file - fix typo in icon installation - enabled parallel build * Tue Apr 07 2009 Christian Krause - 0.6.2-2 Initial spec file.