diff --git a/README.md b/README.md index 32cefb1..9661d15 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # gnusolfege +GNU Solfege is a computer program written to help you practice ear training. +It can be useful when practicing the simple and mechanical exercises. + diff --git a/gnusolfege-3.16.2-use_mktemp.patch b/gnusolfege-3.16.2-use_mktemp.patch new file mode 100644 index 0000000..3ed8ad1 --- /dev/null +++ b/gnusolfege-3.16.2-use_mktemp.patch @@ -0,0 +1,19 @@ +--- solfege-3.16.2/exercises/standard/lesson-files/bin/csound-play-harmonic-interval.sh.orig 2005-09-09 16:03:12.000000000 +0200 ++++ solfege-3.16.2/exercises/standard/lesson-files/bin/csound-play-harmonic-interval.sh 2005-09-09 16:05:31.000000000 +0200 +@@ -10,13 +10,9 @@ + + set -e + +-TMPDIR=/tmp/solfegetmpdir.$$ +- +-umask 027 # or 077 +-rm -rf $TMPDIR +-mkdir $TMPDIR || exit 1 ++TMPDIR=`mktemp -d /tmp/$0.XXXXXX` || exit 1 ++trap 'rm -rf $TMPDIR' 0 1 2 3 6 7 13 15 + + sed -e "s/440/$1/" -e "s/660/$2/" share/fil1.sco >$TMPDIR/solfege-csound.sco + csound share/fil1.orc $TMPDIR/solfege-csound.sco -W -g -o devaudio +-rm -rf $TMPDIR + +../BUILD/solfege-3.16.2/exercises/standard/lesson-files/bin/csound-play-harmonic-interval.sh diff --git a/gnusolfege.spec b/gnusolfege.spec new file mode 100644 index 0000000..05dc055 --- /dev/null +++ b/gnusolfege.spec @@ -0,0 +1,118 @@ +Name: gnusolfege +Version: 3.20.8 +Release: 1mamba +Summary: GNU Solfege is a computer program written to help you practice ear training +Group: Graphical Desktop/Applications/Educational +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.solfege.org/ +Source: http://downloads.sourceforge.net/sourceforge/solfege/solfege-%{version}.tar.gz +Patch: %{name}-3.16.2-use_mktemp.patch +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: alsa-utils +BuildRequires: liblame-devel +BuildRequires: mpg123 +BuildRequires: pygtk-devel +BuildRequires: pyorbit-devel +BuildRequires: python-gnome-extras-devel +BuildRequires: timidity +BuildRequires: vorbis-tools +## AUTOBUILDREQ-END +BuildRequires: python +BuildRequires: libpython-devel +BuildRequires: swig +BuildRequires: gettext-devel +Requires: pygtk +Requires: python-gnome-extras +Requires: pyorbit +Requires: timidity +Requires: liblame +Requires: vorbis-tools +Requires: alsa-utils +Requires: mpg123 +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +GNU Solfege is a computer program written to help you practice ear training. +It can be useful when practicing the simple and mechanical exercises. + +%prep +%setup -q -n solfege-%{version} +%patch -p1 + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf %{buildroot} +%makeinstall + +sed -i -e 's|%{buildroot}||' %{buildroot}%{_datadir}/solfege/*/*.py + +%{find_lang} solfege + +%clean +[ "%{buildroot}" != / ] && rm -rf %{buildroot} + +%files -f solfege.lang +%defattr(-,root,root) +%{_bindir}/* +%{_datadir}/applications/solfege.desktop +%{_datadir}/pixmaps/solfege.svg +%dir %{_datadir}/solfege +%{_datadir}/solfege/* +%dir %{_libdir}/solfege +%attr(755,root,root) %{_libdir}/solfege/*.so +%{_sysconfdir}/* +%{_mandir}/man1/* +%doc AUTHORS COPYING ChangeLog README + +%changelog +* Sun Jan 20 2013 Automatic Build System 3.20.8-1mamba +- automatic version update by autodist + +* Fri Mar 11 2011 Automatic Build System 3.19.5-1mamba +- automatic update by autodist + +* Wed Jan 05 2011 Automatic Build System 3.19.2-1mamba +- automatic update by autodist + +* Sun Nov 28 2010 Automatic Build System 3.19.1-1mamba +- automatic update by autodist + +* Sat Oct 16 2010 Automatic Build System 3.18.4-1mamba +- automatic update by autodist + +* Sat May 29 2010 Automatic Build System 3.16.2-1mamba +- automatic update by autodist + +* Sat Aug 22 2009 Automatic Build System 3.15.2-1mamba +- automatic update by autodist + +* Thu Jul 02 2009 Automatic Build System 3.15.1-1mamba +- automatic update by autodist + +* Mon Mar 23 2009 Silvan Calarco 3.13.1-1mamba +- automatic update by autodist + +* Sun Jan 18 2009 gil 3.12.1-1mamba +- update to 3.12.1 + +* Fri Nov 11 2005 Silvan Calarco 3.0.4-1qilnx +- update to version 3.0.4 by autospec + +* Thu Oct 27 2005 Alessandro Ramazzina 2.4.0-4qilnx +- added pyorbit as require + +* Fri Sep 09 2005 Davide Madrisan 2.4.0-3qilnx +- several specfile fixes +- create secure temporary files in `csound-play-harmonic-interval.sh' + +* Thu Jul 18 2005 Massimo Pintore 2.4.0-2qilnx +- added gnome-python-extras as requirement + +* Mon Jul 18 2005 Alessandro Ramazzina 2.4.0-1qilnx +- package created by autospec