From 2c8c0b5b2e5a0519a16ea7d08e1c6caf11a67902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Mon, 14 Oct 2024 14:49:41 +0200 Subject: [PATCH] Sync from SUSE:ALP:Source:Standard:1.0 libb2 revision 53300de8b6c60ee8ac312fd4689c5df2 --- .gitattributes | 23 ++++++++++++ libb2-0.98.1.tar.gz | 3 ++ libb2.changes | 4 +++ libb2.spec | 86 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 116 insertions(+) create mode 100644 .gitattributes create mode 100644 libb2-0.98.1.tar.gz create mode 100644 libb2.changes create mode 100644 libb2.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /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/libb2-0.98.1.tar.gz b/libb2-0.98.1.tar.gz new file mode 100644 index 0000000..437adc9 --- /dev/null +++ b/libb2-0.98.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:53626fddce753c454a3fea581cbbc7fe9bbcf0bc70416d48fdbbf5d87ef6c72e +size 534928 diff --git a/libb2.changes b/libb2.changes new file mode 100644 index 0000000..490b633 --- /dev/null +++ b/libb2.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Mar 13 09:02:55 UTC 2019 - Ismail Dönmez + +- Initial release for openSUSE diff --git a/libb2.spec b/libb2.spec new file mode 100644 index 0000000..73cef4c --- /dev/null +++ b/libb2.spec @@ -0,0 +1,86 @@ +# +# spec file for package libb2 +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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/ +# + + +%define so_suffix 1 +Name: libb2 +Version: 0.98.1 +Release: 0 +Summary: C library providing BLAKE2b, BLAKE2s, BLAKE2bp, BLAKE2sp +License: CC0-1.0 +Group: Development/Libraries/C and C++ +URL: https://github.com/BLAKE2/libb2 +Source: https://github.com/BLAKE2/libb2/releases/download/v%{version}/libb2-0.98.1.tar.gz +BuildRequires: pkgconfig + +%description +C library providing BLAKE2b, BLAKE2s, BLAKE2bp, BLAKE2sp. + +BLAKE2 is a cryptographic hash function faster than MD5, SHA-1, SHA-2, +and SHA-3, yet is at least as secure as the latest standard SHA-3. + +%package -n libb2-%{so_suffix} +Summary: C library providing BLAKE2b, BLAKE2s, BLAKE2bp, BLAKE2sp +Group: System/Libraries + +%description -n libb2-%{so_suffix} +C library providing BLAKE2b, BLAKE2s, BLAKE2bp, BLAKE2sp. + +BLAKE2 is a cryptographic hash function faster than MD5, SHA-1, SHA-2, +and SHA-3, yet is at least as secure as the latest standard SHA-3. + +%package devel +Summary: Development files for the Blake2 library +Group: Development/Libraries/C and C++ +Requires: %{name}-%{so_suffix} = %{version}-%{release} + +%description devel +%{summary} + +This package contains the development files. + +%prep +%setup -q + +%build +%configure --disable-silent-rules \ + --enable-static=no \ + --enable-native=no + +%make_build + +%install +%make_install + +rm -f %{buildroot}%{_libdir}/libb2.la + +%check +make %{?_smp_mflags} check + +%post -n libb2-%{so_suffix} -p /sbin/ldconfig +%postun -n libb2-%{so_suffix} -p /sbin/ldconfig + +%files -n %{name}-%{so_suffix} +%license COPYING +%{_libdir}/libb2.so.%{so_suffix}* + +%files devel +%{_libdir}/libb2.so +%{_includedir}/blake2.h +%{_libdir}/pkgconfig/libb2.pc + +%changelog