From f728d37321bdf6aaa3877418cf699c05a2bb191d Mon Sep 17 00:00:00 2001 From: Marian Koncek Date: Wed, 28 Feb 2024 13:18:20 +0100 Subject: [PATCH] Use Java annotation removal tool Relates: RHEL-28121 --- ongres-scram.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ongres-scram.spec b/ongres-scram.spec index d1b51fb..9c47b49 100644 --- a/ongres-scram.spec +++ b/ongres-scram.spec @@ -11,6 +11,7 @@ Source0: https://github.com/ongres/%upstream_name/archive/%upstream_versio BuildRequires: maven-local BuildRequires: mvn(com.ongres.stringprep:saslprep) BuildRequires: mvn(junit:junit) +BuildRequires: jurand BuildArch: noarch ExclusiveArch: %{java_arches} noarch @@ -50,7 +51,7 @@ find \( -name '*.jar' -o -name '*.class' \) -delete # Retired in Fedora; not required for build %pom_remove_dep com.google.code.findbugs:annotations -sed -i 's/.*SuppressFBWarnings.*//' common/src/main/java/com/ongres/scram/common/message/ServerFinalMessage.java +%java_remove_annotations . -s -n SuppressFBWarnings %build %mvn_build -s