|
|
|
@ -1,16 +1,12 @@
|
|
|
|
|
%global commit 60ea749837362c226e8501718f505ab138e5c19d
|
|
|
|
|
%global date 20171225
|
|
|
|
|
|
|
|
|
|
%global with_check 1
|
|
|
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
|
|
|
|
|
|
|
Name: libb2
|
|
|
|
|
Summary: C library providing BLAKE2b, BLAKE2s, BLAKE2bp, BLAKE2sp
|
|
|
|
|
Version: 0.98
|
|
|
|
|
Release: 4.%{date}git%{shortcommit}%{?dist}
|
|
|
|
|
Version: 0.98.1
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
License: CC0
|
|
|
|
|
URL: https://blake2.net/
|
|
|
|
|
Source0: https://github.com/BLAKE2/libb2/archive/%{commit}/libb2-%{commit}.tar.gz
|
|
|
|
|
Source0: https://github.com/BLAKE2/libb2/archive/v%{version}/libb2-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: automake
|
|
|
|
@ -30,17 +26,15 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n libb2-%{commit}
|
|
|
|
|
%autosetup -n libb2-%{version}
|
|
|
|
|
|
|
|
|
|
# Force default Fedora cflags
|
|
|
|
|
sed -e 's|CFLAGS=-O3|CFLAGS="%{optflags}"|g' -i configure.ac
|
|
|
|
|
autoreconf -ivf
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
# Default Fedora cflags prevents SSE checking
|
|
|
|
|
unset $CFLAGS
|
|
|
|
|
%configure --disable-silent-rules --enable-static=no --enable-native=no
|
|
|
|
|
%make_build LDFLAGS="%{__global_ldflags}"
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%if 0%{with_check}
|
|
|
|
|
%check
|
|
|
|
@ -49,19 +43,24 @@ make check
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
|
|
rm -f %{buildroot}%{_libdir}/*.la
|
|
|
|
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{_libdir}/libb2.so.*
|
|
|
|
|
%license COPYING
|
|
|
|
|
%{_libdir}/libb2.so.1
|
|
|
|
|
%{_libdir}/libb2.so.1.*
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_libdir}/libb2.so
|
|
|
|
|
%{_libdir}/pkgconfig/libb2.pc
|
|
|
|
|
%{_includedir}/blake2.h
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Sep 09 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.98.1-1
|
|
|
|
|
- Update to latest tagged version
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.98-4.20171225git60ea749
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|