commit 5bc26b22d17646acf14094b2dcea1029c5549fcc129d4791183abf9eddb4bdc5 Author: Adrian Schröter Date: Fri May 31 15:30:17 2024 +0200 Sync from SUSE:SLFO:Main jbcrypt revision 6f1f0b0d778cfb875a08c6b3f5cf69d2 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/jbcrypt-1.0.2.pom b/jbcrypt-1.0.2.pom new file mode 100644 index 0000000..8148ed3 --- /dev/null +++ b/jbcrypt-1.0.2.pom @@ -0,0 +1,33 @@ + + + + + + + + 4.0.0 + org.connectbot + jbcrypt + 1.0.2 + jBCrypt + A fork of jBCrypt with more modern OpenBSD algorithms. + https://github.com/kruton/jbcrypt + + + ISC + https://www.isc.org/downloads/software-support-policy/isc-license/ + + + + + Kenny Root + kenny@the-b.org + + + + https://github.com/kruton/jbcrypt.git + https://github.com/kruton/jbcrypt.git + https://github.com/kruton/jbcrypt + + diff --git a/jbcrypt-1.0.2.tar.gz b/jbcrypt-1.0.2.tar.gz new file mode 100644 index 0000000..a9655e5 --- /dev/null +++ b/jbcrypt-1.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0a18110f070f53e2f9ed1609e1a01a1d2042bbe87cba909a381f2f5a055a1142 +size 78514 diff --git a/jbcrypt-build.xml b/jbcrypt-build.xml new file mode 100644 index 0000000..24b600b --- /dev/null +++ b/jbcrypt-build.xml @@ -0,0 +1,196 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + =================================== WARNING =================================== + JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed. + =============================================================================== + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jbcrypt.changes b/jbcrypt.changes new file mode 100644 index 0000000..dd8693f --- /dev/null +++ b/jbcrypt.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Mar 12 17:41:30 UTC 2024 - Fridrich Strba + +- Initial packaging of version 1.0.2 diff --git a/jbcrypt.spec b/jbcrypt.spec new file mode 100644 index 0000000..4d39830 --- /dev/null +++ b/jbcrypt.spec @@ -0,0 +1,78 @@ +# +# spec file for package jbcrypt +# +# Copyright (c) 2024 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/ +# + + +Name: jbcrypt +Version: 1.0.2 +Release: 0 +Summary: An implementation the OpenBSD Blowfish password hashing algorithm +License: ISC +Group: Development/Libraries/Java +URL: https://github.com/kruton/%{name} +Source0: https://github.com/kruton/%{name}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz +Source1: %{name}-build.xml +Source2: https://repo1.maven.org/maven2/org/connectbot/%{name}/%{version}/%{name}-%{version}.pom +BuildRequires: ant +BuildRequires: fdupes +BuildRequires: java-devel >= 1.8 +BuildRequires: javapackages-local >= 6 +BuildArch: noarch + +%description +jBCrypt is an implementation the OpenBSD Blowfish password hashing +algorithm. + +This system hashes passwords using a version of Bruce Schneier's +Blowfish block cipher with modifications designed to raise the cost of +off-line password cracking. The computation cost of the algorithm is +parameterised, so it can be increased as computers get faster. + +%package javadoc +Summary: Javadoc for %{name} +Group: Development/Libraries/Java + +%description javadoc +This package contains API documentation for %{name}. + +%prep +%setup -q +cp %{SOURCE1} build.xml + +%build +%{ant} -Dtest.skip=true package javadoc + +%install +install -dm 0755 %{buildroot}%{_javadir} +install -pm 0644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar + +install -dm 0755 %{buildroot}%{_mavenpomdir} +%{mvn_install_pom} %{SOURCE2} %{buildroot}%{_mavenpomdir}/%{name}.pom +%add_maven_depmap %{name}.pom %{name}.jar -a org.connectbot.jbcrypt:jbcrypt + +install -dm 0755 %{buildroot}%{_javadocdir} +cp -r target/site/apidocs %{buildroot}%{_javadocdir}/%{name} +%fdupes -s %{buildroot}%{_javadocdir} + +%files -f .mfiles +%doc README +%license LICENSE + +%files javadoc +%{_javadocdir}/%{name} +%license LICENSE + +%changelog