Last active
August 11, 2020 01:15
-
-
Save pvalena/032d0ca905e984a9f92b9b56370dd8a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/rubygem-actionmailbox.spec b/rubygem-actionmailbox.spec | |
index 5e8837b..efc8a03 100644 | |
--- a/rubygem-actionmailbox.spec | |
+++ b/rubygem-actionmailbox.spec | |
@@ -1,34 +1,16 @@ | |
+# Generated from actionmailbox-6.0.3.2.gem by gem2rpm -*- rpm-spec -*- | |
%global gem_name actionmailbox | |
Name: rubygem-%{gem_name} | |
- | |
-Version: 6.0.3.1 | |
+Version: 6.0.3.2 | |
Release: 1%{?dist} | |
Summary: Inbound email handling framework | |
License: MIT | |
URL: https://rubyonrails.org | |
-Source0: https://rubygems.org/gems/%{gem_name}-%{version}%{?prerelease}.gem | |
-# Actionmailbox gem doesn't ship with the test suite. | |
-# You may check it out like so | |
-# git clone http://github.com/rails/rails.git | |
-# cd rails/actionmailbox && git archive -v -o actionmailbox-6.0.3.1-tests.txz v6.0.3.1 test/ | |
-Source1: actionmailbox-%{version}%{?prerelease}-tests.txz | |
-# The tools are needed for the test suite, are however unpackaged in gem file. | |
-# You may get them like so | |
-# git clone http://github.com/rails/rails.git --no-checkout | |
-# cd rails && git archive -v -o rails-6.0.3.1-tools.txz v6.0.3.1 tools/ | |
-Source2: rails-%{version}%{?prerelease}-tools.txz | |
- | |
+Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem | |
BuildRequires: ruby(release) | |
BuildRequires: rubygems-devel | |
BuildRequires: ruby >= 2.5.0 | |
-BuildRequires: rubygem(actionmailer) = %{version} | |
-BuildRequires: rubygem(activestorage) = %{version} | |
-BuildRequires: rubygem(bundler) | |
-BuildRequires: rubygem(railties) = %{version} | |
-BuildRequires: rubygem(sprockets-rails) | |
-BuildRequires: rubygem(sqlite3) | |
-BuildRequires: rubygem(webmock) | |
BuildArch: noarch | |
%description | |
@@ -44,10 +26,14 @@ BuildArch: noarch | |
Documentation for %{name}. | |
%prep | |
-%setup -q -n %{gem_name}-%{version}%{?prerelease} -b1 -b2 | |
+%setup -q -n %{gem_name}-%{version} | |
%build | |
-gem build ../%{gem_name}-%{version}%{?prerelease}.gemspec | |
+# 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 | |
@@ -55,43 +41,28 @@ mkdir -p %{buildroot}%{gem_dir} | |
cp -a .%{gem_dir}/* \ | |
%{buildroot}%{gem_dir}/ | |
-%check | |
-pushd .%{gem_instdir}/ | |
-ln -s %{_builddir}/tools .. | |
-cp -a %{_builddir}/test . | |
-export BUNDLE_GEMFILE=${PWD}/../Gemfile | |
-cat > $BUNDLE_GEMFILE <<EOF | |
-gem "railties" | |
-gem "actionmailer" | |
-gem "activestorage" | |
-gem "sprockets-rails" | |
-gem "sqlite3" | |
-gem "webmock" | |
-EOF | |
- | |
-# Remove byebug dependency | |
-sed -i '/^require..byebug./ s/^/#/' test/test_helper.rb | |
- | |
-ruby -rbundler -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' | |
+%check | |
+pushd .%{gem_instdir} | |
+# Run the test suite. | |
popd | |
%files | |
%dir %{gem_instdir} | |
%license %{gem_instdir}/MIT-LICENSE | |
+%{gem_instdir}/app | |
+%{gem_instdir}/config | |
+%{gem_instdir}/db | |
%{gem_libdir} | |
%exclude %{gem_cache} | |
%{gem_spec} | |
%files doc | |
%doc %{gem_docdir} | |
-%{gem_instdir}/app | |
-%{gem_instdir}/config | |
-%{gem_instdir}/db | |
%doc %{gem_instdir}/CHANGELOG.md | |
%doc %{gem_instdir}/README.md | |
%changelog | |
-* Mon Aug 03 07:01:37 GMT 2020 Pavel Valena <pvalena@redhat.com> - 6.0.3.1-1 | |
-- Initial package: ActionMailbox 6.0.3.1. | |
+* Tue Aug 11 2020 Pavel Valena <pvalena@redhat.com> - 6.0.3.2-1 | |
+- Initial package |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment