parent
ffadb2777c
commit
80c3246c8c
@ -0,0 +1,70 @@
|
||||
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
|
||||
|
||||
Group: System/Libraries
|
||||
|
||||
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
|
||||
Group: File tools
|
||||
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
|
Loading…
Reference in new issue