|
|
|
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
|
|
|
|
%global gemname crack
|
|
|
|
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
|
|
|
|
|
|
|
|
Summary: Really simple JSON and XML parsing, ripped from Merb and Rails
|
|
|
|
Name: rubygem-%{gemname}
|
|
|
|
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
|
|
|
|
# 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)
|
|
|
|
BuildRequires: rubygem(shoulda)
|
|
|
|
BuildRequires: rubygem(jnunemaker-matchy)
|
|
|
|
BuildArch: noarch
|
|
|
|
Provides: rubygem(%{gemname}) = %{version}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Really simple JSON and XML parsing, ripped from Merb and Rails.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Group: Documentation
|
|
|
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
This package contains documentation for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
mkdir -p %{buildroot}%{gemdir}
|
|
|
|
gem install --local --install-dir %{buildroot}%{gemdir} \
|
|
|
|
--force --rdoc %{SOURCE0}
|
|
|
|
rm -f %{buildroot}%{geminstdir}/.gitignore
|
|
|
|
rm -f %{buildroot}%{geminstdir}/*.gemspec
|
|
|
|
|
|
|
|
%check
|
|
|
|
# Packages required to run a rake test not availble yet in Fedora
|
|
|
|
cd %{buildroot}%{geminstdir}
|
|
|
|
sed -i 's/require File/#require File/g' Rakefile
|
|
|
|
rake test
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-, root, root, -)
|
|
|
|
%{gemdir}/doc/%{gemname}-%{version}
|
|
|
|
%{geminstdir}/Rakefile
|
|
|
|
%{geminstdir}/test
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Wed Dec 28 2011 <stahnma@fedoraproject.org> - 0.3.1-1
|
|
|
|
- Update to 0.3.1
|
|
|
|
- Fix bz #715704
|
|
|
|
|
|
|
|
* Thu Nov 10 2011 Michael Stahnke <mastahnke@gmail.com> - 0.1.8-3
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
|
|
|
* Mon Aug 23 2010 Michael Stahnke <stahnma@fedoraproject.org> - 0.1.8-1
|
|
|
|
- Broke package into main and doc
|
|
|
|
- Added tests
|