|
|
@ -2,23 +2,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
Summary: Really simple JSON and XML parsing, ripped from Merb and Rails
|
|
|
|
Summary: Really simple JSON and XML parsing, ripped from Merb and Rails
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
Version: 0.3.2
|
|
|
|
Version: 0.4.2
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Group: Development/Languages
|
|
|
|
Group: Development/Languages
|
|
|
|
License: MIT
|
|
|
|
License: MIT
|
|
|
|
URL: http://github.com/jnunemaker/crack
|
|
|
|
URL: http://github.com/jnunemaker/crack
|
|
|
|
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
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: rubygems-devel
|
|
|
|
BuildRequires: rubygem(minitest)
|
|
|
|
BuildRequires: rubygem(minitest)
|
|
|
|
BuildRequires: rubygem(shoulda)
|
|
|
|
BuildRequires: rubygem(safe_yaml)
|
|
|
|
BuildRequires: rubygem(jnunemaker-matchy)
|
|
|
|
|
|
|
|
BuildRequires: rubygem(bigdecimal)
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
Provides: rubygem(%{gem_name}) = %{version}
|
|
|
|
|
|
|
|
#BZ 781829
|
|
|
|
#BZ 781829
|
|
|
|
Epoch: 1
|
|
|
|
Epoch: 1
|
|
|
|
|
|
|
|
|
|
|
@ -35,50 +28,46 @@ Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
|
|
This package contains documentation for %{name}.
|
|
|
|
This package contains documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
|
|
|
|
%setup -q -c -T
|
|
|
|
|
|
|
|
%gem_install -n %{SOURCE0}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
%gem_install -n %{SOURCE0} -d %{buildroot}%{gem_dir}
|
|
|
|
cp -a .%{gem_dir}/* \
|
|
|
|
rm -f %{buildroot}%{gem_instdir}/.gitignore
|
|
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
rm -f %{buildroot}%{gem_instdir}/*.gemspec
|
|
|
|
|
|
|
|
|
|
|
|
# Fix non-standard-executable-perm rpmlint warning.
|
|
|
|
|
|
|
|
chmod a+x %{buildroot}%{gem_instdir}/script/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
pushd %{buildroot}%{gem_instdir}
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
|
|
|
|
ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
|
|
|
|
# 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
|
|
|
|
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
|
|
|
|
%exclude %{gem_instdir}/.*
|
|
|
|
%doc %{gem_instdir}/LICENSE
|
|
|
|
%doc %{gem_instdir}/LICENSE
|
|
|
|
%doc %{gem_instdir}/README.rdoc
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
%doc %{gem_instdir}/History
|
|
|
|
%doc %{gem_instdir}/History
|
|
|
|
%{gem_libdir}
|
|
|
|
%{gem_libdir}
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
%{gem_spec}
|
|
|
|
%{gem_spec}
|
|
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%files doc
|
|
|
|
%{gem_docdir}
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
%{gem_instdir}/Rakefile
|
|
|
|
%{gem_instdir}/Gemfile
|
|
|
|
|
|
|
|
%{gem_instdir}/crack.gemspec
|
|
|
|
|
|
|
|
%{gem_instdir}/script
|
|
|
|
%{gem_instdir}/test
|
|
|
|
%{gem_instdir}/test
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Mon Jul 14 2014 Vít Ondruch <vondruch@redhat.com> - 1:0.4.2-1
|
|
|
|
|
|
|
|
- Update to crack 0.4.2.
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.3.2-3
|
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.3.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|