Name: gost3411-2012 Version: 0.13 Release: 1%{?dist} Summary: GOST R 34.11-2012: RFC-6986 cryptographic hash function CLI License: BSD-2-Clause OR GPL-2.0-or-later URL: https://github.com/adegtyarev/streebog Source0: %{url}/archive/refs/tags/%{version}.tar.gz#/streebog-%{version}.tar.gz Patch0: 0001-Fix-multiple-definition-of-uint512_u-build-error.patch Patch1: 0002-Enable-libgost3411-2012.so-shared-library-building.patch BuildRequires: gcc BuildRequires: help2man BuildRequires: sed Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description Command line tool to create GOST R 34.11-2012 hash digest of files or streams. Russian cryptographic standard GOST R 34.11-2012 establishes the hash-function algorithm and the hash-function calculation procedure for any sequence of binary symbols. The standard published as RFC 6986. %package libs Summary: Shared library for the RFC-6986 cryptographic hash function %description libs Shared library for the GOST R 34.11-2012 hash function. Russian cryptographic standard GOST R 34.11-2012 establishes the hash-function algorithm and the hash-function calculation procedure for any sequence of binary symbols. The standard published as RFC 6986. %package devel Summary: Header files for the RFC-6986 cryptographic hash function Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description devel Header files for the GOST R 34.11-2012 hash function. Russian cryptographic standard GOST R 34.11-2012 establishes the hash-function algorithm and the hash-function calculation procedure for any sequence of binary symbols. The standard published as RFC 6986. %prep %autosetup -n streebog-%{version} -p1 %build %make_build config build man %check %make_build test %install install -Dpm 755 %{name} %{buildroot}%{_bindir}/%{name} install -Dpm 755 lib%{name}.so %{buildroot}%{_libdir}/lib%{name}.so install -Dpm 644 gost3411-2012.1 %{buildroot}%{_mandir}/man1/gost3411-2012.1 for hdr in $(ls -1 %{name}-*.h); do if [ "${hdr}" != '%{name}-config.h' ]; then install -Dpm 644 "${hdr}" "%{buildroot}%{_includedir}/%{name}/${hdr}" fi done %files %license LICENSE LICENSE.GPL2 %doc README.md Changelog %{_bindir}/gost3411-2012 %{_mandir}/man1/gost3411-2012* %files libs %license LICENSE LICENSE.GPL2 %doc README.md Changelog %{_libdir}/lib%{name}.so %files devel %dir %{_includedir}/gost3411-2012 %{_includedir}/gost3411-2012/*.h %changelog * Tue Mar 31 2026 Eugene Zamriy - 0.13-1 - Initial packaging attempt - Applied patch to fix multiple definition of uint512_u build errors - Applied patch to build a shared library