100 lines
3 KiB
RPMSpec
100 lines
3 KiB
RPMSpec
Name: vecmath1.2
|
|
Version: 1.14
|
|
Release: 7%{?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)
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: java-devel >= 1:1.6.0
|
|
BuildRequires: jpackage-utils
|
|
|
|
Requires: jpackage-utils
|
|
Requires: java >= 1:1.6.0
|
|
|
|
# Necessary due to architecture change to noarch
|
|
Obsoletes: %{name} < %{version}-%{release}
|
|
|
|
%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}
|
|
Requires: %{name} = %{version}-%{release}
|
|
# Necessary due to architecture change to noarch
|
|
Obsoletes: %{name}-javadoc < %{version}-%{release}
|
|
|
|
%description javadoc
|
|
This package contains the API documentation for %{name}.
|
|
|
|
|
|
%prep
|
|
%setup -q
|
|
find -name *.jar -delete
|
|
find -name *.class -delete
|
|
|
|
|
|
%build
|
|
make -f Makefile.unix all docs
|
|
pushd classes
|
|
jar cf ../%{name}.jar .
|
|
popd
|
|
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
# jar
|
|
install -D -m 644 %{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
|
|
|
# javadoc
|
|
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}/
|
|
cp -r docs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}/
|
|
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc README CHANGES
|
|
%{_javadir}/%{name}.jar
|
|
|
|
%files javadoc
|
|
%defattr(-,root,root,-)
|
|
%{_javadocdir}/%{name}/
|
|
|
|
|
|
%changelog
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14-7
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14-6
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Mon Sep 28 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.14-5
|
|
- Modernized spec file to conform to Java guidelines.
|
|
- Removed clash with vecmath package.
|
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.14-2
|
|
- Autorebuild for GCC 4.3
|
|
|
|
* Sat Sep 8 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.14-1
|
|
- Initial Fedora package
|