You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.7 KiB
69 lines
1.7 KiB
6 years ago
|
Name: openssl-gost-engine
|
||
|
Version: 1.1.0.3
|
||
|
Release: 3%{?dist}
|
||
|
|
||
|
URL: https://github.com/gost-engine/engine
|
||
|
License: OpenSSL
|
||
|
Summary: A reference implementation of the Russian GOST crypto algorithms for OpenSSL
|
||
|
|
||
|
|
||
|
Source: engine-%version.tar.gz
|
||
|
|
||
|
BuildRequires: cmake-rpm-macros gcc perl-Test-Simple
|
||
|
BuildRequires: cmake openssl-devel pkgconf-pkg-config
|
||
|
|
||
|
%{?!_without_check:%{?!_disable_check:BuildRequires: perl-devel openssl}}
|
||
|
|
||
|
%description
|
||
|
A reference implementation of the Russian GOST crypto algorithms for OpenSSL.
|
||
|
|
||
|
%package -n gostsum
|
||
|
Summary: GOST file digesting utilities
|
||
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||
|
|
||
|
%description -n gostsum
|
||
|
GOST file digesting utilities.
|
||
|
|
||
|
%global _enginesdir %(pkg-config --variable=enginesdir libcrypto)
|
||
|
%prep
|
||
|
%setup -n engine-%version -q
|
||
|
|
||
|
%build
|
||
|
%cmake .
|
||
|
|
||
|
%make_build
|
||
|
|
||
|
%install
|
||
|
mkdir -p %buildroot%_bindir
|
||
|
mkdir -p %buildroot%_mandir/man1
|
||
|
mkdir -p %buildroot%_enginesdir
|
||
|
cp bin/gost.so README.gost %buildroot%_enginesdir/
|
||
|
cp bin/gost*sum %buildroot%_bindir/
|
||
|
cp gost*sum.1 %buildroot%_mandir/man1/
|
||
|
|
||
|
%check
|
||
|
echo "ALL" > "$PWD/openssl-crypto-policy.override"
|
||
|
OPENSSL_ENGINES="$PWD/bin" \
|
||
|
OPENSSL_SYSTEM_CIPHERS_OVERRIDE="$PWD/openssl-crypto-policy.override" \
|
||
|
LD_LIBRARY_PATH="$PWD/bin" \
|
||
|
CTEST_OUTPUT_ON_FAILURE=1 \
|
||
|
make test ARGS="--verbose"
|
||
|
|
||
|
%files
|
||
|
%_enginesdir/gost.so
|
||
|
%doc %_enginesdir/README.gost
|
||
|
|
||
|
%files -n gostsum
|
||
|
%_bindir/gost*sum*
|
||
|
%_mandir/man1/gost*sum*
|
||
|
|
||
|
%changelog
|
||
|
* Mon Oct 22 2018 Dmitry Belyavskiy <beldmit@gmail.com> - 1.1.0.3-3
|
||
|
- Update after review by Tomas Mraz
|
||
|
|
||
|
* Sun Oct 07 2018 Dmitry Belyavskiy <beldmit@gmail.com> - 1.1.0.3-2
|
||
|
- Update after rpmlint
|
||
|
|
||
|
* Thu Oct 04 2018 Alexander Bokovoy <abokovoy@redhat.com> 1.1.0.3-1
|
||
|
- Initial build using git master commit 3383ad1
|