[rubygem-crack] Initial import

Michael Stahnke stahnma at fedoraproject.org
Sun Aug 29 14:55:06 UTC 2010


commit df04e542d8159e9d10eb4395324cf36491de825c
Author: stahnma <stahnma at websages.com>
Date:   Sun Aug 29 10:55:04 2010 -0400

    Initial import

 .gitignore         |    1 +
 rubygem-crack.spec |   76 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 3 files changed, 78 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3b043a0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/crack-0.1.8.gem
diff --git a/rubygem-crack.spec b/rubygem-crack.spec
new file mode 100644
index 0000000..5853241
--- /dev/null
+++ b/rubygem-crack.spec
@@ -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 at fedoraproject.org> - 0.1.8-1
+- Broke package into main and doc
+- Added tests
diff --git a/sources b/sources
index e69de29..67397e6 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+ae7234d5ab1ebdd1b7a96e77177f74fe  crack-0.1.8.gem


More information about the scm-commits mailing list