summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVít Ondruch <vondruch@redhat.com>2017-09-11 15:52:37 +0200
committerVít Ondruch <vondruch@redhat.com>2017-11-28 12:26:40 +0100
commitccff3bd9013ce90d9ef15fe02c0f6caebf470396 (patch)
treeca3e826a0aac9f8bf24cb15720c8de7dd25466df
parent91ddad57bf24de7f381bd95705124f98f714cae9 (diff)
downloadrubygem-diff_dirs-master.zip
rubygem-diff_dirs-master.tar.gz
rubygem-diff_dirs-master.tar.xz
Initial packageHEADmaster
-rw-r--r--rubygem-diff_dirs.spec77
-rw-r--r--sources1
2 files changed, 78 insertions, 0 deletions
diff --git a/rubygem-diff_dirs.spec b/rubygem-diff_dirs.spec
new file mode 100644
index 0000000..59fd2f9
--- /dev/null
+++ b/rubygem-diff_dirs.spec
@@ -0,0 +1,77 @@
+# Generated from diff_dirs-0.1.2.gem by gem2rpm -*- rpm-spec -*-
+%global gem_name diff_dirs
+
+Name: rubygem-%{gem_name}
+Version: 0.1.2
+Release: 1%{?dist}
+Summary: Ruby helper to diff two directories
+License: MIT
+URL: http://github.com/cmer/diff_dirs
+Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
+BuildRequires: ruby(release)
+BuildRequires: rubygems-devel
+BuildRequires: ruby
+BuildRequires: rubygem(mocha)
+BuildRequires: rubygem(shoulda-context)
+BuildRequires: rubygem(test-unit)
+BuildArch: noarch
+
+%description
+Ruby helper to diff two directories.
+
+
+%package doc
+Summary: Documentation for %{name}
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}.
+
+%prep
+%setup -q -n %{gem_name}-%{version}
+
+%build
+# Create the gem as gem install only works on a gem file
+gem build ../%{gem_name}-%{version}.gemspec
+
+# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
+# by default, so that we can move it into the buildroot in %%install
+%gem_install
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* \
+ %{buildroot}%{gem_dir}/
+
+
+
+%check
+pushd .%{gem_instdir}
+# Better to override original test_helper.rb, since it needs too many changes.
+cat > test/test_helper.rb << \EOF
+require 'test/unit'
+require 'shoulda/context'
+require 'mocha/test_unit'
+EOF
+
+ruby -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
+popd
+
+%files
+%dir %{gem_instdir}
+%license %{gem_instdir}/LICENSE
+%{gem_libdir}
+%exclude %{gem_cache}
+%{gem_spec}
+
+%files doc
+%doc %{gem_docdir}
+%doc %{gem_instdir}/README.rdoc
+%{gem_instdir}/Rakefile
+%doc %{gem_instdir}/VERSION
+%{gem_instdir}/test
+
+%changelog
+* Fri Sep 08 2017 Vít Ondruch <vondruch@redhat.com> - 0.1.2-1
+- Initial package
diff --git a/sources b/sources
index e69de29..dbb1c5f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (diff_dirs-0.1.2.gem) = 0e66f735ba667bad1232a12b5b32d68078929906a61b4bc15e165cab08d9a29bd71dac5cb9645b1ab552bbf3a3979e370bf2b95f4dde81aeeb2033a4fdb6d2fb