File score-reading-trainer.spec of Package score-reading-trainer

#
# spec file for package score-reading-trainer
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#



Name:           score-reading-trainer
%define         realname ScoreReadingTrainer
Version:        0.1.3
Release:        1
Summary:        Improve your musical score reading skills
Url:            http://scret.sf.net
License:        GPL
Group:          Amusements/Teaching/Other 
Vendor:         openSUSE-Education
Source:         %realname-%version.tar.bz2
Patch1:         ScoreReadingTrainer-0.1.3-desktop.patch
BuildRequires:  gcc-c++ libstdc++-devel
BuildRequires:  kdelibs3-devel update-desktop-files
%if 0%{?suse_version}
BuildRequires:  update-desktop-files
%endif
%if 0%{?suse_version} > 1020
BuildRequires:  fdupes
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define         kdeprefix /opt/kde3

%description
Score Reading Trainer helps you improve your (musical) score reading skills by
practicing with random scores.

It works in a very simple way, you choose the clef, the key and the accidentals
you want to practice as well as thee range of notes and then, the program
generates a on-screen score with that parameters but randomizing the notes and
the accidentals (and everything else that is randomizable). The keys of the
keyboard are mapped to the notes like in a piano (it would be nice to support
midi in the future) and all you have to do, is press the right key for the
first note you see in the score on the screen. If you pressed the right key,
the note will disapear and replaced by the second one, a diferent note, and you
have to repeat the process. As the notes are generated randomly, there's no way
one can predict the following note and since several notes (as much as the
screen allows) are on the screen, one can also train pre-reading (reading ahead
of the current one) of the notes.


Author:
-------
    José Pablo Ezequiel "Pupeno" Fernández 


%prep
%setup -q -n %{realname}-%{version}
%patch1 -p1
. /etc/opt/kde3/common_options
update_admin

%build
. /etc/opt/kde3/common_options
%configure $configkde
make %{?jobs:-j%jobs}

%install
. /etc/opt/kde3/common_options
%__make $INSTALL_TARGET DESTDIR=%{buildroot}
%if 0%{?suse_version}
%suse_update_desktop_file -n %realname Education Teaching
%endif
%if 0%{?suse_version} > 1020
%fdupes -s %buildroot
%endif
%find_lang %realname

%clean
rm -rf $RPM_BUILD_ROOT 

%files -f %realname.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING 
%kdeprefix/bin/ScoreReadingTrainer
%kdeprefix/share/applications/kde/ScoreReadingTrainer.desktop
%kdeprefix/share/apps/ScoreReadingTrainer
%kdeprefix/share/icons/*/*/*/ScoreReadingTrainer.png

%changelog
openSUSE Build Service is sponsored by