rpms/toot2/devel import.log, NONE, 1.1 toot2-build.xml, NONE, 1.1 toot2-snapshot.sh, NONE, 1.1 toot2.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Orcan Ogetbil oget at fedoraproject.org
Sat Jun 6 03:00:47 UTC 2009


Author: oget

Update of /cvs/pkgs/rpms/toot2/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv19628/devel

Modified Files:
	.cvsignore sources 
Added Files:
	import.log toot2-build.xml toot2-snapshot.sh toot2.spec 
Log Message:
* Sun Apr 26 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 3-0.4.beta2
- Update to 3beta2

* Sun Apr 19 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 3-0.3.beta1
- Use the system tritonus instead of the shipped one

* Wed Apr 15 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 3-0.2.beta1
- Disable building of AOT bits, since this package requires java > 1.5

* Wed Mar 25 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 3-0.1.beta1
- Initial Fedora build. SPEC file borrowed from SUSE.

* Mon Jan 14 2008 Toni Graffy <toni at links2linux.de> - 2.01-0.pm.1
- packaged release 2.01



--- NEW FILE import.log ---
toot2-3-0_4_beta2_fc10:HEAD:toot2-3-0.4.beta2.fc10.src.rpm:1244257185


--- NEW FILE toot2-build.xml ---
<?xml version='1.0'?>
<project name="toot2" default="jar" basedir=".">

	<!-- set global properties for this build -->
	<property name="name" value="toot2"/>
	<property name="package" value="*.*"/>
	<property name="version" value="2.01"/>
	<property name="jarname" value="${name}.jar"/>
	<property name="src" value="src"/>
	<property name="build" value="build"/>
	<property name="lib" value="lib"/>
	<property name="docs" value="javadocs"/>
	<property name="lib.tritonus" value="lib/tritonus_share.jar"/>
	<property name="classpath" value="${lib.tritonus}"/>

	<path id="lib.path">
		<pathelement path="${build}"/>
	</path>

	<!-- Create the build directory structure used by compile -->
	<target name="init">
		<mkdir dir="${build}" />
		<mkdir dir="${lib}" />
	</target>

	<!-- run javac to compile the source files -->
	<target name="compile" depends="init">
		<javac srcdir="${src}" source="1.5"
		       debug="true"    destdir="${build}">
				<classpath>
					<path refid="lib.path"/>
				</classpath>
		</javac>
	</target>

	<!-- make a jar file -->
	<target name="jar" depends="compile">
		<jar jarfile="${lib}/${jarname}" basedir="${build}">
			<fileset dir="${src}" includes="**/*.properties" />
			<fileset dir="${src}" includes="**/*.txt" />
			<fileset dir="${src}" includes="META-INF/**/*" />
		</jar>
	</target>
 
	<!-- Delete the ${build} and ${lib} directory trees -->
	<target name="clean">
		<delete dir="${build}"/>
		<delete dir="${docs}"/>
	</target>
</project>


--- NEW FILE toot2-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)
name=toot2
version=3.beta2
versionshort=3beta2

cd "$tmp"
svn co http://toot2.googlecode.com/svn/tags/$versionshort/ $name-$version
cd $name-$version
find . -type d -name "\.svn" | xargs rm -fr -- || :
cd ..
tar jcf "$pwd"/$name-$version.tar.bz2 $name-$version
echo "Written: $name-$version.tar.bz2"
cd - >/dev/null


--- NEW FILE toot2.spec ---
%global prerel .beta2

Name:             toot2
Summary:          Java models and frameworks for Audio/MIDI
URL:              http://toot.org.uk/index.html
Group:            Development/Libraries
Version:          3
Release:          0.4%{?prerel}%{?dist}
# License is GPLv2+ with some exceptions (a.k.a. Toot License)
License:          GPLv2+ with exceptions
BuildRoot:        %{_tmppath}/%{name}-%{version}-%{release}-root
# Upstream doesn't provide a tarball.
# We extract the source from their cvs.
Source:           %{name}-%{version}%{?prerel}.tar.bz2
Source1:          %{name}-build.xml
Source9:          %{name}-snapshot.sh

BuildArch:        noarch

BuildRequires:    ant
BuildRequires:    jpackage-utils
BuildRequires:    java-devel >= 1.7
BuildRequires:    tritonus-shared

Requires:         jpackage-utils
Requires:         java >= 1.7
Requires:         tritonus-shared

%description
Toot Software provides open source Java models and frameworks for Audio, MIDI
and Music Theory problem domains. These domains are modelled with minimal
coupling, namely audio mixer automation is saved as MIDI files and MIDI
synthesizers generate audio.

%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 -n %{name}-%{version}%{?prerel}

# Use the system tritonus instead of the shipped one:
rm -fr src/org/tritonus
mkdir lib
ln -s %{_libdir}/tritonus/tritonus_share.jar lib/
sed -i 's|classpath=.*|classpath="lib/tritonus_share.jar"|' javadoc.xml

# Fix EOL encoding
sed 's|\r||' src/uk/org/toot/LICENSE_1_0.txt > tmpfile
touch -r src/uk/org/toot/LICENSE_1_0.txt tmpfile
mv -f tmpfile src/uk/org/toot/LICENSE_1_0.txt

# Copy the builder
install -m 644 %{SOURCE1} build.xml

%build
export CLASSPATH="lib/tritonus_share.jar"
%ant -Dversion=%{version}
%ant -f javadoc.xml

%install
rm -rf %{buildroot}
# jars
install -dm 755 %{buildroot}%{_javadir}
install -pm 644 lib/%{name}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar

# javadoc
install -dm 755 %{buildroot}%{_javadocdir}/%{name}
cp -pr doc/* %{buildroot}%{_javadocdir}/%{name}


%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc src/uk/org/toot/*.txt
%{_javadir}/%{name}*.jar

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


%changelog
* Sun Apr 26 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 3-0.4.beta2
- Update to 3beta2

* Sun Apr 19 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 3-0.3.beta1
- Use the system tritonus instead of the shipped one

* Wed Apr 15 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 3-0.2.beta1
- Disable building of AOT bits, since this package requires java > 1.5

* Wed Mar 25 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 3-0.1.beta1
- Initial Fedora build. SPEC file borrowed from SUSE.

* Mon Jan 14 2008 Toni Graffy <toni at links2linux.de> - 2.01-0.pm.1
- packaged release 2.01


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/toot2/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	5 Jun 2009 21:42:02 -0000	1.1
+++ .cvsignore	6 Jun 2009 03:00:16 -0000	1.2
@@ -0,0 +1 @@
+toot2-3.beta2.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/toot2/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	5 Jun 2009 21:42:02 -0000	1.1
+++ sources	6 Jun 2009 03:00:16 -0000	1.2
@@ -0,0 +1 @@
+cb82ed557f8295a225dd54cc63404173  toot2-3.beta2.tar.bz2




More information about the fedora-extras-commits mailing list