Group :: Desenvolvimento/Outros
RPM: vecmath
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Group: Development/Other
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-default
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%global commit 41fddda1a4f430e45bef0154e1fdfe5671025f1e
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: vecmath
Version: 1.6.0
Release: alt1_0.13.20130710git41fdddajpp11
Summary: The 3D vector math Java package, javax.vecmath
# License is GNU General Public License, version 2, with the Classpath Exception
License: GPLv2 with exceptions
URL: http://github.com/hharrison/vecmath
Source0: https://github.com/hharrison/vecmath/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
# missing pom file
# https://bugzilla.redhat.com/show_bug.cgi?id=1022506
Source1: https://repo1.maven.org/maven2/javax/vecmath/vecmath/1.5.2/vecmath-1.5.2.pom
# Fix link to javadoc and javadoc errors
Patch0: vecmath-javadoc.patch
BuildArch: noarch
BuildRequires: ant
BuildRequires: java-javadoc
BuildRequires: javapackages-local
Source44: import.info
%description
The 3D vector math Java package, javax.vecmath.
%package javadoc
Group: Development/Java
Summary: Javadoc for %{name}
BuildArch: noarch
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -qn %{name}-%{commit}
%patch0 -p1
sed -e "s|<version>1.5.2</version>|<version>1.6.0</version>|" %{SOURCE1} > %{name}.pom
%mvn_file javax.vecmath:vecmath %{name}
sed -i '/target=/d' build.xml
%build
%ant -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8
%install
%mvn_artifact %{name}.pom build/jars/%{name}.jar
%mvn_install -J build/javadoc
%files -f .mfiles
%doc docs/api-changes* COPYRIGHT.txt LICENSE.txt LICENSE-SPEC.html
%files javadoc -f .mfiles-javadoc
%doc COPYRIGHT.txt LICENSE.txt LICENSE-SPEC.html
%changelog
…
Todas as alterações você pod ver aqui
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-default
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%global commit 41fddda1a4f430e45bef0154e1fdfe5671025f1e
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: vecmath
Version: 1.6.0
Release: alt1_0.13.20130710git41fdddajpp11
Summary: The 3D vector math Java package, javax.vecmath
# License is GNU General Public License, version 2, with the Classpath Exception
License: GPLv2 with exceptions
URL: http://github.com/hharrison/vecmath
Source0: https://github.com/hharrison/vecmath/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
# missing pom file
# https://bugzilla.redhat.com/show_bug.cgi?id=1022506
Source1: https://repo1.maven.org/maven2/javax/vecmath/vecmath/1.5.2/vecmath-1.5.2.pom
# Fix link to javadoc and javadoc errors
Patch0: vecmath-javadoc.patch
BuildArch: noarch
BuildRequires: ant
BuildRequires: java-javadoc
BuildRequires: javapackages-local
Source44: import.info
%description
The 3D vector math Java package, javax.vecmath.
%package javadoc
Group: Development/Java
Summary: Javadoc for %{name}
BuildArch: noarch
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -qn %{name}-%{commit}
%patch0 -p1
sed -e "s|<version>1.5.2</version>|<version>1.6.0</version>|" %{SOURCE1} > %{name}.pom
%mvn_file javax.vecmath:vecmath %{name}
sed -i '/target=/d' build.xml
%build
%ant -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8
%install
%mvn_artifact %{name}.pom build/jars/%{name}.jar
%mvn_install -J build/javadoc
%files -f .mfiles
%doc docs/api-changes* COPYRIGHT.txt LICENSE.txt LICENSE-SPEC.html
%files javadoc -f .mfiles-javadoc
%doc COPYRIGHT.txt LICENSE.txt LICENSE-SPEC.html
%changelog
…
Todas as alterações você pod ver aqui