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.
72 lines
1.8 KiB
72 lines
1.8 KiB
Name: openssl-gost-engine
|
|
Version: 1.1.0.3
|
|
Release: 4%{?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
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0.3-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
* 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
|