rubygem-actionmailer/rubygem-actionmailer.spec

93 lines
2.2 KiB
RPMSpec
Raw Normal View History

2021-06-07 16:04:04 +08:00
%global pkg_name %{name}
2020-08-28 15:40:55 +08:00
%global gem_name actionmailer
2021-06-07 16:04:04 +08:00
%global gem_require_name %{gem_name}
Name: rubygem-%{gem_name}
Version: 6.0.3.4
Release: 1
Summary: Email composition and delivery framework (part of Rails)
Group: Development/Languages
License: MIT
URL: https://rubyonrails.org
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1: https://github.com/rails/rails/archive/refs/tags/v%{version}.tar.gz
Requires: ruby(release)
Requires: ruby >= 2.5.0
Requires: ruby(rubygems)
Requires: rubygem(actionpack) = 6.0.3.4
Requires: rubygem(actionview) = 6.0.3.4
Requires: rubygem(activejob) = 6.0.3.4
Requires: rubygem(mail) >= 2.5
Requires: rubygem(mail) < 3
Requires: rubygem(mail) >= 2.5.4
Requires: rubygem(rails-dom-testing) >= 2.0
Requires: rubygem(rails-dom-testing) < 3
BuildRequires: ruby(release)
BuildRequires: ruby >= 2.5.0
BuildRequires: rubygems-devel
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}
Obsoletes: tfm-ror52-rubygem-%{gem_name} <= 5.2.1
2020-08-28 15:40:55 +08:00
%description
2021-06-07 16:04:04 +08:00
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.
2021-06-07 16:04:04 +08:00
2020-08-28 15:40:55 +08:00
%package doc
2021-06-07 16:04:04 +08:00
Summary: Documentation for %{pkg_name}
Group: Documentation
Requires: %{pkg_name} = %{version}-%{release}
BuildArch: noarch
2020-08-28 15:40:55 +08:00
%description doc
2021-06-07 16:04:04 +08:00
Documentation for %{pkg_name}.
2020-08-28 15:40:55 +08:00
%prep
2021-06-07 16:04:04 +08:00
gem unpack %{SOURCE0}
%setup -q -D -T -n %{gem_name}-%{version}
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
2020-08-28 15:40:55 +08:00
%build
2021-06-07 16:04:04 +08:00
gem build %{gem_name}.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}
tar xzvf %{SOURCE1}
cd rails-%{version}/%{gem_name}
2021-06-07 16:04:04 +08:00
ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb"'
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
2021-06-07 16:04:04 +08:00
* Mon Jun 07 2021 jiangxinyu <jiangxinyu@kylinos.cn> - 6.0.3.4-1
- Update to 6.0.3.4
* 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