Name: vecmath1.2 Version: 1.14 Release: 4%{?dist} Summary: Free version of vecmath from the Java3D 1.2 specification Group: System Environment/Libraries License: MIT URL: http://www.objectclub.jp/download/vecmath_e Source0: http://www.objectclub.jp/download/files/vecmath//%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: java-javadoc java-gcj-compat-devel %description This is an 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. %package javadoc Group: Development/Libraries Summary: Javadoc for %{name} %description javadoc Javadoc for %{name}. %prep %setup -q %build make -f Makefile.unix all docs pushd classes jar cf ../%{name}-%{version}.jar . popd %install rm -rf $RPM_BUILD_ROOT # dirs mkdir -p $RPM_BUILD_ROOT%{_javadir} mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/ # jar install -m 644 %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir} ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/vecmath.jar # javadoc cp -r docs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/ ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # gcj %{_bindir}/aot-compile-rpm %clean rm -rf $RPM_BUILD_ROOT %post if [ -x %{_bindir}/rebuild-gcj-db ]; then %{_bindir}/rebuild-gcj-db fi %postun if [ -x %{_bindir}/rebuild-gcj-db ]; then %{_bindir}/rebuild-gcj-db fi %post javadoc rm -f %{_javadocdir}/%{name} ln -s %{name}-%{version} %{_javadocdir}/%{name} %files %defattr(-,root,root,-) %doc README CHANGES %{_javadir}/vecmath* %{_libdir}/gcj/%{name} %files javadoc %defattr(-,root,root,-) %doc %{_javadocdir}/%{name}-%{version} %ghost %doc %{_javadocdir}/%{name} %changelog * Sun Jul 26 2009 Fedora Release Engineering - 1.14-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 25 2009 Fedora Release Engineering - 1.14-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Tue Feb 19 2008 Fedora Release Engineering - 1.14-2 - Autorebuild for GCC 4.3 * Sat Sep 8 2007 Hans de Goede 1.14-1 - Initial Fedora package