[rubygem-json_pure/f21] Update to json_pure 1.8.1.

Vít Ondruch vondruch at fedoraproject.org
Tue Jul 22 10:31:51 UTC 2014


commit c9c717bf8bb9d6d121bb0692a71ef124ebbf5893
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Tue Jul 22 12:30:35 2014 +0200

    Update to json_pure 1.8.1.

 .gitignore             |    1 +
 rubygem-json_pure.spec |   59 +++++++++++++++++++++--------------------------
 sources                |    2 +-
 3 files changed, 28 insertions(+), 34 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index b1f8c3d..6e33acc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 /json_pure-1.4.6.gem
 /json_pure-1.5.1.gem
 /json_pure-1.6.3.gem
+/json_pure-1.8.1.gem
diff --git a/rubygem-json_pure.spec b/rubygem-json_pure.spec
index 679fda9..6f1054e 100644
--- a/rubygem-json_pure.spec
+++ b/rubygem-json_pure.spec
@@ -2,19 +2,18 @@
 
 Summary: JSON Implementation for Ruby
 Name: rubygem-%{gem_name}
-Version: 1.6.3
-Release: 9%{?dist}
+Version: 1.8.1
+Release: 1%{?dist}
 Group: Development/Languages
+# TODO: License should be probably updated.
+# https://github.com/flori/json/issues/213
 License: GPLv2 or Ruby
 URL: http://flori.github.com/json
 Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
-Requires: ruby(rubygems)
-Requires: ruby(release)
 BuildRequires: ruby(release)
 BuildRequires: rubygems-devel
-BuildRequires: rubygem(minitest)
+BuildRequires: rubygem(test-unit)
 BuildArch: noarch
-Provides: rubygem(%{gem_name}) = %{version}
 
 %package doc
 Summary: Documentation for %{name}
@@ -28,46 +27,37 @@ Documentation for %{name}
 This is a JSON implementation in pure Ruby.
 
 %prep
+%setup -q -c -T
+%gem_install -n %{SOURCE0}
 
 %build
 
 %install
-rm -rf %{buildroot}
 mkdir -p %{buildroot}%{gem_dir}
-%gem_install -n %{SOURCE0} -d %{buildroot}%{gem_dir}
+cp -pa .%{gem_dir}/* \
+        %{buildroot}%{gem_dir}/
+
 for file in `find %{buildroot}/%{gem_instdir} -type f -perm /a+x`; do
     [ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file
 done
-for file in `find %{buildroot}/%{gem_instdir} -type f ! -perm /a+x -name "*.rb"`; do
+for file in `find %{buildroot}/%{gem_instdir} -type f ! -perm /a+x`; do
     [ ! -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 755 $file
 done
-find %{buildroot}/%{gem_instdir} -type f -perm /g+wx -exec chmod -v g-w {} \;
-rm -rf %{buildroot}/%{gem_instdir}/ext
-rm -rf %{buildroot}/%{gem_instdir}/java
-rm -f %{buildroot}/%{gem_instdir}/json_pure.gemspec
-rm -f %{buildroot}/%{gem_instdir}/json.gemspec
-rm -f %{buildroot}/%{gem_instdir}/json-java.gemspec
-rm -f %{buildroot}/%{gem_instdir}/Gemfile
-rm -f %{buildroot}/%{gem_instdir}/diagrams/.keep
-rm -f %{buildroot}/%{gem_instdir}/.travis.yml
-rm -f %{buildroot}/%{gem_instdir}/.gitignore
-# Fix for Fedora 14:
-rm -rf %{buildroot}/%{gem_instdir}/tests/test_json_rails.rb
-
 
 %check
-pushd %{buildroot}%{gem_instdir}
-JSON=pure testrb tests
+pushd .%{gem_instdir}
+JSON=pure ruby -e 'Dir.glob "./tests/**/test_*.rb", &method(:require)'
 popd
 
-%clean
-rm -rf %{buildroot}
-
 %files
-%defattr(-, root, root, -)
 %dir %{gem_instdir}
 %{gem_libdir}
-%{gem_cache}
+%exclude %{gem_libdir}/json/ext/.*
+%exclude %{gem_instdir}/.*
+%exclude %{gem_instdir}/diagrams
+%exclude %{gem_instdir}/ext
+%exclude %{gem_instdir}/java
+%exclude %{gem_cache}
 %{gem_spec}
 %doc %{gem_instdir}/README-json-jruby.markdown
 %doc %{gem_instdir}/README.rdoc
@@ -80,16 +70,19 @@ rm -rf %{buildroot}
 
 
 %files doc
-%defattr(-, root, root, -)
 %{gem_instdir}/tests
 %{gem_instdir}/data
 %{gem_instdir}/tools
-%{gem_instdir}/benchmarks
+%{gem_instdir}/Gemfile
 %{gem_instdir}/Rakefile
-%{gem_docdir}
+%doc %{gem_docdir}
 %{gem_instdir}/install.rb
+%{gem_instdir}/json*.gemspec
 
 %changelog
+* Tue Jul 22 2014 Vít Ondruch <vondruch at redhat.com> - 1.8.1-1
+- Update to json_pure 1.8.1.
+
 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.6.3-9
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
@@ -111,7 +104,7 @@ rm -rf %{buildroot}
 * Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.6.3-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 
-* Thu Dec 12 2011 Michal Fojtik <mfojtik at redhat.com> - 1.6.3-2
+* Mon Dec 12 2011 Michal Fojtik <mfojtik at redhat.com> - 1.6.3-2
 - Rebuild after Koji outage
 
 * Thu Dec 8 2011 Michal Fojtik <mfojtik at redhat.com> - 1.6.3-1
diff --git a/sources b/sources
index 269dc3b..f40c9b9 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-a718cb94c3148dff2c1c6aca1a667dbb  json_pure-1.6.3.gem
+951f69022d98656b516b77bb8a98c605  json_pure-1.8.1.gem


More information about the scm-commits mailing list