Update to 0.3.1

f38
Vít Ondruch 13 years ago
parent 91fe91f44b
commit 6a51a1cde1

@ -1,25 +1,25 @@
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) %global gem_name crack
%global gemname crack
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
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-%{gemname} Name: rubygem-%{gem_name}
Version: 0.1.8 Version: 0.3.1
Release: 5%{?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/%{gemname}-%{version}.gem Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
# Keeping buildroot so I can use the same spec in EPEL5 # Keeping buildroot so I can use the same spec in EPEL5
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: rubygems Requires: ruby(rubygems)
Requires: ruby(abi) = 1.8 Requires: rubygem(bigdecimal)
BuildRequires: rubygems Requires: ruby(abi) = 1.9.1
BuildRequires: rubygem(rake) BuildRequires: rubygems-devel
BuildRequires: rubygem(minitest)
BuildRequires: rubygem(shoulda) BuildRequires: rubygem(shoulda)
BuildRequires: rubygem(jnunemaker-matchy) BuildRequires: rubygem(jnunemaker-matchy)
BuildRequires: rubygem(bigdecimal)
BuildArch: noarch BuildArch: noarch
Provides: rubygem(%{gemname}) = %{version} Provides: rubygem(%{gem_name}) = %{version}
#BZ 781829 #BZ 781829
Epoch: 1 Epoch: 1
@ -41,38 +41,44 @@ This package contains documentation for %{name}.
%install %install
rm -rf %{buildroot} rm -rf %{buildroot}
mkdir -p %{buildroot}%{gemdir} mkdir -p %{buildroot}%{gem_dir}
gem install --local --install-dir %{buildroot}%{gemdir} \ gem install --local --install-dir %{buildroot}%{gem_dir} \
--force --rdoc %{SOURCE0} --force --rdoc %{SOURCE0}
rm -f %{buildroot}%{geminstdir}/.gitignore rm -f %{buildroot}%{gem_instdir}/.gitignore
rm -f %{buildroot}%{geminstdir}/*.gemspec rm -f %{buildroot}%{gem_instdir}/*.gemspec
%check %check
# Packages required to run a rake test not availble yet in Fedora # Packages required to run a rake test not availble yet in Fedora
cd %{buildroot}%{geminstdir} pushd %{buildroot}%{gem_instdir}
sed -i 's/require File/#require File/g' Rakefile sed -i 's/require File/#require File/g' Rakefile
rake test sed -i '10 a\
YAML::ENGINE.yamler = "syck"' test/test_helper.rb
testrb test/*_test.rb
popd
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}
%files %files
%defattr(-, root, root, -) %defattr(-, root, root, -)
%dir %{geminstdir} %dir %{gem_instdir}
%doc %{geminstdir}/LICENSE %doc %{gem_instdir}/LICENSE
%doc %{geminstdir}/README.rdoc %doc %{gem_instdir}/README.rdoc
%doc %{geminstdir}/History %doc %{gem_instdir}/History
%{geminstdir}/lib %{gem_libdir}
%{gemdir}/cache/%{gemname}-%{version}.gem %{gem_cache}
%{gemdir}/specifications/%{gemname}-%{version}.gemspec %{gem_spec}
%files doc %files doc
%defattr(-, root, root, -) %defattr(-, root, root, -)
%{gemdir}/doc/%{gemname}-%{version} %{gem_docdir}
%{geminstdir}/Rakefile %{gem_instdir}/Rakefile
%{geminstdir}/test %{gem_instdir}/test
%changelog %changelog
* Wed Mar 07 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 1:0.3.1-1
- Update to 0.3.1
* Sun Feb 05 2012 <stahnma@fedoraproject.org> - 0.1.8-5 * Sun Feb 05 2012 <stahnma@fedoraproject.org> - 0.1.8-5
- Revert back to 0.1.8 as HTTParty can't use crack > 0.1.8 - Revert back to 0.1.8 as HTTParty can't use crack > 0.1.8

@ -1 +1 @@
ae7234d5ab1ebdd1b7a96e77177f74fe crack-0.1.8.gem 73bf73388ebac555be0318fcac776911 crack-0.3.1.gem

Loading…
Cancel
Save