Init libb2
This commit is contained in:
parent
85c17ecede
commit
cd5d6e5cf5
BIN
libb2-0.98.1.tar.gz
Normal file
BIN
libb2-0.98.1.tar.gz
Normal file
Binary file not shown.
63
libb2.spec
Normal file
63
libb2.spec
Normal file
@ -0,0 +1,63 @@
|
||||
%global with_check 1
|
||||
|
||||
Name: libb2
|
||||
Summary: C library providing BLAKE2b, BLAKE2s, BLAKE2bp, BLAKE2sp
|
||||
Version: 0.98.1
|
||||
Release: 1
|
||||
License: CC0
|
||||
URL: https://blake2.net/
|
||||
Source0: https://github.com/BLAKE2/libb2/archive/v%{version}/libb2-%{version}.tar.gz
|
||||
|
||||
BuildRequires: gcc
|
||||
BuildRequires: automake
|
||||
BuildRequires: libtool
|
||||
BuildRequires: make
|
||||
|
||||
%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 devel
|
||||
Summary: Development files for the Blake2 library
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
%{summary}.
|
||||
|
||||
%prep
|
||||
%autosetup -n libb2-%{version}
|
||||
|
||||
# Force default cflags
|
||||
sed -e 's|CFLAGS=-O3|CFLAGS="%{optflags}"|g' -i configure.ac
|
||||
autoreconf -ivf
|
||||
|
||||
%build
|
||||
%configure --disable-silent-rules --enable-static=no --enable-native=no
|
||||
%make_build
|
||||
|
||||
%if 0%{with_check}
|
||||
%check
|
||||
make check
|
||||
%endif
|
||||
|
||||
%install
|
||||
%make_install
|
||||
rm -f %{buildroot}%{_libdir}/*.la
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%{_libdir}/libb2.so.1
|
||||
%{_libdir}/libb2.so.1.*
|
||||
|
||||
%files devel
|
||||
%{_libdir}/libb2.so
|
||||
%{_libdir}/pkgconfig/libb2.pc
|
||||
%{_includedir}/blake2.h
|
||||
|
||||
%changelog
|
||||
* Tue Apr 25 2023 EastDong <xudong23@iscas.ac.cn> - 0.98.1-1
|
||||
- Init package
|
||||
4
libb2.yaml
Normal file
4
libb2.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: git
|
||||
src_repo: https://github.com/BLAKE2/libb2.git
|
||||
tag_prefix: "^v"
|
||||
separator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user