[tritonus] Initial commit of the retired package

lzap lzap at fedoraproject.org
Wed Dec 8 18:28:56 UTC 2010


commit 4a0a8366612c045c5fddbc1d3c8161d5ff4ea2e7
Author: Lukas Zapletal <lzap+git at redhat.com>
Date:   Wed Dec 8 19:28:28 2010 +0100

    Initial commit of the retired package

 .gitignore                                   |    1 +
 dead.package                                 |    1 -
 sources                                      |    1 +
 tritonus-configure.in.diff                   |   22 ++
 tritonus-no-jlayer.patch                     |   14 ++
 tritonus-removed-code.diff                   |   35 +++
 tritonus-snapshot.sh                         |   29 +++
 tritonus-src-lib-alsa-cast.patch             |   20 ++
 tritonus-src-lib-alsa-constants_check.h.diff |   15 ++
 tritonus-src-lib-fluidsynth.Makefile.in.diff |   22 ++
 tritonus.spec                                |  299 ++++++++++++++++++++++++++
 11 files changed, 458 insertions(+), 1 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 9cc2ad1..2c17db2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 tritonus-0.3.7-20090419cvs.tar.bz2
+/tritonus-0.3.7-20101108cvs.tar.bz2
diff --git a/sources b/sources
new file mode 100644
index 0000000..067f0b8
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+1a6681bd15cbdbc74dbfad0d1c3d21ec  tritonus-0.3.7-20101108cvs.tar.bz2
diff --git a/tritonus-configure.in.diff b/tritonus-configure.in.diff
new file mode 100644
index 0000000..45a24aa
--- /dev/null
+++ b/tritonus-configure.in.diff
@@ -0,0 +1,22 @@
+diff -rupN tritonus-0.3.7.old/configure.in tritonus-0.3.7/configure.in
+--- tritonus-0.3.7.old/configure.in	2006-02-12 03:56:32.000000000 -0500
++++ tritonus-0.3.7/configure.in	2009-04-19 15:40:39.000000000 -0400
+@@ -124,8 +124,6 @@ dnl Checks for libraries.
+ SUBDIRS=
+ AC_CHECK_LIB(asound, snd_seq_open,[SUBDIRS="$SUBDIRS src/lib/alsa"; AC_MSG_RESULT(Information: will build stuff for ALSA sequencer)],[AC_MSG_RESULT(Information: will not build stuff for ALSA sequencer)],)
+ AC_CHECK_LIB(esd,esd_open_sound,[SUBDIRS="$SUBDIRS src/lib/esd"; AC_MSG_RESULT(Information: will build stuff for Enlightened Sound Daemon)],[AC_MSG_RESULT(Information: will not build stuff for Enlightened Sound Daemon)])
+-AC_CHECK_LIB(mp3lame,lame_init_params,[SUBDIRS="$SUBDIRS src/lib/lame"; AC_MSG_RESULT(Information: will build stuff for LAME mp3 encoder)],[AC_MSG_RESULT(Information: will not build stuff for LAME mp3 encoder)])
+-AC_CHECK_HEADER(linux/cdrom.h,[SUBDIRS="$SUBDIRS src/lib/cooked_ioctl"; AC_MSG_RESULT(Information: will build stuff for 'cooked ioctl' cdda)],[AC_MSG_RESULT(Information: will not build stuff for 'cooked ioctl' cdda)])
+ AC_CHECK_HEADER(cdda_interface.h,[SUBDIRS="$SUBDIRS src/lib/cdparanoia"; AC_MSG_RESULT(Information: will build stuff for cdparanoia)],[AC_MSG_RESULT(Information: will not build stuff for cdparanoia)])
+ AC_CHECK_HEADER(ogg/ogg.h,[SUBDIRS="$SUBDIRS src/lib/vorbis"; AC_MSG_RESULT(Information: will build stuff for vorbis)],[AC_MSG_RESULT(Information: will not build stuff for vorbis)])
+ AC_CHECK_HEADER(fluidsynth.h,[SUBDIRS="$SUBDIRS src/lib/fluidsynth"; AC_MSG_RESULT(Information: will build stuff for fluidsynth)],[AC_MSG_RESULT(Information: will NOT build stuff for fluidsynth)])
+@@ -225,9 +223,7 @@ AC_OUTPUT(Makefile
+ 	src/lib/common/Makefile
+ 	src/lib/alsa/Makefile
+ 	src/lib/cdparanoia/Makefile
+-	src/lib/cooked_ioctl/Makefile
+ 	src/lib/esd/Makefile
+-	src/lib/lame/Makefile
+ 	src/lib/vorbis/Makefile
+ 	src/lib/pvorbis/Makefile
+ 	src/lib/fluidsynth/Makefile
diff --git a/tritonus-no-jlayer.patch b/tritonus-no-jlayer.patch
new file mode 100644
index 0000000..ec387f2
--- /dev/null
+++ b/tritonus-no-jlayer.patch
@@ -0,0 +1,14 @@
+diff -up tritonus-0.3.7/build.xml~ tritonus-0.3.7/build.xml
+--- tritonus-0.3.7/build.xml~	2006-01-30 13:31:37.000000000 +0100
++++ tritonus-0.3.7/build.xml	2010-11-11 15:20:52.930963002 +0100
+@@ -24,8 +24,8 @@
+       <include name="org/tritonus/" />
+       <exclude name="org/tritonus/sampled/cdda/" />
+       <!-- hack to enable building of mp3 decoder plug-in -->
+-      <!--exclude name="org/tritonus/sampled/convert/javalayer/" /-->
+-      <!--exclude name="org/tritonus/sampled/file/mpeg/" /-->
++      <exclude name="org/tritonus/sampled/convert/javalayer/" />
++      <exclude name="org/tritonus/sampled/file/mpeg/" />
+       <exclude name="org/tritonus/midi/device/midishare/" />
+ 	  <!-- necessary for kaffe -->
+       <!--exclude name="org/tritonus/midi/device/java/SunMiscPerfClock.java" /-->
diff --git a/tritonus-removed-code.diff b/tritonus-removed-code.diff
new file mode 100644
index 0000000..836185d
--- /dev/null
+++ b/tritonus-removed-code.diff
@@ -0,0 +1,35 @@
+diff -urd libtritonus-java-20070428.orig/src/lib/alsa/constants_check.h libtritonus-java-20070428/src/lib/alsa/constants_check.h
+--- libtritonus-java-20070428.orig/src/lib/alsa/constants_check.h	2002-08-03 07:56:35.000000000 +0200
++++ libtritonus-java-20070428/src/lib/alsa/constants_check.h	2008-04-06 15:29:08.000000000 +0200
+@@ -70,6 +70,7 @@
+ 	assert(SND_SEQ_EVENT_PORT_CHANGE == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_EVENT_PORT_CHANGE);
+ 	assert(SND_SEQ_EVENT_PORT_SUBSCRIBED == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_EVENT_PORT_SUBSCRIBED);
+ 	assert(SND_SEQ_EVENT_PORT_UNSUBSCRIBED == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_EVENT_PORT_UNSUBSCRIBED);
++/* removed since libasound2 1.0.16
+ 	assert(SND_SEQ_EVENT_SAMPLE == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_EVENT_SAMPLE);
+ 	assert(SND_SEQ_EVENT_SAMPLE_CLUSTER == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_EVENT_SAMPLE_CLUSTER);
+ 	assert(SND_SEQ_EVENT_SAMPLE_START == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_EVENT_SAMPLE_START);
+@@ -79,6 +80,7 @@
+ 	assert(SND_SEQ_EVENT_SAMPLE_LOOP == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_EVENT_SAMPLE_LOOP);
+ 	assert(SND_SEQ_EVENT_SAMPLE_POSITION == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_EVENT_SAMPLE_POSITION);
+ 	assert(SND_SEQ_EVENT_SAMPLE_PRIVATE1 == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_EVENT_SAMPLE_PRIVATE1);
++*/
+ 	assert(SND_SEQ_EVENT_USR0 == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_EVENT_USR0);
+ 	assert(SND_SEQ_EVENT_USR1 == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_EVENT_USR1);
+ 	assert(SND_SEQ_EVENT_USR2 == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_EVENT_USR2);
+@@ -89,6 +91,7 @@
+ 	assert(SND_SEQ_EVENT_USR7 == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_EVENT_USR7);
+ 	assert(SND_SEQ_EVENT_USR8 == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_EVENT_USR8);
+ 	assert(SND_SEQ_EVENT_USR9 == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_EVENT_USR9);
++/* removed since libasound2 1.0.16
+ 	assert(SND_SEQ_EVENT_INSTR_BEGIN == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_EVENT_INSTR_BEGIN);
+ 	assert(SND_SEQ_EVENT_INSTR_END == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_EVENT_INSTR_END);
+ 	assert(SND_SEQ_EVENT_INSTR_INFO == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_EVENT_INSTR_INFO);
+@@ -108,6 +111,7 @@
+ 	assert(SND_SEQ_EVENT_INSTR_CLUSTER_GET == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_EVENT_INSTR_CLUSTER_GET);
+ 	assert(SND_SEQ_EVENT_INSTR_CLUSTER_RESULT == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_EVENT_INSTR_CLUSTER_RESULT);
+ 	assert(SND_SEQ_EVENT_INSTR_CHANGE == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_EVENT_INSTR_CHANGE);
++*/
+ 	assert(SND_SEQ_EVENT_SYSEX == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_EVENT_SYSEX);
+ 	assert(SND_SEQ_EVENT_BOUNCE == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_EVENT_BOUNCE);
+ 	assert(SND_SEQ_EVENT_USR_VAR0 == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_EVENT_USR_VAR0);
diff --git a/tritonus-snapshot.sh b/tritonus-snapshot.sh
new file mode 100644
index 0000000..8fd774f
--- /dev/null
+++ b/tritonus-snapshot.sh
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+set -e
+
+tmp=$(mktemp -d)
+
+trap cleanup EXIT
+cleanup() {
+    set +e
+    [ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp"
+}
+
+unset CDPATH
+pwd=$(pwd)
+cvs=$(date +%Y%m%d)cvs
+name=tritonus
+
+cd "$tmp"
+cvs -z3 -d:pserver:anonymous@$name.cvs.sourceforge.net:/cvsroot/$name export -D $(date +%Y%m%d) $name
+# Remove patent encumbered parts
+find . -iname "*mp3*" |xargs rm -fr -- || :
+find . -iname "*mpeg*" |xargs rm -fr -- || :
+find . -name lame | xargs rm -fr -- || :
+version=$(cat $name/version)
+mv $name $name-$version
+tar jcf "$pwd"/$name-$version-$cvs.tar.bz2 $name-$version
+
+echo "Written: $name-$version-$cvs.tar.bz2"
+cd - >/dev/null
diff --git a/tritonus-src-lib-alsa-cast.patch b/tritonus-src-lib-alsa-cast.patch
new file mode 100644
index 0000000..539c61a
--- /dev/null
+++ b/tritonus-src-lib-alsa-cast.patch
@@ -0,0 +1,20 @@
+diff -rupN tritonus-0.3.7.old/src/lib/common/HandleFieldHandler.h tritonus-0.3.7/src/lib/common/HandleFieldHandler.h
+--- tritonus-0.3.7.old/src/lib/common/HandleFieldHandler.h	2002-12-15 06:15:25.000000000 -0500
++++ tritonus-0.3.7/src/lib/common/HandleFieldHandler.h	2009-07-08 03:53:51.000000000 -0400
+@@ -56,14 +56,14 @@ static void                             
+ setHandle(JNIEnv *env, jobject obj, _type handle)                      \
+ {                                                                      \
+ 	jfieldID	fieldID = getNativeHandleFieldID(env, obj);    \
+-	(*env)->SetLongField(env, obj, fieldID, (jlong) (int) handle);       \
++	(*env)->SetLongField(env, obj, fieldID, (jlong) (long) handle);       \
+ }                                                                      \
+                                                                        \
+ static _type                                                           \
+ getHandle(JNIEnv *env, jobject obj)                                    \
+ {                                                                      \
+ 	jfieldID	fieldID = getNativeHandleFieldID(env, obj);    \
+-	_type	handle = (_type) (int) (*env)->GetLongField(env, obj, fieldID); \
++	_type	handle = (_type) (long) (*env)->GetLongField(env, obj, fieldID); \
+ 	return handle;                                                 \
+ }
+ 
diff --git a/tritonus-src-lib-alsa-constants_check.h.diff b/tritonus-src-lib-alsa-constants_check.h.diff
new file mode 100644
index 0000000..2b52a33
--- /dev/null
+++ b/tritonus-src-lib-alsa-constants_check.h.diff
@@ -0,0 +1,15 @@
+--- src/lib/alsa/constants_check.h	2002-08-03 07:56:35.000000000 +0200
++++ src/lib/alsa/constants_check.h	2006-11-30 21:23:51.000000000 +0100
+@@ -136,8 +136,12 @@
+ 	assert(SND_SEQ_PRIORITY_HIGH == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_PRIORITY_HIGH);
+ 	assert(SND_SEQ_PRIORITY_MASK == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_PRIORITY_MASK);
+ 	assert(SND_SEQ_CLIENT_SYSTEM == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_CLIENT_SYSTEM);
++#ifdef SND_SEQ_CLIENT_DUMMY
+ 	assert(SND_SEQ_CLIENT_DUMMY == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_CLIENT_DUMMY);
++#endif
++#ifdef SND_SEQ_CLIENT_OSS
+ 	assert(SND_SEQ_CLIENT_OSS == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_CLIENT_OSS);
++#endif
+ /* 	assert(SND_SEQ_FILTER_BROADCAST == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_FILTER_BROADCAST); */
+ /* 	assert(SND_SEQ_FILTER_MULTICAST == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_FILTER_MULTICAST); */
+ /* 	assert(SND_SEQ_FILTER_BOUNCE == org_tritonus_lowlevel_alsa_AlsaSeq_SND_SEQ_FILTER_BOUNCE); */
diff --git a/tritonus-src-lib-fluidsynth.Makefile.in.diff b/tritonus-src-lib-fluidsynth.Makefile.in.diff
new file mode 100644
index 0000000..54fb399
--- /dev/null
+++ b/tritonus-src-lib-fluidsynth.Makefile.in.diff
@@ -0,0 +1,22 @@
+--- src/lib/fluidsynth/Makefile.in	2006-02-11 21:49:29.000000000 +0100
++++ src/lib/fluidsynth/Makefile.in	2006-04-11 10:10:34.000000000 +0200
+@@ -65,9 +65,10 @@
+ all: $(LIBDEST)
+ 
+ $(LIBDEST):	$(OBJ)
+-	libtool --mode=link gcc -g -O -o $(LIBBASENAME).la $(LTOBJ) \
+-                     -rpath /usr/lib $(LIBS)
++#	libtool --mode=link gcc -g -O -o $(LIBBASENAME).la $(LTOBJ) \
++#                     -rpath /usr/lib $(LIBS)
+ ##	$(CC) -nostartfiles -shared -Wl,-soname,$(LIBBASENAME).so.1 -o $(LIBDEST) $(OBJ) -L/usr/lib $(LIBS)
++	libtool --mode=link gcc -nostartfiles -shared -Wl,-soname,$(LIBBASENAME).so.1 -o $(LIBDEST) $(OBJ) -L/usr/lib $(LIBS)
+ ##
+ ## use this for testing with a custom version of libfluidsynth
+ ##
+@@ -119,4 +120,4 @@
+ .PHONY: clean
+ clean:
+ 	rm -rf $(LIBDEST) $(JNIHEADERS) *.o *~
+-	libtool --mode=clean $(RM_F) $(LTOBJ) $(LIBBASENAME).la
+\ Kein Zeilenumbruch am Dateiende.
++	libtool --mode=clean $(RM_F) $(LTOBJ) $(LIBBASENAME).la
diff --git a/tritonus.spec b/tritonus.spec
new file mode 100644
index 0000000..155dbcb
--- /dev/null
+++ b/tritonus.spec
@@ -0,0 +1,299 @@
+%global cvs_version 20101108cvs
+
+Name:           tritonus
+Summary:        Java Sound API Implementation
+URL:            http://www.tritonus.org/
+Group:          System Environment/Libraries
+Version:        0.3.7
+Release:        0.9.%{cvs_version}%{?dist}
+License:        LGPLv2+
+Source0:        %{name}-%{version}-%{cvs_version}.tar.bz2
+Source9:        %{name}-snapshot.sh
+# Remove lame and ioctl bits:
+Patch0:         %{name}-configure.in.diff
+# Make trinotus compile against the latest version of these libraries:
+Patch1:         %{name}-src-lib-fluidsynth.Makefile.in.diff
+Patch2:         %{name}-no-jlayer.patch
+Patch3:         %{name}-src-lib-alsa-constants_check.h.diff
+Patch4:         %{name}-removed-code.diff
+# Fix alsa midi crash RHBZ #510063
+# http://sourceforge.net/tracker/?func=detail&aid=2818404&group_id=1390&atid=201390
+Patch5:         %{name}-src-lib-alsa-cast.patch
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
+BuildRequires:  alsa-lib-devel
+BuildRequires:  ant
+BuildRequires:  ant-commons-net
+BuildRequires:  cdparanoia-devel
+BuildRequires:  esound-devel
+BuildRequires:  fluidsynth-devel
+BuildRequires:  java-devel >= 1.6
+BuildRequires:  jorbis
+BuildRequires:  jpackage-utils
+BuildRequires:  libtool
+BuildRequires:  libvorbis-devel
+BuildRequires:  libvorbis-devel
+Requires:       java >= 1.6
+Requires:       jpackage-utils
+Requires:       jorbis
+
+Provides:       %{name}-shared = %{version}-%{release}
+
+# Packages merged into the tritonus package
+Provides:       tritonus-core = %{version}-%{release}
+Provides:       tritonus-aos = %{version}-%{release}
+Provides:       tritonus-javasequencer = %{version}-%{release}
+Provides:       tritonus-misc = %{version}-%{release}
+Provides:       tritonus-alsa = %{version}-%{release}
+Provides:       tritonus-dsp = %{version}-%{release}
+Provides:       tritonus-jorbis = %{version}-%{release}
+Provides:       tritonus-pvorbis = %{version}-%{release}
+Provides:       tritonus-vorbis = %{version}-%{release}
+Provides:       tritonus-src = %{version}-%{release}
+Obsoletes:      tritonus-core < %{version}-%{release}
+Obsoletes:      tritonus-aos < %{version}-%{release}
+Obsoletes:      tritonus-javasequencer < %{version}-%{release}
+Obsoletes:      tritonus-misc < %{version}-%{release}
+Obsoletes:      tritonus-alsa < %{version}-%{release}
+Obsoletes:      tritonus-dsp < %{version}-%{release}
+Obsoletes:      tritonus-jorbis < %{version}-%{release}
+Obsoletes:      tritonus-pvorbis < %{version}-%{release}
+Obsoletes:      tritonus-vorbis < %{version}-%{release}
+Obsoletes:      tritonus-src < %{version}-%{release}
+
+%description
+Tritonus is an implementation of the Java Sound API. This package contains
+common files and shared classes required by all other Tritonus plug-ins plus
+support for aos, javasequencer, alsa, dsp, gsm, jorbis, pvorbis and vorbis.
+
+%package cdda
+Summary:    A plug-in for Java that enables you to digitally read audio CD's
+Group:      System Environment/Libraries
+Requires:   %{name}-shared = %{version}-%{release}
+
+%description cdda
+A plug-in for Java that enables you to digitally read audio CD's.
+
+%package esd
+Summary:    An implementation of javax.sound.sampled.Mixer based on libesd
+Group:      System Environment/Libraries
+Requires:   %{name}-shared = %{version}-%{release}
+
+%description esd
+An implementation of javax.sound.sampled.Mixer based on libesd.
+
+It provides (most of) the capabilities Esound provides to Java Sound. 
+Especially, you can use this mixer to get full-duplex support for Java Sound on
+Linux.
+
+%package fluidsynth
+Summary:    Plug-in for fluidsynth
+Group:      System Environment/Libraries
+Requires:   %{name}-shared = %{version}-%{release}
+
+%description fluidsynth
+A tritonus plug-in for fluidsynth.
+
+%package gsm
+Summary:    GSM codec
+License:    GPLv2+
+Group:      System Environment/Libraries
+Requires:   %{name}-shared = %{version}-%{release}
+
+%description gsm
+For examples of using the GSM codec, refer to the Java Sound Resources examples
+GSMEncoder, AudioDecoder and DecodingAudioPlayer:
+http://www.jsresources.org/
+http://www.jsresources.org/examples/GSMEncoder.html
+http://www.jsresources.org/examples/AudioDecoder.html
+http://www.jsresources.org/examples/DecodingAudioPlayer.html
+
+%package javadoc
+Summary:    Javadocs for %{name}
+Group:      Documentation
+Requires:   %{name} = %{version}-%{release}
+Requires:   jpackage-utils
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+%prep
+%setup -q
+%patch0 -p1 -b .lameandioctl
+%patch1 -p0 -b .oldapi
+%patch2 -p1
+%patch3 -p0 -b .oldapi
+%patch4 -p1 -b .oldapi
+%patch5 -p1 -b .cast
+
+# Fix encoding issues
+for file in doc/{compression.txt,TODO-matthias.txt,tritonusfaq.sgml}; do
+    iconv -f iso-8859-1 -t utf8 $file > $file.tmp
+    touch -r $file $file.tmp
+    mv -f $file.tmp $file
+done
+
+# Remove classpath from manifest
+sed -i '/Class-Path/d' build-common.xml
+
+# Fix libdir issues
+sed -i 's|/usr/lib|%{_libdir}|g' `find . -name Makefile.in`
+
+# Fedora doesn't like usage of System.loadLibrary
+sed -i 's|System.loadLibrary("\(.*\)")|System.load("%{_libdir}/%{name}/lib\1.so")|' `grep -rl loadLibrary *`
+
+# Fix compiler flags
+sed -i -e 's|-Werror||g' \
+    -e 's|-Wl,-rpath,/home/matthias/java/tritonus/src/lib/common||g' \
+    `find . -name Makefile.in`
+
+# Prevent a rebuild in %%install
+sed -i 's|install: all|install:|' Makefile.in
+
+autoreconf -fi
+
+
+%build
+export CFLAGS="$RPM_OPT_FLAGS -fPIC -I%{_includedir}/cdda"
+export CPPFLAGS="$RPM_OPT_FLAGS -fPIC -I%{_includedir}/cdda"
+export CXXFLAGS="$RPM_OPT_FLAGS -fPIC -I%{_includedir}/cdda"
+%configure
+
+export CLASSPATH=`build-classpath commons-net`
+%ant -v -f build-dtd.xml
+# I don't know why these lines stop the building of tritonus:
+sed -i -e '/timestampgranularity/d' -e '/serverlanguagecodeconfig/d' project.dtd
+
+export CLASSPATH=`build-classpath jogg jorbis`
+%ant
+
+make %{?_smp_mflags} JAVADIR=%{_jvmdir}/java
+
+# javadoc doesn't want to process these two files:
+rm -f src/classes/org/tritonus/debug/AJDebug*
+%javadoc -d javadoc -public `find ./ -name '*.java'`
+
+
+%install
+rm -rf %{buildroot}
+
+make install \
+    LIBS="" \
+    JAVAEXTPATH=%{buildroot}%{_libdir}/%{name} \
+    JAVAEXTLIBPATH=%{buildroot}%{_libdir}/%{name} \
+    DESTDIR=%{buildroot}
+
+# jars
+install -dm 755 %{buildroot}%{_libdir}/%{name}
+install -pm 644 dist/*.jar %{buildroot}%{_libdir}/%{name}
+pushd %{buildroot}%{_libdir}/%{name}
+    for jar in *-%{version}*; do
+        ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`
+    done
+popd
+
+# javadoc
+install -dm 755 %{buildroot}%{_javadocdir}/%{name}
+cp -pr javadoc/* %{buildroot}%{_javadocdir}/%{name}
+
+# No need to have symlinks for JNI files
+pushd %{buildroot}%{_libdir}/%{name}
+    for sofile in *.so; do
+        mv $sofile.1.0 $sofile
+        rm -f $sofile.*
+    done
+popd
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc LGPL NEWS README doc/kaffe* doc/midi* doc/*TODO* doc/*proposal*
+%dir %{_libdir}/%{name}/
+%{_libdir}/%{name}/%{name}_share*.jar
+%doc doc/%{name}faq.sgml
+%{_libdir}/%{name}/%{name}_core*.jar
+%doc doc/AudioOutput*
+%{_libdir}/%{name}/%{name}_aos*.jar
+%{_libdir}/%{name}/%{name}_javasequencer*.jar
+%{_libdir}/%{name}/%{name}_remaining*.jar
+%doc doc/ALSA* doc/Alsa* doc/bindists/alsa/readme.txt
+%{_libdir}/%{name}/%{name}_alsa*.jar
+%{_libdir}/%{name}/lib%{name}alsa.so
+%{_libdir}/%{name}/%{name}_dsp*.jar
+%doc doc/compression*
+%{_libdir}/%{name}/%{name}_jorbis*.jar
+%{_libdir}/%{name}/%{name}_pvorbis*.jar
+%doc doc/bindists/vorbis/readme.txt
+%{_libdir}/%{name}/%{name}_vorbis*.jar
+%{_libdir}/%{name}/lib%{name}vorbis.so
+%{_libdir}/%{name}/%{name}_src*.jar
+
+%files cdda
+%defattr(-,root,root,-)
+%doc doc/cdda.txt doc/bindists/cdda/readme.txt
+%{_libdir}/%{name}/%{name}_cdda*.jar
+%{_libdir}/%{name}/lib%{name}cdparanoia.so
+
+%files esd
+%defattr(-,root,root,-)
+%doc doc/bindists/esd/readme.txt
+%{_libdir}/%{name}/%{name}_esd*.jar
+%{_libdir}/%{name}/lib%{name}esd.so
+
+%files fluidsynth
+%defattr(-,root,root,-)
+%doc doc/fluidsynth*
+%{_libdir}/%{name}/%{name}_fluidsynth*.jar
+%{_libdir}/%{name}/lib%{name}fluid.so
+
+%files javadoc
+%defattr(-,root,root,-)
+%{_javadocdir}/%{name}
+
+%files gsm
+%defattr(-,root,root,-)
+%doc doc/compression*
+%{_libdir}/%{name}/%{name}_gsm*.jar
+
+
+%changelog
+* Thu Nov 25 2010 Lukas Zapletal <lzap+spec at redhat.com> - 0.3.7-0.9.20101108cvs
+- now fixing the last cosmetic issue (provide)
+
+* Thu Nov 24 2010 Lukas Zapletal <lzap+spec at redhat.com> - 0.3.7-0.8.20101108cvs
+- fixing last cosmetic issue
+
+* Thu Nov 23 2010 Lukas Zapletal <lzap+spec at redhat.com> - 0.3.7-0.7.20101108cvs
+- spec review by Hans de Goede
+- fixing some spec cosmetic issues
+
+* Thu Nov 11 2010 Lukas Zapletal <lzap+spec at redhat.com> - 0.3.7-0.6.20101108cvs
+- removing tritonus-src-lib-alsa-Makefile.in.diff
+- merging core, aos, javasequencer, misc, alsa, dsp, gsm, jorbis, pvorbis and vorbis
+  into the main package
+
+* Sun Jul 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.3.7-0.5.20090419cvs
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Wed Jul 08 2009 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.3.7-0.4.20090419cvs
+- Fix alsa midi crash RHBZ #510063
+- No more rebuilding in %%install
+
+* Fri May 29 2009 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.3.7-0.3.20090419cvs
+- Add disttag
+
+* Thu May 07 2009 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.3.7-0.2.20090419cvs
+- Fix duplicate files issue
+
+* Sun Apr 19 2009 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.3.7-0.1.20090419cvs
+- prepare the package for Fedora
+
+* Thu Oct 16 2008 Alexander Kurtakov <akurtakov at mandriva.org> 0.3.7-0.0.cvs20080107.1mdv2009.1
++ Revision: 294485
+- remove unneeded req
+- really fix file list
+- br libtool
+- fix file list
+- import tritonus


More information about the scm-commits mailing list