[packages/ruby-json_pure] new, version 1.8.1

glen glen at pld-linux.org
Sun Nov 20 23:33:44 CET 2016


commit a629181fc0c7d02d1ee70b8e67ceffa5f0132774
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Nov 21 00:33:07 2016 +0200

    new, version 1.8.1
    
    created from fedora rubygem-json_pure package, ba54bfa

 ruby-json_pure.spec | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)
---
diff --git a/ruby-json_pure.spec b/ruby-json_pure.spec
new file mode 100644
index 0000000..da6d44b
--- /dev/null
+++ b/ruby-json_pure.spec
@@ -0,0 +1,55 @@
+#
+# Conditional build:
+%bcond_with	tests		# build without tests
+
+%define pkgname json_pure
+Summary:	JSON Implementation for Ruby
+Name:		ruby-%{pkgname}
+Version:	1.8.1
+Release:	1
+Group:		Development/Languages
+# TODO: License should be probably updated.
+# https://github.com/flori/json/issues/213
+License:	GPLv2 or Ruby
+Source0:	http://rubygems.org/gems/%{pkgname}-%{version}.gem
+# Source0-md5:	951f69022d98656b516b77bb8a98c605
+URL:		http://flori.github.com/json
+BuildRequires:	rpm-rubyprov
+BuildRequires:	rpmbuild(macros) >= 1.665
+%if %{with tests}
+BuildRequires:	ruby-test-unit
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is a JSON implementation in pure Ruby.
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+
+rm lib/json/ext/.keep
+
+%build
+# write .gemspec
+%__gem_helper spec
+
+%if %{with tests}
+JSON=pure ruby -e 'Dir.glob "./tests/**/test_*.rb", &method(:require)'
+%endif
+
+%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)
+%doc README-json-jruby.markdown README.rdoc COPYING-json-jruby COPYING CHANGES VERSION TODO
+%{ruby_vendorlibdir}/json.rb
+%{ruby_vendorlibdir}/json
+%{ruby_specdir}/%{pkgname}-%{version}.gemspec
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-json_pure.git/commitdiff/a629181fc0c7d02d1ee70b8e67ceffa5f0132774



More information about the pld-cvs-commit mailing list