This commit is contained in:
parent
88d79f03ee
commit
230c82a2e3
@ -13,7 +13,8 @@
|
||||
<property name="spec.version" value="2.1"/>
|
||||
<property name="activation.version" value="${project.version}"/>
|
||||
|
||||
<property name="compiler.source" value="1.8"/>
|
||||
<property name="compiler.release" value="8"/>
|
||||
<property name="compiler.source" value="1.${compiler.release}"/>
|
||||
<property name="compiler.target" value="${compiler.source}"/>
|
||||
|
||||
<property name="build.finalName" value="${project.artifactId}-${project.version}"/>
|
||||
@ -43,6 +44,7 @@
|
||||
debug="true"
|
||||
optimize="false"
|
||||
deprecation="true"
|
||||
release="${compiler.release}"
|
||||
target="${compiler.target}"
|
||||
verbose="false"
|
||||
fork="false"
|
||||
@ -57,6 +59,7 @@
|
||||
debug="true"
|
||||
optimize="false"
|
||||
deprecation="true"
|
||||
release="9"
|
||||
target="9"
|
||||
verbose="false"
|
||||
fork="false"
|
||||
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 29 14:28:00 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- The binaries are compatible with java 1.8
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 3 14:26:41 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package jakarta-activation
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -28,7 +28,11 @@ Source1: %{name}-build.xml
|
||||
BuildRequires: ant
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: java-devel >= 9
|
||||
BuildRequires: javapackages-local
|
||||
BuildRequires: javapackages-local >= 6
|
||||
# The automatic requires would be java-headless >= 9, but the
|
||||
# binaries are java 8 compatible
|
||||
%define __requires_exclude java-headless
|
||||
Requires: java-headless >= 1.8
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
@ -47,32 +51,28 @@ This package contains javadoc for %{name}.
|
||||
%setup -q -n jaf-%{version}
|
||||
cp %{SOURCE1} api/build.xml
|
||||
|
||||
%pom_remove_parent api
|
||||
|
||||
%build
|
||||
pushd api
|
||||
%{ant} package javadoc
|
||||
popd
|
||||
|
||||
%install
|
||||
pushd api
|
||||
# jars
|
||||
mkdir -p %{buildroot}%{_javadir}/%{name}
|
||||
cp -a target/%{artifact_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{artifact_name}.jar
|
||||
install -d -m 0755 %{buildroot}%{_javadir}/%{name}
|
||||
install -pm 0644 api/target/%{artifact_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{artifact_name}.jar
|
||||
|
||||
#pom
|
||||
install -d -m 755 %{buildroot}%{_mavenpomdir}/%{name}
|
||||
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{artifact_name}.pom
|
||||
install -d -m 0755 %{buildroot}%{_mavenpomdir}/%{name}
|
||||
%mvn_install_pom api/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{artifact_name}.pom
|
||||
%add_maven_depmap %{name}/%{artifact_name}.pom %{name}/%{artifact_name}.jar
|
||||
|
||||
# javadoc
|
||||
mkdir -p %{buildroot}%{_javadocdir}/%{name}
|
||||
cp -a target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
||||
popd
|
||||
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||
cp -a api/target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
||||
|
||||
%fdupes -s %{buildroot}%{_javadocdir}
|
||||
|
||||
%files -f api/.mfiles
|
||||
%files -f .mfiles
|
||||
%doc README.md
|
||||
%license LICENSE.md NOTICE.md
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user