!1 Package init

Merge pull request !1 from 成子晗/master
This commit is contained in:
openeuler-ci-bot 2020-08-31 17:04:35 +08:00 committed by Gitee
commit 04b028c7bf
4 changed files with 62 additions and 0 deletions

BIN
actionmailer-5.2.3.gem Normal file

Binary file not shown.

58
rubygem-actionmailer.spec Normal file
View File

@ -0,0 +1,58 @@
%global gem_name actionmailer
Name: rubygem-%{gem_name}
Epoch: 1
Version: 5.2.3
Release: 1
Summary: Email composition, delivery, and receiving framework (part of Rails)
License: MIT
URL: http://rubyonrails.org
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1: https://github.com/rails/rails/archive/v5.2.3.tar.gz
BuildRequires: ruby(release) rubygems-devel ruby >= 2.2.2 rubygem(actionpack) = %{version}
BuildRequires: rubygem(activejob) = %{version} rubygem(mail) >= 2.5.4
BuildArch: noarch
%description
Email on Rails. Compose, deliver, receive, and test emails using the familiar
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}.
%prep
%setup -q -c -T
%gem_install -n %{SOURCE0}
%build
%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}
ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
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
* Sat Aug 8 2020 chengzihan <chengzihan2@huawei.com> - 5.2.3-1
- Package init

View File

@ -0,0 +1,4 @@
version_control: github
src_repo: rails/rails
tag_prefix: "v"
seperator: "."

BIN
v5.2.3.tar.gz Normal file

Binary file not shown.