Switch Java compiler source/target to 1.8
Resolves: RHEL-52686
This commit is contained in:
parent
1f3e3b31dc
commit
7ea80393a1
16
bsf.spec
16
bsf.spec
@ -3,11 +3,11 @@ Version: 2.4.0
|
||||
Release: 53%{?dist}
|
||||
Summary: Bean Scripting Framework
|
||||
License: Apache-2.0
|
||||
URL: http://commons.apache.org/bsf/
|
||||
URL: https://commons.apache.org/bsf/
|
||||
BuildArch: noarch
|
||||
ExclusiveArch: %{java_arches} noarch
|
||||
|
||||
Source0: http://apache.mirror.anlx.net//commons/%{name}/source/%{name}-src-%{version}.tar.gz
|
||||
Source0: https://archive.apache.org/dist/commons/bsf/source/bsf-src-%{version}.tar.gz
|
||||
Source1: %{name}-pom.xml
|
||||
|
||||
Patch0: build-file.patch
|
||||
@ -19,6 +19,8 @@ BuildRequires: apache-parent
|
||||
BuildRequires: xalan-j2
|
||||
BuildRequires: apache-commons-logging
|
||||
|
||||
%{?javadoc_package}
|
||||
|
||||
%description
|
||||
Bean Scripting Framework (BSF) is a set of Java classes which provides
|
||||
scripting language support within Java applications, and access to Java
|
||||
@ -55,19 +57,23 @@ find -name \*.jar -delete
|
||||
%mvn_alias : org.apache.bsf:
|
||||
|
||||
%build
|
||||
export CLASSPATH=$(build-classpath apache-commons-logging xalan-j2)
|
||||
ant -Dsource.level=1.7 -Dant.build.javac.target=1.7 jar
|
||||
build-jar-repository -s lib apache-commons-logging xalan-j2
|
||||
%ant -Dsource.level=1.8 -Dant.build.javac.target=1.8 jar javadocs
|
||||
|
||||
%mvn_artifact %{SOURCE1} build/lib/%{name}.jar
|
||||
|
||||
%install
|
||||
%mvn_install
|
||||
%mvn_install -J build/javadocs
|
||||
|
||||
%files -f .mfiles
|
||||
%license LICENSE.txt NOTICE.txt
|
||||
%doc AUTHORS.txt CHANGES.txt README.txt TODO.txt RELEASE-NOTE.txt
|
||||
|
||||
%changelog
|
||||
* Mon Aug 05 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.4.0-53
|
||||
- Switch Java compiler source/target to 1.8
|
||||
- Resolves: RHEL-52687
|
||||
|
||||
* Thu Aug 01 2024 Troy Dawson <tdawson@redhat.com> - 2.4.0-53
|
||||
- Bump release for Aug 2024 java mass rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user