[packages/ruby-rbnacl] new, version 3.3.0
glen
glen at pld-linux.org
Sat Mar 19 10:06:49 CET 2016
commit 3d537044a750c9adf5fbdb63bb81223d4352756b
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Mar 19 11:04:13 2016 +0200
new, version 3.3.0
created with gem2rpm 0.11.2
$ gem fetch rbnacl
$ gem2rpm *.gem -o ruby-rbnacl.spec
ruby-rbnacl.spec | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
---
diff --git a/ruby-rbnacl.spec b/ruby-rbnacl.spec
new file mode 100644
index 0000000..8ed361f
--- /dev/null
+++ b/ruby-rbnacl.spec
@@ -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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-rbnacl.git/commitdiff/3d537044a750c9adf5fbdb63bb81223d4352756b
More information about the pld-cvs-commit
mailing list