|
|
|
@ -1,25 +1,25 @@
|
|
|
|
|
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
|
|
|
|
|
%global gemname crack
|
|
|
|
|
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
|
|
|
|
|
%global gem_name crack
|
|
|
|
|
|
|
|
|
|
Summary: Really simple JSON and XML parsing, ripped from Merb and Rails
|
|
|
|
|
Name: rubygem-%{gemname}
|
|
|
|
|
Version: 0.1.8
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
|
Version: 0.3.1
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Group: Development/Languages
|
|
|
|
|
License: MIT
|
|
|
|
|
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
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
Requires: rubygems
|
|
|
|
|
Requires: ruby(abi) = 1.8
|
|
|
|
|
BuildRequires: rubygems
|
|
|
|
|
BuildRequires: rubygem(rake)
|
|
|
|
|
Requires: ruby(rubygems)
|
|
|
|
|
Requires: rubygem(bigdecimal)
|
|
|
|
|
Requires: ruby(abi) = 1.9.1
|
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
|
BuildRequires: rubygem(minitest)
|
|
|
|
|
BuildRequires: rubygem(shoulda)
|
|
|
|
|
BuildRequires: rubygem(jnunemaker-matchy)
|
|
|
|
|
BuildRequires: rubygem(bigdecimal)
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
Provides: rubygem(%{gemname}) = %{version}
|
|
|
|
|
Provides: rubygem(%{gem_name}) = %{version}
|
|
|
|
|
#BZ 781829
|
|
|
|
|
Epoch: 1
|
|
|
|
|
|
|
|
|
@ -41,38 +41,44 @@ This package contains documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
mkdir -p %{buildroot}%{gemdir}
|
|
|
|
|
gem install --local --install-dir %{buildroot}%{gemdir} \
|
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
|
gem install --local --install-dir %{buildroot}%{gem_dir} \
|
|
|
|
|
--force --rdoc %{SOURCE0}
|
|
|
|
|
rm -f %{buildroot}%{geminstdir}/.gitignore
|
|
|
|
|
rm -f %{buildroot}%{geminstdir}/*.gemspec
|
|
|
|
|
rm -f %{buildroot}%{gem_instdir}/.gitignore
|
|
|
|
|
rm -f %{buildroot}%{gem_instdir}/*.gemspec
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
# 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
|
|
|
|
|
rake test
|
|
|
|
|
sed -i '10 a\
|
|
|
|
|
YAML::ENGINE.yamler = "syck"' test/test_helper.rb
|
|
|
|
|
testrb test/*_test.rb
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-, root, root, -)
|
|
|
|
|
%dir %{geminstdir}
|
|
|
|
|
%doc %{geminstdir}/LICENSE
|
|
|
|
|
%doc %{geminstdir}/README.rdoc
|
|
|
|
|
%doc %{geminstdir}/History
|
|
|
|
|
%{geminstdir}/lib
|
|
|
|
|
%{gemdir}/cache/%{gemname}-%{version}.gem
|
|
|
|
|
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
|
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
|
%doc %{gem_instdir}/LICENSE
|
|
|
|
|
%doc %{gem_instdir}/README.rdoc
|
|
|
|
|
%doc %{gem_instdir}/History
|
|
|
|
|
%{gem_libdir}
|
|
|
|
|
%{gem_cache}
|
|
|
|
|
%{gem_spec}
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%defattr(-, root, root, -)
|
|
|
|
|
%{gemdir}/doc/%{gemname}-%{version}
|
|
|
|
|
%{geminstdir}/Rakefile
|
|
|
|
|
%{geminstdir}/test
|
|
|
|
|
%{gem_docdir}
|
|
|
|
|
%{gem_instdir}/Rakefile
|
|
|
|
|
%{gem_instdir}/test
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
- Revert back to 0.1.8 as HTTParty can't use crack > 0.1.8
|
|
|
|
|
|
|
|
|
|