rubygem-actionmailer/rubygem-actionmailer.spec

90 lines
2.4 KiB
RPMSpec
Raw Normal View History

2020-08-28 15:40:55 +08:00
%global gem_name actionmailer
Name: rubygem-%{gem_name}
Epoch: 1
2023-01-19 14:11:56 +08:00
Version: 7.0.4
Release: 1
Summary: Email composition and delivery framework (part of Rails)
License: MIT
URL: https://rubyonrails.org
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
2023-01-19 14:11:56 +08:00
# ActionMailer 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/actionmailer && git archive -v -o actionmailer-7.0.4-tests.txz v7.0.4 test/
Source1: actionmailer-%{version}-tests.txz
2023-01-19 14:11:56 +08:00
# 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-7.0.4-tools.txz v7.0.4 tools/
Source2: rails-%{version}-tools.txz
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby >= 2.2.2
BuildRequires: rubygem(actionpack) = %{version}
BuildRequires: rubygem(activejob) = %{version}
BuildRequires: rubygem(mail) >= 2.5.4
2023-01-19 14:11:56 +08:00
BuildRequires: rubygem(net-smtp)
BuildArch: noarch
2020-08-28 15:40:55 +08:00
%description
Email on Rails. Compose, deliver, and test emails using the familiar
2020-08-28 15:40:55 +08:00
controller/view pattern. First-class support for multipart email and
attachments.
%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{epoch}:%{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}.
2020-08-28 15:40:55 +08:00
%prep
%setup -q -n %{gem_name}-%{version}%{?prerelease} -b1 -b2
2020-08-28 15:40:55 +08:00
%build
gem build ../%{gem_name}-%{version}%{?prerelease}.gemspec
%gem_install
2020-08-28 15:40:55 +08:00
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
%check
pushd .%{gem_instdir}
ln -s %{_builddir}/tools ..
mv %{_builddir}/test .
2023-01-19 14:11:56 +08:00
# Bigdecimal does not get auto-required
# https://github.com/rails/rails/issues/44399
ruby -Ilib:test -rbigdecimal -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
2020-08-28 15:40:55 +08:00
popd
%files
%dir %{gem_instdir}
%license %{gem_instdir}/MIT-LICENSE
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/CHANGELOG.md
%doc %{gem_instdir}/README.rdoc
%changelog
2023-01-19 14:11:56 +08:00
* Thu Jan 19 2023 wangkai <wangkai385@h-partners.com> - 1:7.0.4-1
- Upgrade to version 7.0.4
2022-06-17 06:10:20 +00:00
* Wed May 04 2022 wangkerong <wangkerong@h-partners.com> - 6.1.4.1-1
- Upgrade to 6.1.4.1
* Mon Feb 8 2021 sunguoshuai <sunguoshuai@huawei.com> - 5.2.4.4-1
- Upgrade to 5.2.4.4
2020-08-28 15:40:55 +08:00
* Sat Aug 8 2020 chengzihan <chengzihan2@huawei.com> - 5.2.3-1
- Package init