Blame rubygem-actionmailbox.spec

7baf12b
%global gem_name actionmailbox
7baf12b
7baf12b
Name: rubygem-%{gem_name}
7baf12b
2e98094
Version: 6.1.3
ad26500
Release: 1%{?dist}
7baf12b
Summary: Inbound email handling framework
7baf12b
License: MIT
7baf12b
URL: https://rubyonrails.org
7baf12b
Source0: https://rubygems.org/gems/%{gem_name}-%{version}%{?prerelease}.gem
7baf12b
# Actionmailbox gem doesn't ship with the test suite.
7baf12b
# You may check it out like so
7baf12b
# git clone http://github.com/rails/rails.git
2e98094
# cd rails/actionmailbox && git archive -v -o actionmailbox-6.1.3-tests.txz v6.1.3 test/
7baf12b
Source1: actionmailbox-%{version}%{?prerelease}-tests.txz
7baf12b
# The tools are needed for the test suite, are however unpackaged in gem file.
7baf12b
# You may get them like so
7baf12b
# git clone http://github.com/rails/rails.git --no-checkout
2e98094
# cd rails && git archive -v -o rails-6.1.3-tools.txz v6.1.3 tools/
7baf12b
Source2: rails-%{version}%{?prerelease}-tools.txz
7baf12b
7baf12b
BuildRequires: ruby(release)
7baf12b
BuildRequires: rubygems-devel
7baf12b
BuildRequires: ruby >= 2.5.0
7baf12b
BuildRequires: rubygem(actionmailer) = %{version}
7baf12b
BuildRequires: rubygem(activestorage) = %{version}
7baf12b
BuildRequires: rubygem(bundler)
7baf12b
BuildRequires: rubygem(railties) = %{version}
7baf12b
BuildRequires: rubygem(sprockets-rails)
7baf12b
BuildRequires: rubygem(sqlite3)
7baf12b
BuildRequires: rubygem(webmock)
7baf12b
BuildArch: noarch
7baf12b
7baf12b
%description
7baf12b
Receive and process incoming emails in Rails applications.
7baf12b
7baf12b
7baf12b
%package doc
7baf12b
Summary: Documentation for %{name}
7baf12b
Requires: %{name} = %{version}-%{release}
7baf12b
BuildArch: noarch
7baf12b
7baf12b
%description doc
7baf12b
Documentation for %{name}.
7baf12b
7baf12b
%prep
7baf12b
%setup -q -n %{gem_name}-%{version}%{?prerelease} -b1 -b2
7baf12b
7baf12b
%build
7baf12b
gem build ../%{gem_name}-%{version}%{?prerelease}.gemspec
7baf12b
%gem_install
7baf12b
7baf12b
%install
7baf12b
mkdir -p %{buildroot}%{gem_dir}
7baf12b
cp -a .%{gem_dir}/* \
7baf12b
        %{buildroot}%{gem_dir}/
7baf12b
7baf12b
%check
7baf12b
pushd .%{gem_instdir}/
7baf12b
ln -s %{_builddir}/tools ..
7baf12b
cp -a %{_builddir}/test .
7baf12b
7baf12b
export BUNDLE_GEMFILE=${PWD}/../Gemfile
7baf12b
7baf12b
cat > $BUNDLE_GEMFILE <
7baf12b
gem "railties"
7baf12b
gem "actionmailer"
7baf12b
gem "activestorage"
7baf12b
gem "sprockets-rails"
7baf12b
gem "sqlite3"
7baf12b
gem "webmock"
7baf12b
EOF
7baf12b
7baf12b
# Remove byebug dependency
7baf12b
sed -i '/^require..byebug./ s/^/#/' test/test_helper.rb
7baf12b
7baf12b
ruby -rbundler -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
7baf12b
popd
7baf12b
7baf12b
%files
7baf12b
%dir %{gem_instdir}
7baf12b
%license %{gem_instdir}/MIT-LICENSE
7baf12b
%{gem_libdir}
7baf12b
%exclude %{gem_cache}
7baf12b
%{gem_spec}
7baf12b
7baf12b
%files doc
7baf12b
%doc %{gem_docdir}
7baf12b
%{gem_instdir}/app
7baf12b
%{gem_instdir}/config
7baf12b
%{gem_instdir}/db
7baf12b
%doc %{gem_instdir}/CHANGELOG.md
7baf12b
%doc %{gem_instdir}/README.md
7baf12b
7baf12b
%changelog
2e98094
* Thu Feb 18 2021 Pavel Valena <pvalena@redhat.com> - 6.1.3-1
2e98094
- Update to actionmailbox 6.1.3.
2e98094
c12688c
* Mon Feb 15 2021 Pavel Valena <pvalena@redhat.com> - 6.1.2.1-1
c12688c
- Update to actionmailbox 6.1.2.1.
c12688c
ad26500
* Wed Jan 27 2021 Pavel Valena <pvalena@redhat.com> - 6.1.1-1
ad26500
- Update to actionmailbox 6.1.1.
ad26500
d9ba833
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.0.3.4-2
d9ba833
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
d9ba833
3905b77
* Thu Oct  8 12:00:49 CEST 2020 Pavel Valena <pvalena@redhat.com> - 6.0.3.4-1
3905b77
- Update to actionmailbox 6.0.3.4.
3905b77
  Resolves: rhbz#1877507
3905b77
e73a296
* Tue Sep 22 01:15:13 CEST 2020 Pavel Valena <pvalena@redhat.com> - 6.0.3.3-1
e73a296
- Update to actionmailbox 6.0.3.3.
e73a296
  Resolves: rhbz#1877507
e73a296
82e459f
* Mon Aug 17 05:14:02 GMT 2020 Pavel Valena <pvalena@redhat.com> - 6.0.3.2-1
82e459f
- Update to actionmailbox 6.0.3.2.
82e459f
7baf12b
* Mon Aug 03 07:01:37 GMT 2020 Pavel Valena <pvalena@redhat.com> - 6.0.3.1-1
7baf12b
- Initial package: ActionMailbox 6.0.3.1.