]> git.pld-linux.org Git - packages/ruby-rbnacl.git/commitdiff
new, version 3.3.0
authorElan Ruusamäe <glen@delfi.ee>
Sat, 19 Mar 2016 09:04:13 +0000 (11:04 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 19 Mar 2016 09:05:00 +0000 (11:05 +0200)
created with gem2rpm 0.11.2

$ gem fetch rbnacl
$ gem2rpm *.gem -o ruby-rbnacl.spec

ruby-rbnacl.spec [new file with mode: 0644]

diff --git a/ruby-rbnacl.spec b/ruby-rbnacl.spec
new file mode 100644 (file)
index 0000000..8ed361f
--- /dev/null
@@ -0,0 +1,51 @@
+#
+# Conditional build:
+%bcond_with    tests           # build without tests
+
+%define        pkgname rbnacl
+Summary:       Ruby binding to the Networking and Cryptography (NaCl) library
+Name:          ruby-%{pkgname}
+Version:       3.3.0
+Release:       1
+License:       MIT
+Group:         Development/Languages
+Source0:       http://rubygems.org/downloads/%{pkgname}-%{version}.gem
+# Source0-md5: 3dba0a3d90b99caafb743e0e83d6dedf
+URL:           https://github.com/cryptosphere/rbnacl
+BuildRequires: rpm-rubyprov
+BuildRequires: rpmbuild(macros) >= 1.656
+%if %{with tests}
+BuildRequires: ruby-rake
+BuildRequires: ruby-rspec < 3.1
+BuildRequires: ruby-rspec >= 3.0.0
+BuildRequires: ruby-rubocop
+%endif
+Requires:      ruby-ffi
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The Networking and Cryptography (NaCl) library provides a high-level
+toolkit for building cryptographic systems and protocols
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+
+%build
+# write .gemspec
+%__gem_helper spec
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir}}
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{ruby_vendorlibdir}/%{pkgname}.rb
+%{ruby_vendorlibdir}/%{pkgname}
+%{ruby_specdir}/%{pkgname}-%{version}.gemspec
This page took 0.059738 seconds and 4 git commands to generate.