packages java-vecmath1.2.spec
      Pages: < 1 >  DOWNLOAD      
Name:          java-vecmath1.2
Version:       1.14
Release:       2mamba
Summary:       Free version of vecmath from the Java3D 1.2 specification
Group:         System/Libraries/Java
Vendor:        openmamba
Distribution:  openmamba
Packager:      gil <puntogil@...>
URL:           http://www.objectclub.jp/download/vecmath_e
Source:        http://www.objectclub.jp/download/files/vecmath/vecmath1.2-%{version}.tar.gz
Patch0:        java-vecmath1.2-1.14-makefile_unix.patch
License:       MIT
BuildRequires: apache-ant
BuildRequires: jpackage-utils
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

%description
This is unofficial implementation(java source code) of the javax.vecmath package specified in the Java(TM)
3D API 1.2 . The package includes classes for 3-space vector/point, 4-space vector, 4x4, 3x3 matrix, quaternion,
axis-angle combination and etc. which are often utilized for computer graphics mathematics. Most of the
classes have single and double precision versions. Generic matrices' LU and SV decomposition are also there.

This is Free software, provided AS IS, with NO WARRANTY. Bug reports, comments are welcome.

Note that this implementation corresponds to Java3D 1.2 specification. My implementation has full
specification implemented and has full source code

%package javadoc
Group:          Documentation
Summary:        Javadoc for %{name}

%description javadoc
Free version of vecmath from the Java3D 1.2 specification.

This package contains javadoc for %{name}.

%prep

%setup -q -n vecmath1.2-%{version}
%patch0 -p0

%build
export CLASSDIR=/usr/lib/jvm/jre-sun/lib/rt.jar
make -f Makefile.unix all docs
pushd classes
	jar cf ../vecmath1.2-%{version}.jar .
popd
#c -d docs javax.vecmath
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

mkdir -p %{buildroot}%{_javadir}

install -m 644 vecmath1.2-%{version}.jar \
	%{buildroot}%{_javadir}/
ln -s vecmath1.2-%{version}.jar %{buildroot}%{_javadir}/vecmath1.2.jar
ln -s vecmath1.2-%{version}.jar %{buildroot}%{_javadir}/vecmath.jar

mkdir -p %{buildroot}%{_javadocdir}/vecmath1.2-%{version}
cp -r docs/* %{buildroot}%{_javadocdir}/vecmath1.2-%{version}
ln -s vecmath1.2-%{version} %{buildroot}%{_javadocdir}/vecmath1.2

%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

%files
%defattr(-,root,root)
%{_javadir}/vecmath.jar
%{_javadir}/vecmath1.2-%{version}.jar
%{_javadir}/vecmath1.2.jar
%doc CHANGES README

%files javadoc
%defattr(-,root,root)
%{_javadocdir}/vecmath1.2-%{version}
%{_javadocdir}/vecmath1.2

%changelog
* Sat Dec 04 2010 gil <puntogil@...> 1.14-2mamba
- rebuilt devel

* Fri Apr 17 2009 gil <puntogil@...> 1.14-1mamba
- package created by autospec