Группа :: Система/Библиотеки
Пакет: vecmath1.2
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Group: System/Libraries
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-macros-java
# END SourceDeps(oneline)
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-11-compat
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: vecmath1.2
Version: 1.14
Release: alt1_26jpp11
Summary: Free version of vecmath from the Java3D 1.2 specification
License: MIT
URL: http://www.objectclub.jp/download/vecmath_e
Source0: http://www.objectclub.jp/download/files/vecmath//%{name}-%{version}.tar.gz
Patch0: vecmath1.2-1.14-javadoc-fixes.patch
Patch1: vecmath1.2-1.14-javac-1.8.patch
BuildArch: noarch
Requires: javapackages-filesystem
# Necessary due to architecture change to noarch
Source44: import.info
%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/Other
Summary: Javadoc for %{name}
# Necessary due to architecture change to noarch
BuildArch: noarch
%description javadoc
This package contains the API documentation for %{name}.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
find -name *.jar -delete
find -name *.class -delete
%build
make -f Makefile.unix all docs
pushd classes
jar cf ../%{name}.jar .
popd
%install
# 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}/
%files
%doc README CHANGES
%{_javadir}/%{name}.jar
%files javadoc
%{_javadocdir}/%{name}/
%changelog
…
Полный changelog можно просмотреть здесь
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-macros-java
# END SourceDeps(oneline)
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-11-compat
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: vecmath1.2
Version: 1.14
Release: alt1_26jpp11
Summary: Free version of vecmath from the Java3D 1.2 specification
License: MIT
URL: http://www.objectclub.jp/download/vecmath_e
Source0: http://www.objectclub.jp/download/files/vecmath//%{name}-%{version}.tar.gz
Patch0: vecmath1.2-1.14-javadoc-fixes.patch
Patch1: vecmath1.2-1.14-javac-1.8.patch
BuildArch: noarch
Requires: javapackages-filesystem
# Necessary due to architecture change to noarch
Source44: import.info
%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/Other
Summary: Javadoc for %{name}
# Necessary due to architecture change to noarch
BuildArch: noarch
%description javadoc
This package contains the API documentation for %{name}.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
find -name *.jar -delete
find -name *.class -delete
%build
make -f Makefile.unix all docs
pushd classes
jar cf ../%{name}.jar .
popd
%install
# 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}/
%files
%doc README CHANGES
%{_javadir}/%{name}.jar
%files javadoc
%{_javadocdir}/%{name}/
%changelog
…
Полный changelog можно просмотреть здесь