]> git.pld-linux.org Git - packages/ruby-rbnacl.git/commitdiff
libsodium dep master
authorElan Ruusamäe <glen@delfi.ee>
Sat, 19 Mar 2016 09:14:25 +0000 (11:14 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 19 Mar 2016 09:14:25 +0000 (11:14 +0200)
ruby-rbnacl.spec

index 8ed361f23ae815981870b9fd1e762c09cb2c7394..e408393ba9ac7c3322c350ce99e224b255828387 100644 (file)
@@ -3,6 +3,7 @@
 %bcond_with    tests           # build without tests
 
 %define        pkgname rbnacl
+%define        min_libsodium 0.4.3
 Summary:       Ruby binding to the Networking and Cryptography (NaCl) library
 Name:          ruby-%{pkgname}
 Version:       3.3.0
@@ -20,6 +21,7 @@ BuildRequires:        ruby-rspec < 3.1
 BuildRequires: ruby-rspec >= 3.0.0
 BuildRequires: ruby-rubocop
 %endif
+Requires:      libsodium >= %{min_libsodium}
 Requires:      ruby-ffi
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -32,6 +34,9 @@ toolkit for building cryptographic systems and protocols
 %setup -q -n %{pkgname}-%{version}
 
 %build
+v=$(awk -F'"' '/MINIMUM_LIBSODIUM_VERSION =/{print $2}' lib/rbnacl/sodium/version.rb)
+test "$v" = %{min_libsodium}
+
 # write .gemspec
 %__gem_helper spec
 
This page took 0.071711 seconds and 4 git commands to generate.