rpms/tritonus/F-10 import.log, NONE, 1.1 tritonus-configure.in.diff, NONE, 1.1 tritonus-removed-code.diff, NONE, 1.1 tritonus-snapshot.sh, NONE, 1.1 tritonus-src-lib-alsa-Makefile.in.diff, NONE, 1.1 tritonus-src-lib-alsa-constants_check.h.diff, NONE, 1.1 tritonus-src-lib-fluidsynth.Makefile.in.diff, NONE, 1.1 tritonus.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Orcan Ogetbil oget at fedoraproject.org
Fri May 29 05:35:23 UTC 2009


Author: oget

Update of /cvs/pkgs/rpms/tritonus/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv19371/F-10

Modified Files:
	.cvsignore sources 
Added Files:
	import.log tritonus-configure.in.diff 
	tritonus-removed-code.diff tritonus-snapshot.sh 
	tritonus-src-lib-alsa-Makefile.in.diff 
	tritonus-src-lib-alsa-constants_check.h.diff 
	tritonus-src-lib-fluidsynth.Makefile.in.diff tritonus.spec 
Log Message:
* 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



--- NEW FILE import.log ---
tritonus-0_3_7-0_3_20090419cvs_fc10:F-10:tritonus-0.3.7-0.3.20090419cvs.fc10.src.rpm:1243575227

tritonus-configure.in.diff:

--- NEW FILE tritonus-configure.in.diff ---
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

tritonus-removed-code.diff:

--- NEW FILE tritonus-removed-code.diff ---
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);


--- NEW FILE tritonus-snapshot.sh ---
#!/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

tritonus-src-lib-alsa-Makefile.in.diff:

--- NEW FILE tritonus-src-lib-alsa-Makefile.in.diff ---
--- src/lib/alsa/Makefile.in	2003-11-08 20:50:38.000000000 +0100
+++ src/lib/alsa/Makefile.in	2006-11-30 21:12:28.000000000 +0100
@@ -10,7 +10,7 @@
 OSNAME=@OSNAME@
 ARCHNAME=@ARCHNAME@
 CC=@CC@
-CPPFLAGS=-g -Wall -Werror -I$(JAVADIR)/include -I$(JAVADIR)/include/$(OSNAME) -fPIC -D_REENTRANT #-pedantic
+CPPFLAGS=-g -Wall -I$(JAVADIR)/include -I$(JAVADIR)/include/$(OSNAME) -fPIC -D_REENTRANT #-pedantic
 INSTALL = @INSTALL@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
 INSTALL_DATA = @INSTALL_DATA@

tritonus-src-lib-alsa-constants_check.h.diff:

--- NEW FILE tritonus-src-lib-alsa-constants_check.h.diff ---
--- 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); */

tritonus-src-lib-fluidsynth.Makefile.in.diff:

--- NEW FILE tritonus-src-lib-fluidsynth.Makefile.in.diff ---
--- 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


--- NEW FILE tritonus.spec ---
%global cvs_version 20090419cvs

Name:		tritonus
Summary:	Java Sound API Implementation
URL:		http://www.tritonus.org/
Group:		System Environment/Libraries
Version:	0.3.7
Release:	0.3.%{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}-src-lib-alsa-Makefile.in.diff
Patch3:		%{name}-src-lib-alsa-constants_check.h.diff
Patch4:		%{name}-removed-code.diff
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires:	alsa-lib-devel
BuildRequires:	ant
BuildRequires:	cdparanoia-devel
BuildRequires:	esound-devel
BuildRequires:	fluidsynth-devel
BuildRequires:	java-devel >= 1.6
BuildRequires:	jorbis
BuildRequires:	jpackage-utils
BuildRequires:	libtool
BuildRequires:	libvorbis-devel
Requires:	java >= 1.6
Requires:	jpackage-utils
Requires:	jorbis

# The following circular dependencies are intentional. These classes need each other.
Requires:	%{name}-aos = %{version}-%{release}
Requires:	%{name}-core = %{version}-%{release}
Provides:	%{name}-shared = %{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.


%package aos
Summary:	An add-on to the Java Sound API
Group:		System Environment/Libraries
Requires:	%{name}-shared = %{version}-%{release}

%description aos
An add-on to the Java Sound API.

The AudioOutputStream architecture allow writing of audio data to audio files.
Supported types are .wav, .aiff and .au. It is an alternative to using 
AudioSystem.write(). The advantage over AudioSystem.write() is that with the
AudioOutputStream architecture, you can code your own main loop writing to the
audio file. The AudioOutputStream architecture implements a 'push' approach for
audio data, while AudioSystem.write() works with a "pull" approach. In many
situations, a 'push' approach is more flexible.

For an example of using the AudioOutputStream architecture, see the examples on
Java Sound Resources. There is an examples OscillatorFileAOS using the
AudioOutputStream architecture.

%package alsa
Summary:	ALSA based Implementations
Group:		System Environment/Libraries
Requires:	%{name}-shared = %{version}-%{release}

%description alsa
Implementations of javax.sound.sampled.Mixer and javax.sound.midi.MidiDevice
based on ALSA.

It provides (most of) the capabilities of ALSA pcm and seq to Java Sound.
Especially, you can use this mixer to get full-duplex support and MIDI in/out
plus a very stable sequencer for Java Sound on Linux.

%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 core
Summary:	Contains public classes and SPI instantiation support
Group:		System Environment/Libraries
Requires:	%{name}-shared = %{version}-%{release}

%description core
This package Contains public classes and SPI instantiation support.

%package dsp
Summary:	A collection of classes for digital signal processing (DSP)
Group:		System Environment/Libraries
Requires:	%{name}-shared = %{version}-%{release}

%description dsp
A collection of classes for digital signal processing (DSP).

For an example of how to use it, see AmplitudeConverter in the examples section
of the Java Sound Resources.

%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
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}.

%package javasequencer
Summary:	A Java-Sequencer
Group:		System Environment/Libraries
Requires:	%{name}-shared = %{version}-%{release}

%description javasequencer
Note that for this sequencer to provide stable timing, three conditions have to
be met:

1. System.currentTimeMillis() has to do what its name says: It provides the
system time in milliseconds.

2. A synthesizer or MIDI port implementation that responds immediately.
Testing with the synthesizer of the Sun implementation resulted in horrible
timing. Timing with the hardware synthesizer of a SB Life!, accessed via ALSA,
was very good. Working with WireProvider should be ok, too (assuming you manage
to meet the first point)

3. Small scheduling latencies. On the GNU/Linux system that were tested, even
heavy file system traffic didn't lead to noticeable effects on the timing.

For testing with this sequencer, using a recent version of MidiPlayer from the
Java Sound Examples is recommended.

%package jorbis
Summary:	A plug-in for Java that enables decoding of Ogg Vorbis bitstreams
Group:		System Environment/Libraries
Requires:	jorbis
Requires:	%{name}-shared = %{version}-%{release}

%description jorbis
A plug-in for Java that enables decoding of Ogg Vorbis bitstreams. It is based
on the pure-java decoder implementation of JCraft. The decoder runs in
real-time even on old machines, as long as your Java runtime has a JIT-Compiler
(most contemporary have).

%package misc
Summary:	Plug-in with several service provider of Tritonus
Group:		System Environment/Libraries
Requires:	%{name}-shared = %{version}-%{release}

%description misc
Plug-in with several service provider of Tritonus.

It contains the PCM2PCM converter, A-law and U-law converters, sample rate
converter, ADPCM converters, audio file readers and writers and MIDI file
readers and writers.

For an example of how to use the sample rate converter, see
SampleRateConverter.
http://www.jsresources.org/examples/SampleRateConverter.html

%package pvorbis
Summary:	Java plug-in that enables encoding to Ogg Vorbis bitstreams
Group:		System Environment/Libraries
Requires:	jorbis
Requires:	%{name}-shared = %{version}-%{release}

%description pvorbis
A plug-in for Java that enables encoding to Ogg Vorbis bitstreams.

%package src
Summary:	Sample rate converter
Group:		System Environment/Libraries
Requires:	%{name}-shared = %{version}-%{release}

%description src
Sources for a Sample rate converter.

%package vorbis
Summary:	A plug-in for Java that enables encoding to Ogg Vorbis bitstreams
Group:		System Environment/Libraries
Requires:	%{name}-shared = %{version}-%{release}

%description vorbis
A plug-in for Java that enables encoding to Ogg Vorbis bitstreams. It is based
on the native vorbis libraries.


%prep
%setup -q
%patch0 -p1 -b .lameandioctl
%patch1 -p0 -b .oldapi
%patch2 -p0 -b .oldapi
%patch3 -p0 -b .oldapi
%patch4 -p1 -b .oldapi

# 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`

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

%ant -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 jorbis`
%ant

#make %{?_smp_mflags} JAVADIR=%{_jvmdir}/java
make 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

%files alsa
%defattr(-,root,root,-)
%doc doc/ALSA* doc/Alsa* doc/bindists/alsa/readme.txt
%{_libdir}/%{name}/%{name}_alsa*.jar
%{_libdir}/%{name}/lib%{name}alsa.so

%files aos
%defattr(-,root,root,-)
%doc doc/AudioOutput*
%{_libdir}/%{name}/%{name}_aos*.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 core
%defattr(-,root,root,-)
%doc doc/%{name}faq.sgml
%{_libdir}/%{name}/%{name}_core*.jar

%files dsp
%defattr(-,root,root,-)
%{_libdir}/%{name}/%{name}_dsp*.jar

%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 gsm
%defattr(-,root,root,-)
%doc doc/compression*
%{_libdir}/%{name}/%{name}_gsm*.jar

%files javadoc
%defattr(-,root,root,-)
%{_javadocdir}/%{name}

%files javasequencer
%defattr(-,root,root,-)
%{_libdir}/%{name}/%{name}_javasequencer*.jar

%files jorbis
%defattr(-,root,root,-)
%{_libdir}/%{name}/%{name}_jorbis*.jar

%files misc
%defattr(-,root,root,-)
%{_libdir}/%{name}/%{name}_remaining*.jar

%files pvorbis
%defattr(-,root,root,-)
%{_libdir}/%{name}/%{name}_pvorbis*.jar

%files src
%defattr(-,root,root,-)
%{_libdir}/%{name}/%{name}_src*.jar

%files vorbis
%defattr(-,root,root,-)
%doc doc/bindists/vorbis/readme.txt
%{_libdir}/%{name}/%{name}_vorbis*.jar
%{_libdir}/%{name}/lib%{name}vorbis.so

%changelog
* 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


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/tritonus/F-10/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	29 May 2009 04:53:01 -0000	1.1
+++ .cvsignore	29 May 2009 05:34:52 -0000	1.2
@@ -0,0 +1 @@
+tritonus-0.3.7-20090419cvs.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/tritonus/F-10/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	29 May 2009 04:53:01 -0000	1.1
+++ sources	29 May 2009 05:34:52 -0000	1.2
@@ -0,0 +1 @@
+9ee30c439de874792d40c8ef0d11d873  tritonus-0.3.7-20090419cvs.tar.bz2




More information about the scm-commits mailing list