libbee2.spec 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. %global commit 7afea8b3778b5501e5ccb1ab0b9d4ef6d8773e35
  2. %global shortcommit %(c=%{commit}; echo ${c:0:7})
  3. %global snapshotdate 20200706
  4. Summary: Cryptographic library
  5. Name: libbee2
  6. Version: 2.0.5
  7. Release: 9.%{snapshotdate}git%{shortcommit}%{?dist}
  8. License: GPLv3
  9. Url: http://apmi.bsu.by/resources/tools.html
  10. Source0: https://github.com/agievich/bee2/archive/%{commit}/bee2-%{shortcommit}.zip
  11. BuildRequires: cmake, gcc
  12. %description
  13. Bee2 is a cryptographic library which implements cryptographic
  14. algorithms and protocols standardized in Belarus. Additionally, Bee2
  15. implements digital signature algorithms standardized in Russia and
  16. Ukraine.
  17. %package devel
  18. Summary: Files for development of applications which will use bee2
  19. Requires: %{name}%{?_isa} = %{version}-%{release}
  20. %description devel
  21. Bee2 is a cryptographic library which implements cryptographic
  22. algorithms and protocols standardized in Belarus. The bee2-devel package
  23. contains files needed to develop applications which support these
  24. cryptographic algorithms and protocols.
  25. %package -n bsum
  26. Summary: Calculation and verification of hash values using the STB 34.101.31 and STB 34.101.77 algorithms
  27. %description -n bsum
  28. Bsum implements calculation and verification of hash values using the
  29. algorithms STB 34.101.31 (belt-hash) and STB 34.101.77 (bash32, bash64,
  30. ..., bash512). The command-line interface of the utility is as close as
  31. possible to the interfaces of similar sha1sum and sha256sum utilities.
  32. #------------------------------------------------------------------
  33. %prep
  34. %autosetup -n bee2-%{commit} -p 1
  35. %build
  36. %if 0%{?fedora}
  37. %cmake -S %{_vpath_srcdir} -B %{_vpath_builddir}
  38. %else
  39. %cmake
  40. %endif
  41. %if 0%{?fedora}
  42. %make_build -C %{_vpath_builddir}
  43. %else
  44. %make_build
  45. %endif
  46. %install
  47. %if 0%{?fedora}
  48. %make_install -C %{_vpath_builddir}
  49. %else
  50. %make_install
  51. %endif
  52. %{__rm} -rf %{buildroot}%{_libdir}/libbee2_static.a
  53. %check
  54. %if 0%{?fedora}
  55. %make_build -C %{_vpath_builddir} test
  56. %else
  57. %make_build test
  58. %endif
  59. %files
  60. %{_libdir}/libbee2.so.2.0
  61. %{_libdir}/libbee2.so.2.0.5
  62. %license LICENSE
  63. %doc AUTHORS.md README.md
  64. %files devel
  65. %{_includedir}/bee2/
  66. %{_libdir}/libbee2.so
  67. %files -n bsum
  68. %{_bindir}/bsum
  69. %changelog
  70. * Sun Jul 12 2020 Yury Kashcheyeu <kashcheyeu@tiksi.ru> - 2.0.5-9
  71. - Initial RPM release