Sync from SUSE:SLFO:Main ongres-scram revision ea72d692227b8946bbb81c76c230af2f

This commit is contained in:
Adrian Schröter 2025-01-27 11:25:04 +01:00
commit 3235b1d566
4 changed files with 141 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

24
ongres-scram.changes Normal file
View File

@ -0,0 +1,24 @@
-------------------------------------------------------------------
Thu Oct 26 10:43:53 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- Build with source and target levels 8
-------------------------------------------------------------------
Wed Sep 27 07:59:43 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- Remove dependency on findbugs
-------------------------------------------------------------------
Thu Mar 3 15:57:41 UTC 2022 - Michael Calmer <mc@suse.com>
- update to version 2.1
* Added standard SASLPrep (bsc#1196693)(jsc#SLE-23993, jsc#SLE-23994)
* Failover to bouncy castle implementation of
PBKDF2WithHmacSHA256 to support Oracle JDK 7
* Updated saslprep to version 1.1 to remove a build dependency
coming from stringprep module
-------------------------------------------------------------------
Thu Aug 27 14:34:03 UTC 2020 - Fridrich Strba <fstrba@suse.com>
- Initial packaging of ongress-scram 1.0.0-beta.2

91
ongres-scram.spec Normal file
View File

@ -0,0 +1,91 @@
#
# spec file
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global upstream_name scram
%global upstream_version 2.1
Name: ongres-%{upstream_name}
Version: %(echo %{upstream_version} | sed 's/-/~/g')
Release: 0
Summary: Salted Challenge Response Authentication Mechanism - Java Implementation
License: BSD-2-Clause
URL: https://github.com/ongres/%{upstream_name}
Source0: https://github.com/ongres/%{upstream_name}/archive/%{upstream_version}/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires: fdupes
BuildRequires: java-devel >= 1.8
BuildRequires: maven-local
BuildRequires: mvn(com.google.code.findbugs:jsr305)
BuildRequires: mvn(com.ongres.stringprep:saslprep)
BuildArch: noarch
%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}
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}
%package parent
Summary: Parent POM of %{name}
%description parent
This package contains the %{name} parent POM.
%prep
%autosetup -p1 -n "%{upstream_name}-%{upstream_version}"
find \( -name '*.jar' -o -name '*.class' \) -delete
%pom_remove_plugin :nexus-staging-maven-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-dependency-plugin client
%pom_remove_plugin -r :maven-javadoc-plugin
%pom_remove_dep com.google.code.findbugs:annotations
sed -i 's/.*SuppressFBWarnings.*//' common/src/main/java/com/ongres/scram/common/message/ServerFinalMessage.java
%pom_xpath_set "pom:project/pom:properties/pom:java.version" "1.8"
%build
%{mvn_build} -s -f -- -Dsource=8
%install
%mvn_install
%fdupes -s %{buildroot}%{_javadocdir}
%files -f .mfiles-common
%license LICENSE
%files client -f .mfiles-client
%license LICENSE
%files javadoc -f .mfiles-javadoc
%license LICENSE
%files parent -f .mfiles-parent
%license LICENSE
%changelog

BIN
scram-2.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.