parent
9c12cf69e8
commit
df04e542d8
@ -0,0 +1 @@
|
||||
/crack-0.1.8.gem
|
@ -0,0 +1,76 @@
|
||||
%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.1.8
|
||||
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(check): rubygem(shoulda)
|
||||
BuildRequires(check): 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
|
||||
* Mon Aug 23 2010 Michael Stahnke <stahnma@fedoraproject.org> - 0.1.8-1
|
||||
- Broke package into main and doc
|
||||
- Added tests
|
Loading…
Reference in new issue