From c7cf54633e26f800602290d34cd32c5c0f649f88 Mon Sep 17 00:00:00 2001 From: Jayashree Huttanagoudar Date: Mon, 15 Jun 2020 16:57:05 +0530 Subject: [PATCH] Added --with-vendor id and URL family of switches --- java-1.8.0-openjdk.spec | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/java-1.8.0-openjdk.spec b/java-1.8.0-openjdk.spec index 7046f65..44d26af 100644 --- a/java-1.8.0-openjdk.spec +++ b/java-1.8.0-openjdk.spec @@ -245,7 +245,7 @@ %global updatever %(VERSION=%{whole_update}; echo ${VERSION##*u}) # eg jdk8u60-b27 -> b27 %global buildver %(VERSION=%{version_tag}; echo ${VERSION##*-}) -%global rpmrelease 1 +%global rpmrelease 2 # Define milestone (EA for pre-releases, GA ("fcs") for releases) # Release will be (where N is usually a number starting at 1): # - 0.N%%{?extraver}%%{?dist} for EA releases, @@ -267,6 +267,23 @@ %global javaver 1.%{majorver}.0 +# Define what url should JVM offer in case of a crash report +# order may be important, epel may have rhel declared +%if 0%{?epel} +%global bugs https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora%20EPEL&component=%{name}&version=epel%{epel} +%else +%if 0%{?fedora} +# Does not work for rawhide, keeps the version field empty +%global bugs https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora&component=%{name}&version=%{fedora} +%else +%if 0%{?rhel} +%global bugs https://bugzilla.redhat.com/enter_bug.cgi?product=Red%20Hat%20Enterprise%20Linux%20%{rhel}&component=%{name} +%else +%global bugs https://bugzilla.redhat.com/enter_bug.cgi +%endif +%endif +%endif + # parametrized macros are order-sensitive %global compatiblename %{name} %global fullversion %{compatiblename}-%{version}-%{release} @@ -1680,6 +1697,10 @@ function buildjdk() { --with-milestone=%{milestone} \ --with-update-version=%{updatever} \ --with-build-number=%{buildver} \ + --with-vendor-name="Red Hat, Inc" \ + --with-vendor-url="https://www.redhat.com/" \ + --with-vendor-bug-url="%{bugs}" \ + --with-vendor-vm-bug-url="%{bugs}" \ --with-boot-jdk=${buildjdk} \ --with-debug-level=${debuglevel} \ --enable-unlimited-crypto \ @@ -2234,6 +2255,10 @@ require "copy_jdk_configs.lua" %endif %changelog +* Mon Jun 29 2020 Jiri Vanek - 1:1.8.0.262.b03-0.2.ea +- Set vendor property and vendor URLs +- Made URLs to be preconfigured by os + * Wed Jun 24 2020 Andrew Hughes - 1:1.8.0.262.b03-0.1.ea - Update to aarch64-shenandoah-jdk8u262-b03-shenandoah-merge-2020-05-20.