Summary: Cryptographic library Name: bee2 Version: 2.0.5 Release: 3%{?dist} License: GPLv3 Url: http://apmi.bsu.by/resources/tools.html Source0: https://github.com/agievich/bee2/archive/master.zip Patch0: bee2-2.0.5-fhs.patch BuildRequires: cmake, gcc, unzip %if 0%{?rhel} && 0%{?rhel} < 7 BuildRequires: devtoolset-8 %endif %description Bee2 is a cryptographic library which implements cryptographic algorithm and protocols standardized in Belarus. Additionally, Bee2 implements digital signature algorithms standardized in Russia and Ukraine. %package devel Summary: Headers for package bee2 Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Headers for package bee2. %package static Summary: Static library bee2 Requires: %{name}-devel%{?_isa} = %{version}-%{release} %description static Static library bee2. #------------------------------------------------------------------ %prep %autosetup -n %{name} -p 1 %build %if 0%{?rhel} && 0%{?rhel} < 7 . /opt/rh/devtoolset-8/enable %endif %if %{defined fedora} %cmake -S %{_vpath_srcdir} -B %{_vpath_builddir} %else %cmake %endif %install %if %{defined fedora} %make_install -C %{_vpath_builddir} test %else %make_install test %endif %check %files %{_bindir}/bsum %{_libdir}/libbee2.so %license LICENSE %doc AUTHORS.md README.md %files static %{_libdir}/libbee2_static.a %files devel %{_includedir}/bee2/ %changelog * Tue Jun 30 2020 Yury Kashcheyeu - 2.0.5-2 - Initial RPM release