OJ is a fast JSON parser and object serializer. It can be used by
fluentd as a drop-in replacement of yajl-ruby.
Change-Id: Iada83520f3f99685275ff85500e2076d4bc4bfeb
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/7873
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
| 1 | 1 |
new file mode 100755 |
| ... | ... |
@@ -0,0 +1,38 @@ |
| 0 |
+%global debug_package %{nil}
|
|
| 1 |
+%global gemdir %(IFS=: R=($(gem env gempath)); echo ${R[${#R[@]}-1]})
|
|
| 2 |
+%global gem_name oj |
|
| 3 |
+ |
|
| 4 |
+Name: rubygem-oj |
|
| 5 |
+Version: 3.3.10 |
|
| 6 |
+Release: 1%{?dist}
|
|
| 7 |
+Summary: The fastest JSON parser and object serializer. |
|
| 8 |
+Group: Development/Libraries |
|
| 9 |
+Vendor: VMware, Inc. |
|
| 10 |
+Distribution: Photon |
|
| 11 |
+License: MIT |
|
| 12 |
+URL: https://rubygems.org/gems/%{gem_name}/versions/%{version}
|
|
| 13 |
+Source0: https://rubygems.org/downloads/%{gem_name}-%{version}.gem
|
|
| 14 |
+%define sha1 oj=2ef19745ffca587e5e9cd3c88b77854f6f996588 |
|
| 15 |
+BuildRequires: ruby >= 2.0 |
|
| 16 |
+BuildRequires: gmp-devel |
|
| 17 |
+ |
|
| 18 |
+BuildArch: x86_64 |
|
| 19 |
+ |
|
| 20 |
+%description |
|
| 21 |
+The fastest JSON parser and object serializer. |
|
| 22 |
+ |
|
| 23 |
+%prep |
|
| 24 |
+%setup -q -c -T |
|
| 25 |
+ |
|
| 26 |
+%build |
|
| 27 |
+ |
|
| 28 |
+%install |
|
| 29 |
+gem install -V --local --force --install-dir %{buildroot}/%{gemdir} %{SOURCE0}
|
|
| 30 |
+ |
|
| 31 |
+%files |
|
| 32 |
+%defattr(-,root,root,-) |
|
| 33 |
+%{gemdir}
|
|
| 34 |
+ |
|
| 35 |
+%changelog |
|
| 36 |
+* Wed Aug 21 2019 Stanislav Hadjiiski <hadjiiskis@vmware.com> 3.3.10-1 |
|
| 37 |
+- Initial build |