Summary: A multitrack tablature editor and player written in Java-SWT Name: tuxguitar Version: 1.3.0 Release: 0%{?dist} URL: http://www.tuxguitar.com.ar # Source file cleaned of potentially proprietary SF2, DLL, EXE files Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}-src-clean.tar.gz Patch0: tuxguitar-exclude-pdf.patch Patch1: tuxguitar-startscript.patch License: LGPLv2+ Group: Applications/Multimedia Requires: eclipse-swt Requires: soundfont2-default BuildRequires: alsa-lib-devel BuildRequires: desktop-file-utils BuildRequires: fluidsynth-devel BuildRequires: jack-audio-connection-kit-devel BuildRequires: eclipse-swt BuildRequires: maven-local %description TuxGuitar is a guitar tablature editor with player support through midi. It can display scores and multitrack tabs. Various features TuxGuitar provides include autoscrolling while playing, note duration management, bend/slide/vibrato/ hammer-on/pull-off effects, support for tuplets, time signature management, tempo management, gp3/gp4/gp5 import and export. %prep %setup -q -n %{name}-%{version}-src %patch0 -p1 %patch1 -p1 # Remove prebuilt jar files find . -name "*.jar" -exec rm {} \; #pom_remove_dep com.itextpdf:itextpdf:5.3.4 #pom_remove_dep com.itextpdf.tool:xmlworker:1.1.1 %pom_remove_dep -r com.itextpdf:itextpdf %pom_remove_dep -r com.itextpdf.tool:xmlworker #mvn_package org.herac.tuxguitar:tuxguitar-pdf __noinstall #pom_remove_plugin -r org.herac.tuxguitar:tuxguitar-pdf #pom_remove_plugin -r org.herac.tuxguitar:tuxguitar-pdf TuxGuitar-pdf #pom_disable_module tuxguitar-pdf TuxGuitar-pdf %build # JNI's to build JNIS="alsa fluidsynth jack oss" LIBSUFFIX=$(echo %{_lib}|sed 's|lib||') pushd build-scripts/tuxguitar-linux-%{_target_cpu}/ # -j for excluding the javadoc, since this is an application %mvn_build -j # This didn't work #mvn_build -j -- -pl !com.tuxguitar-pdf popd # build jnis for jni in $JNIS; do make -C TuxGuitar-$jni/jni %{?_smp_mflags} CFLAGS="${RPM_OPT_FLAGS} \ -I%{_jvmdir}/java-openjdk/include \ -I%{_jvmdir}/java-openjdk/include/linux \ -fPIC" done %install pushd build-scripts/tuxguitar-linux-%{_target_cpu}/ %mvn_install popd # install jnis we built mkdir -p $RPM_BUILD_ROOT%{_libdir}/%{name} cp -a TuxGuitar-*/jni/*.so $RPM_BUILD_ROOT%{_libdir}/%{name}/ mkdir -p $RPM_BUILD_ROOT/%{_bindir} cp -a misc/tuxguitar.sh $RPM_BUILD_ROOT/%{_bindir}/%{name} # Fix permissions chmod 755 $RPM_BUILD_ROOT/%{_bindir}/%{name} mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mime/packages/ cp -a misc/tuxguitar.xml $RPM_BUILD_ROOT/%{_datadir}/mime/packages/ mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name} cp -a TuxGuitar/share/* $RPM_BUILD_ROOT/%{_datadir}/%{name} # This file doesn't launch at this point. Might work when we can get the plugins working #cp -a misc/tuxguitar.tg $RPM_BUILD_ROOT/%{_datadir}/%{name} # FIXME copy icons # Register as an application to be visible in the software center # # NOTE: It would be *awesome* if this file was maintained by the upstream # project, translated and installed into the right place during `make install`. # # See http://www.freedesktop.org/software/appstream/docs/ for more details. # mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml < tuxguitar.desktop CC0-1.0 A multitrack tablature editor and player

Tuxguitar is a multitrack tablature editor and player. It provides 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
http://www.tuxguitar.com.ar/ http://www.tuxguitar.com.ar/rd.php/gallery/show_picture.do?galid=1&picid=47 http://www.tuxguitar.com.ar/rd.php/gallery/show_picture.do?galid=1&picid=46
EOF %check desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications misc/tuxguitar.desktop %post touch --no-create %{_datadir}/icons/hicolor &>/dev/null touch --no-create %{_datadir}/mime/packages &> /dev/null || : update-desktop-database &> /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 update-mime-database %{_datadir}/mime >& /dev/null ||: fi update-desktop-database &> /dev/null %posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || : %files -f build-scripts/tuxguitar-linux-x86_64/.mfiles %doc AUTHORS CHANGES LICENSE README #%%{_pkgdocdir}/ %{_libdir}/%{name} %{_datadir}/%{name} #%%{_datadir}/icons/hicolor/*/*/* %{_datadir}/appdata/%{name}.appdata.xml %{_datadir}/applications/%{name}.desktop %{_datadir}/mime/packages/*.xml %{_bindir}/%{name} %changelog * Sat Jan 23 2016 Orcan Ogetbil - 1.3-0 - Initial take on tuxguitar-1.3 * Fri Jun 19 2015 Fedora Release Engineering - 1.2-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Thu Mar 26 2015 Richard Hughes - 1.2-20 - Add an AppData file for the software center * Mon Feb 02 2015 Orcan Ogetbil - 1.2-19 - Set SWT_GTK3=0 workaround for blank setting dialogs. RHBZ#1187848 * Sat Sep 27 2014 Rex Dieter 1.2-18 - update mime scriptlets * Mon Aug 18 2014 Fedora Release Engineering - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sun Jun 08 2014 Fedora Release Engineering - 1.2-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Aug 04 2013 Orcan Ogetbil - 1.2-15 - Unversioned docdir https://fedoraproject.org/wiki/Changes/UnversionedDocdirs * Sun Aug 04 2013 Orcan Ogetbil - 1.2-14 - Removed the BuildRequires: ant-nodeps as the virtual provides was removed from ant >= 1.9. * Sun Aug 04 2013 Fedora Release Engineering - 1.2-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Mar 20 2013 Orcan Ogetbil > - 1.2-12 - Changed swt.jar location specification RHBZ#923597 * Fri Feb 15 2013 Fedora Release Engineering - 1.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Mon Jan 21 2013 Orcan Ogetbil > - 1.2-10 - Enabled the tuner plugin * Sun Sep 23 2012 Orcan Ogetbil > - 1.2-9 - Disable cairo graphics to prevent garbled output on "Score Edition Mode" RHBZ#827746,859734. * Sun Jul 22 2012 Fedora Release Engineering - 1.2-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sun Feb 19 2012 Orcan Ogetbil > - 1.2-7 - Require itext-core instead of itext to drop gcj dependency * Sat Jan 14 2012 Fedora Release Engineering - 1.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Fri Sep 16 2011 Orcan Ogetbil > - 1.2-5 - Remove gcj bits as per the new guidelines. - Change Requires: libswt3-gtk2 to eclipse-swt * Wed Feb 09 2011 Fedora Release Engineering - 1.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Oct 01 2010 Orcan Ogetbil > - 1.2-3 - Fix CVE-2010-3385 insecure library loading vulnerability - RHBZ#638396 * Sat Nov 28 2009 Orcan Ogetbil > - 1.2-2 - Change build system (we'll use our build-fedora.xml rather than patching Debian's Makefile). - Disable system tray and oss plugins by default. - Make fluidsynth/alsa/fluid soundfont combination the default output so that the software works out of the box. * Sat Nov 14 2009 Orcan Ogetbil > - 1.2-1 - New upstream version * Wed Aug 05 2009 Orcan Ogetbil > - 1.1-3 - Update the .desktop file * Sun Jul 26 2009 Fedora Release Engineering - 1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Sat Apr 04 2009 Orcan Ogetbil > - 1.1-1 - New upstream version - Clean-up the SPEC file - Include GCJ-AOT-bits * Wed Feb 25 2009 Fedora Release Engineering - 1.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Oct 15 2008 Orcan Ogetbil > - 1.0-8 - Enabled the PDF plugin since all the dependencies are now provided in repos * Thu Oct 02 2008 Orcan Ogetbil > - 1.0-7 - Added "exec" to replace the called shell to java process in the launching script * Wed Oct 01 2008 Orcan Ogetbil > - 1.0-6 - Required libswt3-gtk2 since rpmbuild doesn't pick it up. - Some more cleanup in the spec file - Fixed a typo regarding installation of icons - Called update-desktop-database in %%post and %%postun - jni files put in %%_libdir_/%%name. * Mon Sep 29 2008 Orcan Ogetbil > - 1.0-5 - Compiled the package with openjdk instead of gcj. - ExcludeArch'ed ppc/ppc64 on F-8. * Sun Sep 28 2008 Orcan Ogetbil > - 1.0-4 - Added the comment about %%{?_smp_mflags} - Used macros more extensively. - Changed the license to LGPLv2+ - Fixed java requirement issue by requiring java >= 1.7 - Required jpackage-utils - Removed pre-shipped binaries - Fixed %%defattr * Sun Sep 28 2008 Orcan Ogetbil > - 1.0-3 - Fixed java requirement issue by requiring icedtea for F-8 and openjdk for F-9+ - Patched the source to enable the fluidsynth plugin - Added DistTag - Patched the source in order to pass RPM_OPT_FLAGS to gcc - Removed ExclusiveArch * Thu Sep 25 2008 Orcan Ogetbil > - 1.0-2 - Added desktop-file-utils to BuildRequires. - Replaced java-1.7.0-icedtea with java-1.6.0-openjdk in Requires. * Wed Sep 24 2008 Orcan Ogetbil > - 1.0-1 - Initial build.