tuxguitar/tuxguitar.spec

187 lines
6.4 KiB
RPMSpec
Raw Permalink Normal View History

Name: tuxguitar
Version: 1.2
Release: 7mamba
Summary: A Multitrack tablature editor and player
Group: Graphical Desktop/Applications/Multimedia
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
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: libgcj-devel >= 5.2
BuildRequires: libgcj-devel >= 5.2.255
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
%ifarch x86_64
export TG_LIBRARY_PATH_JNI=%{_libdir}/jni
%endif
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}
cat > %{buildroot}%{_bindir}/tuxguitar << _EOF
LD_LIBRARY_PATH=%{_libdir}/eclipse tuxguitar.bin
_EOF
chmod 0755 %{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=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
%{_bindir}/tuxguitar.bin
%{_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
* Wed Nov 25 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2-7mamba
- rebuilt with gcc 5.2.0
* Fri Dec 05 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2-6mamba
- add %{_bindir}/tuxguitar wrapper script
- x86_64: fix jni libdir
* Fri May 16 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2-5mamba
- rebuilt with gcj 4.9.0
* Thu Sep 05 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2-4mamba
- rebuilt
* Mon Apr 08 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2-3mamba
- rebuilt with gcc-java 4.8.0
* Mon Dec 24 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2-2mamba
- fix desktop entry icon
* Tue Jul 03 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2-1mamba
- package created by autospec