%global upstream_version 3.1 Name: ongres-scram Version: %(echo %{upstream_version} | sed 's/-/~/g') Release: %autorelease Summary: Salted Challenge Response Authentication Mechanism (SCRAM) - Java Implementation License: BSD-2-Clause URL: https://github.com/ongres/scram Source0: https://github.com/ongres/scram/archive/%{upstream_version}/scram-%{upstream_version}.tar.gz BuildArch: noarch ExclusiveArch: %{java_arches} noarch BuildRequires: jurand BuildRequires: maven-local BuildRequires: mvn(com.ongres.stringprep:saslprep) BuildRequires: mvn(org.junit.jupiter:junit-jupiter) # TODO Remove in Fedora 46 Obsoletes: %{name}-javadoc < 3.1-3 %description This is a Java implementation of SCRAM (Salted Challenge Response Authentication Mechanism) which is part of the family of Simple Authentication and Security Layer (SASL, RFC 4422) authentication mechanisms. It is described as part of RFC 5802 and RFC7677. %package client Summary: Client for %{name} %description client This package contains the client for %{name} %prep %autosetup -p1 -n "scram-%{upstream_version}" find \( -name '*.jar' -o -name '*.class' \) -delete %pom_remove_plugin -r :maven-javadoc-plugin %pom_remove_plugin -r :maven-enforcer-plugin %pom_remove_plugin -r :flatten-maven-plugin %pom_remove_plugin -r :maven-invoker-plugin %pom_remove_dep org.jetbrains:annotations scram-parent %java_remove_annotations . -s -n NotNull -n Unmodifiable -n Nullable %mvn_package com.ongres.scram:scram-aggregator __noinstall %mvn_package com.ongres.scram:scram-parent __noinstall %pom_xpath_inject 'pom:plugin[pom:artifactId = "maven-jar-plugin"]/pom:configuration/pom:archive' ' true ' scram-parent %build %mvn_build -j -s %install %mvn_install %files -f .mfiles-scram-common %license LICENSE %files client -f .mfiles-scram-client %license LICENSE %changelog %autochangelog