3 %bcond_with tests # build without tests
6 Summary: Ruby binding to the Networking and Cryptography (NaCl) library
11 Group: Development/Languages
12 Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
13 # Source0-md5: 3dba0a3d90b99caafb743e0e83d6dedf
14 URL: https://github.com/cryptosphere/rbnacl
15 BuildRequires: rpm-rubyprov
16 BuildRequires: rpmbuild(macros) >= 1.656
18 BuildRequires: ruby-rake
19 BuildRequires: ruby-rspec < 3.1
20 BuildRequires: ruby-rspec >= 3.0.0
21 BuildRequires: ruby-rubocop
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 The Networking and Cryptography (NaCl) library provides a high-level
29 toolkit for building cryptographic systems and protocols
32 %setup -q -n %{pkgname}-%{version}
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir}}
41 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
42 cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
45 rm -rf $RPM_BUILD_ROOT
48 %defattr(644,root,root,755)
49 %{ruby_vendorlibdir}/%{pkgname}.rb
50 %{ruby_vendorlibdir}/%{pkgname}
51 %{ruby_specdir}/%{pkgname}-%{version}.gemspec