Репозиторий Sisyphus
Последнее обновление: 18 ноября 2017 | Пакетов: 17918 | Посещений: 10396190
en ru br
Репозитории ALT
S:1.2-alt4
5.1: 1.1-alt2
www.altlinux.org/Changes

Группа :: Звук
Пакет: tuxguitar

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: tuxguitar
Version: 1.2
Release: alt2

Summary: A multitrack guitar tablature editor and player

License: LGPL
Url: http://www.tuxguitar.com.ar/
Group: Sound

Packager: Vitaly Lipatov <lav at altlinux.ru>

Source: http://prdownloads.sf.net/tuxguitar/tuxguitar-src-%version.tar
Source3: TuxGuitar.png

# Fedora specific build script. Accepted by upstream:

# http://tuxguitar.svn.sourceforge.net/viewvc/tuxguitar/trunk/TuxGuitar/xml/build-fedora.xml
Source11: %name-build-altlinux.xml
# From upstream trunk, to disable certain plugins by default
# http://tuxguitar.svn.sourceforge.net/viewvc/tuxguitar/trunk/TuxGuitar/src/org/herac/tuxguitar/gui/system/plugins/TGPluginProperties.java?r1=99&r2=770
Patch: %name-plugin-properties.patch

# Automatically added by buildreq on Thu Jan 06 2011

BuildRequires: ant-antlr ant-bcel ant-commons-logging ant-commons-net ant-jai ant-jakarta-oro ant-jakarta-regexp ant-javamail ant-jdepend ant-jmf ant-jsch ant-junit ant-log4j ant-nodeps ant-stylebook ant-swing ant-trax ant-xml-resolver checkstyle4 eclipse-swt itext jtidy libfluidsynth-devel libgcj-devel tzdata

BuildRequires: rpm-build-java
#BuildRequires: xml-commons-apis

Requires: eclipse-swt
Requires: itext
Requires: java
BuildRequires: desktop-file-utils

%description
TuxGuitar is a guitar tablature editor with player support through midi. It can
display scores and multitrack tabs. It can
open GP3, GP3 and GP5 files.

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

%prep
%setup -n tuxguitar-src-%version
%patch0 -p1
cp %SOURCE11 TuxGuitar/xml/build-altlinux.xml

%build
test -f %_libdir/java/swt.jar
test -f %_javadir/itext.jar

# disabled plugins: gervill

# Plugins to build:
PLUGINS="alsa ascii browser-ftp community compat converter fluidsynth \
        gtp jack jsa lilypond midi musicxml pdf ptb tef tray"

# JNI's to build

JNIS="alsa fluidsynth jack"

LIBSUFFIX=$(echo %_lib|sed 's|lib||')

# to pass to ant:

ANT_FLAGS=" \
  -Dpath.tuxguitar=$PWD/TuxGuitar/%name.jar \
  -Dpath.itext=%_javadir/itext.jar \
  -Dpath.swt=%_libdir/java/swt.jar \
  -Dlib.swt.jar=%_libdir/java/swt.jar \
  -Ddist.lib.path=%_libdir/%name/ \
  -Ddist.file=xml/build-altlinux.xml \
  -Ddist.jar.path=%_datadir/%name/ \
  -Ddist.share.path=%_datadir/%name/ \
  -Dos.lib.suffix=$LIBSUFFIX \
  -Dos.data.dir=%_datadir/ \
  -Ddist.default.style=Lavender \
  -Ddist.default.song=%_datadir/%name/%name.tg"

# build jars

ant -f TuxGuitar/build.xml -v -d $ANT_FLAGS all
for jarname in $PLUGINS; do
  ant -f TuxGuitar-$jarname/build.xml -v -d $ANT_FLAGS \
     -Dbuild.jar=../TuxGuitar/share/plugins/tuxguitar-$jarname.jar all
done

# build jnis

for jni in $JNIS; do
%make_build -C TuxGuitar-$jni/jni CFLAGS="${RPM_OPT_FLAGS} \
             -I%_jvmdir/java-openjdk/include \
             -I%_jvmdir/java-openjdk/include/linux \
             -fPIC"
done

%install
LIBSUFFIX=$(echo %_lib|sed 's|lib||')

# to pass to ant:

ANT_FLAGS=" \
  -Dpath.tuxguitar=$PWD/TuxGuitar/%name.jar \
  -Dos.bin.dir=%_bindir \
  -Ddist.file=xml/build-altlinux.xml \
  -Ddist.jar.path=%_datadir/%name/ \
  -Ddist.share.path=%_datadir/%name/ \
  -Dos.lib.suffix=$LIBSUFFIX \
  -Dos.data.dir=%_datadir/ \
  -Ddist.default.style=Lavender \
  -Ddist.doc.path=%_docdir/%name-%version/ \
  -Ddist.default.song=%_datadir/%name/%name.tg \
  -Ddist.dst.path=%buildroot"

ant -f TuxGuitar/build.xml -v -d $ANT_FLAGS install

# install jnis we built

mkdir -p %buildroot%_libdir/%name/
cp -a TuxGuitar-*/jni/*.so %buildroot%_libdir/%name/

# icon

install -dm 755 %buildroot%_pixmapsdir/
install -m 644 %SOURCE3 \
%buildroot%_pixmapsdir/

install -dm 755 %buildroot%_man1dir/
cp -f misc/%name.1 %buildroot%_man1dir/
desktop-file-install --dir %buildroot%_desktopdir \
--add-category=Music \
%buildroot%_desktopdir/tuxguitar.desktop

#%post

#pushd %_javadir/%name/share > /dev/null
# ln -s %_datadir/%name/* .
#popd  > /dev/null

#%postun

#rm -r %_javadir/%name/share

%files
#doc AUTHORS ChangeLog COPYING LICENSE README
%_docdir/%name-%version/
%_bindir/tuxguitar
#%_libdir/*.so
%_libdir/%name/

%dir %_datadir/%name
%_datadir/%name/*.jar
%_datadir/%name/tuxguitar.tg
%_datadir/%name/plugins/
%_datadir/%name/help/
%_datadir/%name/scales/
%_datadir/%name/lang/
%_datadir/%name/skins/

%_xdgmimedir/packages/%name.xml
%_man1dir/*
%_desktopdir/*.desktop
%_pixmapsdir/*.png

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin