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