[rubygem-fakefs] Initial import (#790732).

Vít Ondruch vondruch at fedoraproject.org
Wed Feb 15 14:08:04 UTC 2012


commit d2ae5d76a325176e1c320ecf359ad66a7c3e8887
Author: Vít Ondruch <vondruch at redhat.com>
Date:   Wed Feb 15 10:44:23 2012 +0100

    Initial import (#790732).

 .gitignore          |    1 +
 rubygem-fakefs.spec |   81 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 83 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..896bce9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/fakefs-0.4.0.gem
diff --git a/rubygem-fakefs.spec b/rubygem-fakefs.spec
new file mode 100644
index 0000000..646ffbe
--- /dev/null
+++ b/rubygem-fakefs.spec
@@ -0,0 +1,81 @@
+# Generated from fakefs-0.4.0.gem by gem2rpm -*- rpm-spec -*-
+%global gem_name fakefs
+%global rubyabi 1.9.1
+
+Summary: A fake filesystem. Use it in your tests
+Name: rubygem-%{gem_name}
+Version: 0.4.0
+Release: 1%{?dist}
+Group: Development/Languages
+License: MIT
+URL: http://github.com/defunkt/fakefs
+Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
+Requires: ruby(abi) = %{rubyabi}
+Requires: ruby(rubygems)
+Requires: ruby
+BuildRequires: ruby(abi) = %{rubyabi}
+BuildRequires: rubygems-devel
+BuildRequires: ruby
+# Use rspec-core until rspec are not migrated to RSpec 2.x
+BuildRequires: rubygem(rspec-core)
+BuildRequires: rubygem(minitest)
+BuildArch: noarch
+Provides: rubygem(%{gem_name}) = %{version}
+
+%description
+A fake filesystem. Use it in your tests.
+
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}
+
+%prep
+%setup -q -c -T
+mkdir -p .%{gem_dir}
+gem install --local --install-dir .%{gem_dir} \
+            --force %{SOURCE0}
+
+%build
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* \
+        %{buildroot}%{gem_dir}/
+
+%check
+pushd .%{gem_instdir}
+rspec spec
+# Two tests fails. There are some pull request fixing Ruby 1.9.3 issues, however
+# it is not clear which approach will be preferred by upstream.
+# https://github.com/defunkt/fakefs/issues/110
+ruby -I. -Itest -e "Dir['test/**/*_test.rb'].each { |file| require file }" | \
+        grep "430 tests, 582 assertions, 2 failures, 0 errors, 0 skips"
+popd
+
+%files
+%dir %{gem_instdir}
+%doc %{gem_instdir}/LICENSE
+%exclude %{gem_instdir}/.*
+%{gem_libdir}
+%exclude %{gem_cache}
+%{gem_spec}
+
+%files doc
+%doc %{gem_docdir}
+%doc %{gem_instdir}/CONTRIBUTORS
+%{gem_instdir}/fakefs.gemspec
+%{gem_instdir}/Gemfile
+%{gem_instdir}/Rakefile
+%doc %{gem_instdir}/README.markdown
+%{gem_instdir}/spec
+%{gem_instdir}/test
+
+%changelog
+* Tue Feb 14 2012 Vít Ondruch <vondruch at redhat.com> - 0.4.0-1
+- Initial package
diff --git a/sources b/sources
index e69de29..800e334 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+0199d1e45390e30a9a6cb5667bf6715c  fakefs-0.4.0.gem


More information about the scm-commits mailing list