File solfege.spec of Package solfege

#
# spec file for package solfege (Version 3.10.4)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           solfege
Summary:        Eartraining program
Version:        3.10.4
Release:        1
License:        GPL v2 or later
Group:          Productivity/Multimedia/Sound/Utilities
Url:            http://www.solfege.org/
BuildRequires:  docbook-xsl-stylesheets fdupes gnome-doc-utils-devel libxslt python-devel update-desktop-files
%if %suse_version > 1010
BuildRequires:  python-gtk-devel
%else
BuildRequires:  gtk2-devel python-gtk
%endif
%define _use_internal_dependency_generator 0
%define my_provides /tmp/my-provides
Source:         %{name}-%{version}.tar.bz2
Patch:          solfege-configure-fix.dif
Requires:       python-gtk 
Recommends:     timidity
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Solfege is an eartraining program for X written in python, using the
GTK+ and GNOME libraries.



Authors:
--------
    Tom Cato Amundsen <tca@gnu.org>

%prep
%setup -q
%patch

%build
autoreconf -fi
%configure \
    --enable-docbook-stylesheet=/usr/share/xml/docbook/stylesheet/nwalsh/current/html/chunker.xsl
make %{?jobs:-j%jobs}

%install
%makeinstall
# exclude plugins from the provide-list
cat << EOF > %{my_provides}
grep -v $RPM_BUILD_ROOT%{_libdir}/solfege | %{__find_provides}
EOF
chmod 755 %{my_provides}
%define __find_provides %{my_provides}
%suse_update_desktop_file solfege Education X-SuSE-Music
install -m 644 -D graphics/solfege.png \
  $RPM_BUILD_ROOT%{_datadir}/pixmaps/solfege.png
%find_lang %{name}
%fdupes -s $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT
rm -f %{my_provides}

%files -f %{name}.lang
%defattr(-, root, root)
%doc AUTHORS COPYING FAQ README changelog
%doc %{_mandir}/man?/*
%{_bindir}/*
%{_datadir}/solfege
%{_libdir}/solfege
%{_sysconfdir}/solfege*
%{_datadir}/pixmaps/*
%{_datadir}/applications/*.desktop

%changelog
* Wed Oct 01 2008 tiwai@suse.de
- updated to version 3.10.4:
  * Fix: run more than one singinterval test before restarting
  the program
  * More in release notes:
  http://www.solfege.org/Solfege/ReleaseNotes
* Tue Mar 18 2008 lrupp@suse.de
- updated to version 3.10.3:
  * practisesheetdlg.py: label string spelling fix
  * bugfix: fix the 3 most difficult csound exercises,
  they where unusable
  * Added an envelope to the CSound instrument used by the
  intonation exercises to give the tone an attach and release
  time.
  * Updated translations
  * Updated the user manual
  * First very simple cadense exercise
  * Check that user/lowest_pitch and user/highest_pitch is valid
  notenames at startup.
- recommend timidity
- build parallel
* Mon Feb 11 2008 tiwai@suse.de
- updated to version 3.10.2:
  * Updated translations
  * Added automatically check for new translations
  * Some cleanup the the makefile rules that build the users
* Fri Feb 08 2008 tiwai@suse.de
- updated to version 3.10.1:
  * minor installer fixes
* Mon Feb 04 2008 tiwai@suse.de
- updated to version 3.10.0:
  * Ear training test print out
  * Lots of internal fixes.
  * Use the Translation Project for all translations.
  * Lots of bug fixes
* Thu Jul 19 2007 tiwai@suse.de
- updated to version 3.8.2:
  * Vietnamese translations
  * Updates to the french translation
  * Bugfix to the lesson file header parser, so that whitespace
  is optional after header, making "header{" work as expected.
* Wed Jun 20 2007 tiwai@suse.de
- updated to version 3.8.1:
  * Bugfix for pygtk 2.6
  * Make the Escape button to close the export dialog
  * Merge autogen.sh tweak from solfege.dev
  * Fix a bug in ask_for_names_changed method
  * MusicDisplaye rat import fix
  * Added a few Norwegian translation
- clean up spec file, use fdupes and find_lang
* Tue May 15 2007 tiwai@suse.de
- updated to version 3.8.0:
  * added the rhythmtapping and rhythmtapping2 modules
  * menu reorganisation
  * export training set feature
  * better error messages if you try to write lesson files
* Thu Mar 15 2007 tiwai@suse.de
- fix build (incompatibility with the recent xml2po).
* Wed Feb 14 2007 tiwai@suse.de
- updated to verision 3.6.5:
  * make osutils.run_external_program work in MS Windows
  * Handle empty string as .wav or .midi file player
  * Unicode fixes for dataparser, lessonfile and
  HarmonicProgressionLabel
  * Updated de.po from Marc Schettke
  * fr.po: updates by Patrick Ficheux
  * added pt_BR translations by Elias Dorneles da Silveira Junior
  * help/Makefile bugfix and updated help/README
  * singinterval: no double accidentals
  * make click on web links in the help browser work again.
* Tue Dec 19 2006 tiwai@suse.de
- updated to version 3.6.4:
  * preferences window fix
  * fix source code encoding
  * fix some po files
* Tue Nov 07 2006 ro@suse.de
- fix icon permissions
* Wed Oct 18 2006 tiwai@suse.de
- updated to version 3.6.3:
  * Added small section about learning trees to the user manual
  * create .solfege/learningtrees if it does not exist
  * Ask if to save the current learning tree
  * po file updates
  * Learning tree editor improvements
* Thu Oct 12 2006 tiwai@suse.de
- updated to version 3.6.1:
  * Add missing music displayer to one scale exercise (sc-maj)
  * Updated italian translation
  * Even more new scale exercises
  * Move lesson file includes to lesson-files/include
  * Add music displayer to the harmonic progression exercises
  * Fix rounding error in auto_new_question timing
  * Lessonfiles should take the arpeggio tempo from the rc file
* Thu Oct 05 2006 tiwai@suse.de
- updated to version 3.6.0:
  * Added the elembuilder module
  * lots of new scale exercises
  * Bug fixes and minor tweaks.
* Fri Aug 18 2006 aj@suse.de
- Cleanup BuildRequires.
* Wed Aug 16 2006 tiwai@suse.de
- updated to version 3.4.2:
  * fix random_transpose=yes...
  * learningtree editor fix
  * Fix add lesson learning tree editor bug.
  * Added lessons to practise intervals from second to octave.
  * Added missing tests from 2 harmonic interval exercises.
* Wed Aug 16 2006 cthiel@suse.de
- buildrequire python-gtk-devel instead of python-gtk
* Tue Jul 04 2006 tiwai@suse.de
- updated to version 3.4.0:
  * A new nameinterval exercise module with exercises.
  * We can have more than one menu with exercises.
  * Fix for that long lasting MS Windows permission bug.
* Tue May 16 2006 tiwai@suse.de
- updated to version 3.2.1
  * major updates, see ChangeLog for details
- enable XML documents via gnome-doc-utils
- clean up of BuildRequires
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jan 11 2006 tiwai@suse.de
- updated to version 3.0.5
* Thu Oct 20 2005 tiwai@suse.de
- updated to version 3.0.3.
* Mon Feb 14 2005 tiwai@suse.de
- updated to version 2.1.90.
  using easybuild tarball.
* Wed Nov 24 2004 tiwai@suse.de
- Updated to version 2.0.6.
- Fixed strict-aliasing compile warnings.
* Mon Nov 01 2004 mmj@suse.de
- locale rename no to nb
* Thu Oct 14 2004 ro@suse.de
- added libgcrypt, libgpg-error to neededforbuild
* Fri Sep 17 2004 ro@suse.de
- added docbook_4 sgml-skel to neededforbuild
* Thu Aug 05 2004 tiwai@suse.de
- updated to version 2.0.5.
* Mon Feb 16 2004 tiwai@suse.de
- updated to version 2.0.4 (major update).
* Sun Jan 11 2004 adrian@suse.de
- build as user
* Thu Aug 28 2003 tiwai@suse.de
- fixed the module path name for the new SWIG (bug #29550).
- fixed the warning popup in operation.
* Mon Aug 11 2003 adrian@suse.de
- add Categories
* Fri Jul 25 2003 tiwai@suse.de
- fixed the gnome application path.
- fixed the detectio of python directories.
* Tue Jul 22 2003 tiwai@suse.de
- initial version: 1.4.10.
openSUSE Build Service is sponsored by