forked from pool/felix-utils
Accepting request 1120328 from Java:packages
source/target 8 == fix build with jdk 21 OBS-URL: https://build.opensuse.org/request/show/1120328 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/felix-utils?expand=0&rev=4
This commit is contained in:
@@ -25,7 +25,8 @@
|
|||||||
<property name="test.reports" value="${build.dir}/test-reports"/>
|
<property name="test.reports" value="${build.dir}/test-reports"/>
|
||||||
<property name="reporting.outputDirectory" value="${build.dir}/site"/>
|
<property name="reporting.outputDirectory" value="${build.dir}/site"/>
|
||||||
|
|
||||||
<property name="compiler.source" value="1.7"/>
|
<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}"/>
|
||||||
|
|
||||||
<!-- ====================================================================== -->
|
<!-- ====================================================================== -->
|
||||||
@@ -65,6 +66,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"
|
||||||
|
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 25 15:11:28 UTC 2023 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
- Build with source and target levels 8
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Mar 31 06:19:36 UTC 2020 - Fridrich Strba <fstrba@suse.com>
|
Tue Mar 31 06:19:36 UTC 2020 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package felix-utils
|
# spec file for package felix-utils
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2023 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
|
||||||
@@ -30,7 +30,8 @@ Source1: %{name}-build.xml
|
|||||||
Patch0: 0000-Port-to-osgi-cmpn.patch
|
Patch0: 0000-Port-to-osgi-cmpn.patch
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: javapackages-local
|
BuildRequires: java-devel >= 1.8
|
||||||
|
BuildRequires: javapackages-local >= 6
|
||||||
BuildRequires: osgi-compendium
|
BuildRequires: osgi-compendium
|
||||||
BuildRequires: osgi-core
|
BuildRequires: osgi-core
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@@ -60,11 +61,6 @@ build-jar-repository -s lib osgi-core osgi-compendium
|
|||||||
build-jar-repository -s lib junit hamcrest/core mockito
|
build-jar-repository -s lib junit hamcrest/core mockito
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%pom_remove_plugin :apache-rat-plugin
|
|
||||||
|
|
||||||
%pom_remove_parent .
|
|
||||||
%pom_xpath_inject "pom:project" "<groupId>org.apache.felix</groupId>" .
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{ant} \
|
%{ant} \
|
||||||
%if %{without tests}
|
%if %{without tests}
|
||||||
@@ -78,7 +74,7 @@ install -dm 0755 %{buildroot}%{_javadir}/felix
|
|||||||
install -pm 0644 target/%{bundle}-%{version}.jar %{buildroot}%{_javadir}/felix/%{bundle}.jar
|
install -pm 0644 target/%{bundle}-%{version}.jar %{buildroot}%{_javadir}/felix/%{bundle}.jar
|
||||||
# pom
|
# pom
|
||||||
install -dm 0755 %{buildroot}%{_mavenpomdir}/felix
|
install -dm 0755 %{buildroot}%{_mavenpomdir}/felix
|
||||||
install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/felix/%{bundle}.pom
|
%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/felix/%{bundle}.pom
|
||||||
%add_maven_depmap felix/%{bundle}.pom felix/%{bundle}.jar
|
%add_maven_depmap felix/%{bundle}.pom felix/%{bundle}.jar
|
||||||
# javadoc
|
# javadoc
|
||||||
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
Reference in New Issue
Block a user