[rubygem-crack] Update to crack 0.4.2.
Vít Ondruch
vondruch at fedoraproject.org
Mon Jul 14 12:01:31 UTC 2014
commit e8c0c7044fa73c643892fb0451acdf0c20afbc4a
Author: Vít Ondruch <vondruch at redhat.com>
Date: Mon Jul 14 14:01:39 2014 +0200
Update to crack 0.4.2.
.gitignore | 1 +
rubygem-crack.spec | 57 +++++++++++++++++++++-------------------------------
sources | 2 +-
3 files changed, 25 insertions(+), 35 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 815352a..e7da612 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
/crack-0.1.8.gem
/crack-0.3.1.gem
/crack-0.3.2.gem
+/crack-0.4.2.gem
diff --git a/rubygem-crack.spec b/rubygem-crack.spec
index fe98768..6fa8676 100644
--- a/rubygem-crack.spec
+++ b/rubygem-crack.spec
@@ -2,23 +2,16 @@
Summary: Really simple JSON and XML parsing, ripped from Merb and Rails
Name: rubygem-%{gem_name}
-Version: 0.3.2
-Release: 3%{?dist}
+Version: 0.4.2
+Release: 1%{?dist}
Group: Development/Languages
License: MIT
URL: http://github.com/jnunemaker/crack
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
-# Keeping buildroot so I can use the same spec in EPEL5
-Requires: ruby(rubygems)
-Requires: rubygem(bigdecimal)
-Requires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: rubygem(minitest)
-BuildRequires: rubygem(shoulda)
-BuildRequires: rubygem(jnunemaker-matchy)
-BuildRequires: rubygem(bigdecimal)
+BuildRequires: rubygem(safe_yaml)
BuildArch: noarch
-Provides: rubygem(%{gem_name}) = %{version}
#BZ 781829
Epoch: 1
@@ -35,50 +28,46 @@ Requires: %{name} = %{epoch}:%{version}-%{release}
This package contains documentation for %{name}.
%prep
+%setup -q -c -T
+%gem_install -n %{SOURCE0}
%build
%install
-rm -rf %{buildroot}
-%gem_install -n %{SOURCE0} -d %{buildroot}%{gem_dir}
-rm -f %{buildroot}%{gem_instdir}/.gitignore
-rm -f %{buildroot}%{gem_instdir}/*.gemspec
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* \
+ %{buildroot}%{gem_dir}/
+
+# Fix non-standard-executable-perm rpmlint warning.
+chmod a+x %{buildroot}%{gem_instdir}/script/*
+
%check
-pushd %{buildroot}%{gem_instdir}
-
-# These tests are not going to work in newer Ruby and it doesn't look like
-# crack could be fixed.
-# http://bugs.ruby-lang.org/issues/4479
-sed -i '/a: "2007-01-01 01:12:34 Z"/ s/^/#/' test/json_test.rb
-sed -i '/a: "2007-01-01T01:12:34Z"/ s/^/#/' test/json_test.rb
-sed -i '/a: "2007-01-01 01:12:34"/ s/^/#/' test/json_test.rb
-
-# Properly catch Psych parsing errors.
-# https://github.com/jnunemaker/crack/pull/32
-sed -i -r 's/(rescue ArgumentError)( => e)/\1, Psych::SyntaxError\2/' lib/crack/json.rb
-
-# The RUBYOPT temporary fixes "NameError: uninitialized constant
-# REXML::Text::Document", until it is fixed in Ruby.
-# https://bugs.ruby-lang.org/issues/7961
-RUBYOPT=-rrexml/document testrb test/*_test.rb
+pushd .%{gem_instdir}
+ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
popd
%files
%dir %{gem_instdir}
+%exclude %{gem_instdir}/.*
%doc %{gem_instdir}/LICENSE
-%doc %{gem_instdir}/README.rdoc
+%doc %{gem_instdir}/README.md
%doc %{gem_instdir}/History
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
%files doc
-%{gem_docdir}
-%{gem_instdir}/Rakefile
+%doc %{gem_docdir}
+%{gem_instdir}/Gemfile
+%{gem_instdir}/crack.gemspec
+%{gem_instdir}/script
%{gem_instdir}/test
%changelog
+* Mon Jul 14 2014 Vít Ondruch <vondruch at redhat.com> - 1:0.4.2-1
+- Update to crack 0.4.2.
+
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1:0.3.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
diff --git a/sources b/sources
index 1d32706..bf2556c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-c575d7a96743eb7dacde51c2ad34567e crack-0.3.2.gem
+523723e7f3752848e44dc243003c6dc6 crack-0.4.2.gem
More information about the scm-commits
mailing list