This repository has been archived on 2026-09-10. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
vecmath/vecmath.spec

119 lines
3.7 KiB
RPMSpec

Name: vecmath
Version: 1.5.2
Release: 3%{?dist}
Summary: The 3D vector math Java package, javax.vecmath
Group: Development/Libraries
# License is GNU General Public License, version 2, with the Classpath Exception
License: GPLv2 with exceptions
URL: http://java.net/projects/vecmath
# svn export https://svn.java.net/svn/vecmath~svn/tags/rel-1_5_2-fcs vecmath-1.5.2/vecmath
# svn export https://svn.java.net/svn/vecmath-test~svn/tags/rel-1_5_2-fcs vecmath-1.5.2/vecmath-test
# find vecmath-1.5.2 -name "*.class" -delete
# find vecmath-1.5.2 -name "*.jar" -delete
# find vecmath-1.5.2 -name "*.so" -delete
# find vecmath-1.5.2 -name "unzip*" -delete
# tar czf vecmath-1.5.2-clean-src-svn.tar.gz vecmath-1.5.2
Source0: %{name}-%{version}-clean-src-svn.tar.gz
# originally taken from http://repo1.maven.org/maven2/java3d/
Source1: %{name}-%{version}.pom
Patch0: %{name}-%{version}-javadoc-link.patch
Patch1: %{name}-%{version}-fix-incorrect-fsf-address.patch
BuildArch: noarch
BuildRequires: ant
BuildRequires: ant-junit
BuildRequires: junit
BuildRequires: java-devel >= 1:1.6.0
BuildRequires: java-javadoc
BuildRequires: jpackage-utils
Requires: java >= 1:1.6.0
Requires: jpackage-utils
%description
The 3D vector math Java package, javax.vecmath.
%package javadoc
Group: Documentation
Summary: Javadoc for %{name}
Requires: jpackage-utils
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q
%patch0 -p0
%patch1 -p0
iconv -f iso8859-1 -t utf-8 vecmath/COPYRIGHT.txt > vecmath/COPYRIGHT.txt.conv && mv -f vecmath/COPYRIGHT.txt.conv vecmath/COPYRIGHT.txt
sed -i 's/\r//' vecmath/COPYRIGHT.txt vecmath/LICENSE.txt
cp -pr vecmath/docs .
cp -p vecmath/COPYRIGHT.txt .
cp -p vecmath/LICENSE.txt .
cp -p vecmath/LICENSE-SPEC.html .
%build
(
cd %{name}
%ant jar docs
)
%install
install -D -p -m 644 %{name}/build/opt/lib/ext/%{name}.jar %{buildroot}%{_javadir}/%{name}.jar
mkdir -p %{buildroot}%{_mavenpomdir}
install -pm 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
%add_maven_depmap
mkdir -p %{buildroot}%{_javadocdir}/%{name}
cp -a %{name}/build/javadocs/* %{buildroot}%{_javadocdir}/%{name}
%check
(
cd %{name}-test
export CLASSPATH=$(built-classpath junit)
%ant test
)
%files
%doc docs/api-changes* COPYRIGHT.txt LICENSE.txt LICENSE-SPEC.html
%{_javadir}/%{name}.jar
%{_mavenpomdir}/JPP-%{name}.pom
%{_mavendepmapfragdir}/%{name}
%files javadoc
%doc COPYRIGHT.txt LICENSE.txt LICENSE-SPEC.html
%{_javadocdir}/%{name}
%changelog
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Fri Sep 07 2012 gil cattaneo <puntogil@libero.it> 1.5.2-1
- Use tarball from 1.5.2 tag (no change in source code)
- Added maven pom
- Adapt to current guideline
- Added javadoc sub package
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-5.20090922cvs
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-4.20090922cvs
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-3.20090922cvs
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Mon Sep 28 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0-2.20090922cvs
- Minor review fixes.
* Tue Sep 22 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0-1.20090922cvs
- First release.