Moved to jdk11

This commit is contained in:
Jiri 2020-12-08 13:55:50 +01:00
commit 729c553ab5
4 changed files with 16 additions and 9 deletions

View file

@ -1,7 +1,7 @@
Summary: Application for extraction and decompilation of JVM byte code
Name: java-runtime-decompiler
Version: 3.0
Release: 9%{?dist}
Version: 4.0
Release: 1%{?dist}
License: GPLv3
URL: https://github.com/pmikova/java-runtime-decompiler
Source0: https://github.com/pmikova/%{name}/archive/%{name}-%{version}.tar.gz
@ -24,10 +24,10 @@ BuildRequires: maven-surefire-provider-junit5
BuildRequires: maven-surefire
BuildRequires: maven-surefire-plugin
# depends on devel, not runtime (needs tools.jar)
BuildRequires: java-1.8.0-devel
BuildRequires: java-11-devel
BuildRequires: google-gson
BuildRequires: desktop-file-utils
Requires: java-1.8.0-devel
Requires: java-11-devel
Recommends: fernflower
Recommends: procyon-decompiler
@ -49,10 +49,13 @@ This package contains the API documentation for %{name}.
%build
pushd runtime-decompiler
%pom_remove_dep com.sun:tools
%pom_add_dep com.sun:tools
# not manipuling com.sun:tools in jdk11 phases
#%%pom_remove_dep com.sun:tools
#%%pom_add_dep com.sun:tools
%pom_remove_plugin :maven-jar-plugin
popd
# seting up build jdk, as most likely we will build separate binary by jdk8
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk
%mvn_build --xmvn-javadoc
%install
@ -89,6 +92,9 @@ desktop-file-install --vendor="fedora" \
%license LICENSE
%changelog
* Tue Dec 08 2020 Jiri Vanek <jvanek@redhat.com> - 4.0-1
- built by jdk11
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild