diff --git a/README.md b/README.md index fd6f7b8..f70af2d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,16 @@ # tuxguitar +With TuxGuitar, you will be able to compose music using the following features: + +* Tablature editor +* Score Viewer +* Multitrack display +* Autoscroll while playing +* Note duration management +* Various effects (bend, slide, vibrato, hammer-on/pull-off) +* Support for triplets (5,6,7,9,10,11,12) +* Repeat open and close +* Time signature management +* Tempo management +* Imports and exports gp3,gp4 and gp5 files + diff --git a/tuxguitar-1.2-buildfile_fix.patch b/tuxguitar-1.2-buildfile_fix.patch new file mode 100644 index 0000000..2738f33 --- /dev/null +++ b/tuxguitar-1.2-buildfile_fix.patch @@ -0,0 +1,116 @@ +--- tuxguitar-src-1.2.orig/build_gcj.sh 2009-10-31 16:13:15.000000000 +0100 ++++ tuxguitar-src-1.2/build_gcj.sh 2012-07-03 23:45:45.929240800 +0200 +@@ -5,72 +5,78 @@ + + cd ${DIR_NAME} + +-export PREFIX=./ +-export SWT_PATH=${DIR_NAME}/TuxGuitar/lib/swt.jar ++export PREFIX=/usr ++export SWT_PATH=/usr/lib/java/swt.jar + export TG_PREFIX=${DIR_NAME}/tuxguitar-1.2-linux-x86-gcj/ + export TG_SOURCE_PATH=${DIR_NAME}/TuxGuitar/src/ +-export GCJFLAGS="-fsource=1.4 -fPIC" ++export GCJFLAGS="-fbootstrap-classes -fsource=1.4 -fPIC" ++export LANGUAGE=./share/lang ++export INSTALL_LIBRARY_JNI_DIR=/usr/lib/jni ++export INSTALL_LIBRARY_DIR=/usr/share/tuxguitar/plugins ++export INSTALL_LANGUAGE_DIR="/usr/share/tuxguitar/plugins/\$(PACKAGE)/lang" ++export INSTALL_SETTINGS_DIR="/usr/share/tuxguitar/plugins/\$(PACKAGE)" ++export INSTALL_SERVICE_DIR="/usr/share/tuxguitar/plugins/\$(PACKAGE)/META-INF/services" + + make -C TuxGuitar/ +-make -C TuxGuitar/ install DESTDIR=${TG_PREFIX} +-make -C TuxGuitar/ clean ++make -C TuxGuitar/ install DESTDIR=${TG_PREFIX} PREFIX=/usr ++#make -C TuxGuitar/ clean + + make -C TuxGuitar-alsa/ +-make -C TuxGuitar-alsa/ install +-make -C TuxGuitar-alsa/ clean ++make -C TuxGuitar-alsa/ install DESTDIR=${TG_PREFIX} ++#make -C TuxGuitar-alsa/ clean + + make -C TuxGuitar-fluidsynth/ +-make -C TuxGuitar-fluidsynth/ install +-make -C TuxGuitar-fluidsynth/ clean ++make -C TuxGuitar-fluidsynth/ install DESTDIR=${TG_PREFIX} ++#make -C TuxGuitar-fluidsynth/ clean + + make -C TuxGuitar-jack/ +-make -C TuxGuitar-jack/ install +-make -C TuxGuitar-jack/ clean ++make -C TuxGuitar-jack/ install DESTDIR=${TG_PREFIX} ++#make -C TuxGuitar-jack/ clean + + make -C TuxGuitar-oss/ +-make -C TuxGuitar-oss/ install +-make -C TuxGuitar-oss/ clean ++make -C TuxGuitar-oss/ install DESTDIR=${TG_PREFIX} ++#make -C TuxGuitar-oss/ clean + + make -C TuxGuitar-compat/ +-make -C TuxGuitar-compat/ install +-make -C TuxGuitar-compat/ clean ++make -C TuxGuitar-compat/ install DESTDIR=${TG_PREFIX} ++#make -C TuxGuitar-compat/ clean + + make -C TuxGuitar-gtp/ +-make -C TuxGuitar-gtp/ install +-make -C TuxGuitar-gtp/ clean ++make -C TuxGuitar-gtp/ install DESTDIR=${TG_PREFIX} ++#make -C TuxGuitar-gtp/ clean + + make -C TuxGuitar-ptb/ +-make -C TuxGuitar-ptb/ install +-make -C TuxGuitar-ptb/ clean ++make -C TuxGuitar-ptb/ install DESTDIR=${TG_PREFIX} ++#make -C TuxGuitar-ptb/ clean + + make -C TuxGuitar-tef/ +-make -C TuxGuitar-tef/ install +-make -C TuxGuitar-tef/ clean ++make -C TuxGuitar-tef/ install DESTDIR=${TG_PREFIX} ++#make -C TuxGuitar-tef/ clean + + make -C TuxGuitar-midi/ +-make -C TuxGuitar-midi/ install +-make -C TuxGuitar-midi/ clean ++make -C TuxGuitar-midi/ install DESTDIR=${TG_PREFIX} ++#make -C TuxGuitar-midi/ clean + + make -C TuxGuitar-lilypond/ +-make -C TuxGuitar-lilypond/ install +-make -C TuxGuitar-lilypond/ clean ++make -C TuxGuitar-lilypond/ install DESTDIR=${TG_PREFIX} ++#make -C TuxGuitar-lilypond/ clean + + make -C TuxGuitar-musicxml/ +-make -C TuxGuitar-musicxml/ install +-make -C TuxGuitar-musicxml/ clean ++make -C TuxGuitar-musicxml/ install DESTDIR=${TG_PREFIX} ++#make -C TuxGuitar-musicxml/ clean + + make -C TuxGuitar-ascii/ +-make -C TuxGuitar-ascii/ install +-make -C TuxGuitar-ascii/ clean ++make -C TuxGuitar-ascii/ install DESTDIR=${TG_PREFIX} ++#make -C TuxGuitar-ascii/ clean + + make -C TuxGuitar-converter/ +-make -C TuxGuitar-converter/ install +-make -C TuxGuitar-converter/ clean ++make -C TuxGuitar-converter/ install DESTDIR=${TG_PREFIX} ++#make -C TuxGuitar-converter/ clean + + make -C TuxGuitar-tray/ +-make -C TuxGuitar-tray/ install +-make -C TuxGuitar-tray/ clean ++make -C TuxGuitar-tray/ install DESTDIR=${TG_PREFIX} ++#make -C TuxGuitar-tray/ clean + + make -C TuxGuitar-community/ +-make -C TuxGuitar-community/ install +-make -C TuxGuitar-community/ clean ++make -C TuxGuitar-community/ install DESTDIR=${TG_PREFIX} ++#make -C TuxGuitar-community/ clean diff --git a/tuxguitar.spec b/tuxguitar.spec new file mode 100644 index 0000000..026a04f --- /dev/null +++ b/tuxguitar.spec @@ -0,0 +1,167 @@ +Name: tuxguitar +Version: 1.2 +Release: 4mamba +Summary: A Multitrack tablature editor and player +Group: Graphical Desktop/Applications/Multimedia +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://tuxguitar.herac.com.ar/ +Source: http://downloads.sourceforge.net/project/tuxguitar/TuxGuitar/TuxGuitar-src-%{version}/tuxguitar-src-%{version}.tar.gz +Patch0: %{name}-1.2-buildfile_fix.patch +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: fluidsynth-devel +BuildRequires: glibc-devel +BuildRequires: libalsa-devel +BuildRequires: libgcc +BuildRequires: libgcj4-devel +BuildRequires: libjack-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +BuildRequires: eclipse-swt +BuildRequires: java-gcj-compat +BuildRequires: libjack-devel +BuildRequires: fluidsynth-devel +Requires: eclipse-swt +Requires: java-gcj-compat-runtime +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +With TuxGuitar, you will be able to compose music using the following features: + +* Tablature editor +* Score Viewer +* Multitrack display +* Autoscroll while playing +* Note duration management +* Various effects (bend, slide, vibrato, hammer-on/pull-off) +* Support for triplets (5,6,7,9,10,11,12) +* Repeat open and close +* Time signature management +* Tempo management +* Imports and exports gp3,gp4 and gp5 files + +%debug_package + +%prep +%setup -q -n tuxguitar-src-%{version} +%patch0 -p1 +%ifarch x86_64 +sed -i "s|/usr/lib|%{_libdir}|g" build_gcj.sh +%endif + +%build +# workaround for builddir dynamic linking +mkdir -p tuxguitar-1.2-linux-x86-gcj +ln -s usr/lib tuxguitar-1.2-linux-x86-gcj/lib +sh ./build_gcj.sh +rm tuxguitar-1.2-linux-x86-gcj/lib + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +install -d -m0755 %{buildroot}%{_prefix} +%ifarch x86_64 +mv tuxguitar-%{version}-linux-x86-gcj/usr/lib/* tuxguitar-%{version}-linux-x86-gcj/%{_libdir}/ +rmdir tuxguitar-%{version}-linux-x86-gcj/usr/lib +%endif +cp -a tuxguitar-%{version}-linux-x86-gcj/* %{buildroot} + +mv %{buildroot}%{_bindir}/tuxguitar.bin %{buildroot}%{_bindir}/tuxguitar + +install -d -m0755 %{buildroot}%{_datadir}/applications +cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF +[Desktop Entry] +Encoding=UTF-8 +Name=TuxGuitar +GenericName=A Multitrack tablature editor and player +Exec=LD_LIBRARY_PATH=%{_libdir}/eclipse tuxguitar +Icon=%{_datadir}/tuxguitar/skins/blue_serious/icon-64x64.png +StartupNotify=true +Terminal=false +Type=Application +Categories=Applications;AudioVideo; +MimeType=audio/x-tuxguitar;audio/x-gtp;audio/x-ptb;audio/midi; +EOF + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/tuxguitar +%{_datadir}/applications/%{name}.desktop +%{_libdir}/jni/libtuxguitar-alsa-jni.so +%{_libdir}/jni/libtuxguitar-fluidsynth-jni.so +%{_libdir}/jni/libtuxguitar-jack-jni.so +%{_libdir}/jni/libtuxguitar-oss-jni.so +%{_libdir}/libtuxguitar.so +%dir %{_datadir}/tuxguitar/plugins +%{_datadir}/tuxguitar/plugins/libtuxguitar-alsa.so +%dir %{_datadir}/tuxguitar/plugins/tuxguitar-alsa +%{_datadir}/tuxguitar/plugins/tuxguitar-alsa/* +%{_datadir}/tuxguitar/plugins/libtuxguitar-ascii.so +%dir %{_datadir}/tuxguitar/plugins/tuxguitar-ascii +%{_datadir}/tuxguitar/plugins/tuxguitar-ascii/* +%{_datadir}/tuxguitar/plugins/libtuxguitar-community.so +%dir %{_datadir}/tuxguitar/plugins/tuxguitar-community +%{_datadir}/tuxguitar/plugins/tuxguitar-community/* +%{_datadir}/tuxguitar/plugins/libtuxguitar-compat.so +%dir %{_datadir}/tuxguitar/plugins/tuxguitar-compat +%{_datadir}/tuxguitar/plugins/tuxguitar-compat/* +%{_datadir}/tuxguitar/plugins/libtuxguitar-converter.so +%dir %{_datadir}/tuxguitar/plugins/tuxguitar-converter +%{_datadir}/tuxguitar/plugins/tuxguitar-converter/* +%{_datadir}/tuxguitar/plugins/libtuxguitar-fluidsynth.so +%dir %{_datadir}/tuxguitar/plugins/tuxguitar-fluidsynth +%{_datadir}/tuxguitar/plugins/tuxguitar-fluidsynth/* +%{_datadir}/tuxguitar/plugins/libtuxguitar-gtp.so +%dir %{_datadir}/tuxguitar/plugins/tuxguitar-gtp +%{_datadir}/tuxguitar/plugins/tuxguitar-gtp/* +%{_datadir}/tuxguitar/plugins/libtuxguitar-jack.so +%dir %{_datadir}/tuxguitar/plugins/tuxguitar-jack +%{_datadir}/tuxguitar/plugins/tuxguitar-jack/* +%{_datadir}/tuxguitar/plugins/libtuxguitar-lilypond.so +%dir %{_datadir}/tuxguitar/plugins/tuxguitar-lilypond +%{_datadir}/tuxguitar/plugins/tuxguitar-lilypond/* +%{_datadir}/tuxguitar/plugins/libtuxguitar-midi.so +%dir %{_datadir}/tuxguitar/plugins/tuxguitar-midi +%{_datadir}/tuxguitar/plugins/tuxguitar-midi/* +%{_datadir}/tuxguitar/plugins/libtuxguitar-musicxml.so +%dir %{_datadir}/tuxguitar/plugins/tuxguitar-musicxml +%{_datadir}/tuxguitar/plugins/tuxguitar-musicxml/* +%{_datadir}/tuxguitar/plugins/libtuxguitar-oss.so +%dir %{_datadir}/tuxguitar/plugins/tuxguitar-oss +%{_datadir}/tuxguitar/plugins/tuxguitar-oss/* +%{_datadir}/tuxguitar/plugins/libtuxguitar-ptb.so +%dir %{_datadir}/tuxguitar/plugins/tuxguitar-ptb +%{_datadir}/tuxguitar/plugins/tuxguitar-ptb/* +%{_datadir}/tuxguitar/plugins/libtuxguitar-tef.so +%dir %{_datadir}/tuxguitar/plugins/tuxguitar-tef +%{_datadir}/tuxguitar/plugins/tuxguitar-tef/* +%{_datadir}/tuxguitar/plugins/libtuxguitar-tray.so +%dir %{_datadir}/tuxguitar/plugins/tuxguitar-tray +%{_datadir}/tuxguitar/plugins/tuxguitar-tray/* +%dir %{_datadir}/tuxguitar/help +%{_datadir}/tuxguitar/help/* +%dir %{_datadir}/tuxguitar/lang +%{_datadir}/tuxguitar/lang/* +%dir %{_datadir}/tuxguitar/scales +%{_datadir}/tuxguitar/scales/scales.xml +%dir %{_datadir}/tuxguitar/skins +%{_datadir}/tuxguitar/skins/* +%dir %{_docdir}/tuxguitar +%{_docdir}/tuxguitar/* + +%changelog +* Thu Sep 05 2013 Silvan Calarco 1.2-4mamba +- rebuilt + +* Mon Apr 08 2013 Silvan Calarco 1.2-3mamba +- rebuilt with gcc-java 4.8.0 + +* Mon Dec 24 2012 Silvan Calarco 1.2-2mamba +- fix desktop entry icon + +* Tue Jul 03 2012 Silvan Calarco 1.2-1mamba +- package created by autospec