1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
Name: openssl-gost-engine Version: 1.1.0.3.0.255.ge3af41d.p1 Release: alt2 License: BSD-style Summary: A reference implementation of the Russian GOST crypto algorithms for OpenSSL Group: System/Libraries Source: %name-%version.tar Source1: openssl-gost.control Patch0: %name-1.1.0.3.0.255.ge3af41d-mac-iv.patch Patch1: %name-1.1.0.3.0.255.ge3af41d-gost89-ecb.patch BuildRequires(pre): rpm-macros-cmake BuildRequires: cmake # due to gost algorithms identifiers (in headers) BuildRequires: libssl-devel >= 1.1.0j-alt2 %{?!_without_check:%{?!_disable_check:BuildRequires: ctest perl-devel perl-Test2-Suite openssl}} # due to gost algorithms identifiers (inside libcrypto) Requires: libcrypto1.1 >= 1.1.0j-alt2 %description A reference implementation of the Russian GOST crypto algorithms for OpenSSL. %package -n gostsum Summary: GOST file digesting utilites Group: File tools %description -n gostsum GOST file digesting utilites. %prep %setup %patch0 -p1 %patch1 -p1 %build %ifarch %e2k # lcc 1.23.12: test_curves.c: if ((test = (e))) %add_optflags -Wno-error=assign-where-compare-meant %endif %cmake \ # %cmake_build %install enginesdir="$(pkg-config --variable=enginesdir libcrypto)" mkdir -p %buildroot%_bindir mkdir -p %buildroot%_man1dir mkdir -p %buildroot$enginesdir cp BUILD/bin/gost.so %buildroot$enginesdir/ cp BUILD/bin/gost*sum %buildroot%_bindir/ cp gost*sum.1 %buildroot%_man1dir/ # Install the control scripts install -D -p -m0755 %_sourcedir/openssl-gost.control \ %buildroot%_controldir/openssl-gost %check CTEST_OUTPUT_ON_FAILURE=1 \ make test -C BUILD ARGS="--verbose" %files %_libdir/openssl/engines-1.1/gost.so %_controldir/openssl-gost %files -n gostsum %_bindir/gost*sum* %_man1dir/gost*sum* %changelog * Fri Oct 25 2019 Paul Wolneykien <manowar@altlinux.org> 1.1.0.3.0.255.ge3af41d.p1-alt2 - Added openssl-gost control script to turn the GOST ciphers on and off. * Fri Aug 16 2019 Michael Shigorin <mike@altlinux.org> 1.1.0.3.0.255.ge3af41d.p1-alt1.1 - E2K: workaround tests ftbfs * Thu Jul 04 2019 Paul Wolneykien <manowar@altlinux.org> 1.1.0.3.0.255.ge3af41d.p1-alt1 - Allow to set an IV for MAC using EVP_MD_CTRL_SET_IV (patch). - Added ECB mode GOST28147-89 cipher (patch). * Mon Mar 04 2019 Gleb F-Malinovskiy <glebfm@altlinux.org> 1.1.0.3.0.255.ge3af41d-alt1 - Backported new algorithms from upstream master. * Sat Sep 29 2018 Gleb F-Malinovskiy <glebfm@altlinux.org> 1.1.0.3.0.21.ga2174a8-alt1 - Initial build (v1.1.0.3-21-ga2174a8).