diff options
author | Ken Dreyer <ktdreyer@ktdreyer.com> | 2013-02-20 20:51:09 -0700 |
---|---|---|
committer | Ken Dreyer <ktdreyer@ktdreyer.com> | 2013-02-20 20:51:09 -0700 |
commit | e26d0a73f064756649f00384a2a6ba42363b89f1 (patch) | |
tree | 231316c9226ccb7d2a46dd519fcb581c605d9f47 | |
download | rubygem-actionmailer-master.tar.gz rubygem-actionmailer-master.tar.xz rubygem-actionmailer-master.zip |
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | rubygem-actionmailer.spec | 90 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 92 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..aac5962 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/actionmailer-2.3.17.gem diff --git a/rubygem-actionmailer.spec b/rubygem-actionmailer.spec new file mode 100644 index 0000000..9123b0b --- /dev/null +++ b/rubygem-actionmailer.spec @@ -0,0 +1,90 @@ +# Generated from actionmailer-2.3.17.gem by gem2rpm -*- rpm-spec -*- +%global gem_name actionmailer +%if 0%{?el6} +%global rubyabi 1.8 +%else +%global rubyabi 1.9.1 +%endif + +Summary: Service layer for easy email delivery and testing +Name: rubygem-%{gem_name} +Version: 2.3.17 +Release: 1%{?dist} +Group: Development/Languages +License: MIT +URL: http://www.rubyonrails.org +Source0: %{gem_name}-%{version}.gem +Requires: ruby(abi) = %{rubyabi} +Requires: ruby(rubygems) +Requires: rubygem(actionpack) = 2.3.17 +BuildRequires: ruby(abi) = %{rubyabi} +%if 0%{?el6} +BuildRequires: ruby(rubygems) +%else +BuildRequires: rubygems-devel +%endif +BuildRequires(check): rubygem(rake) +BuildRequires(check): rubygem(actionpack) = %{version} +BuildRequires(check): rubygem(mocha) +BuildArch: noarch +Provides: rubygem(%{gem_name}) = %{version} + +# macros for RHEL6 compatibility: +%{!?gem_dir: %global gem_dir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)} +%{!?gem_instdir: %global gem_instdir %{gem_dir}/gems/%{gem_name}-%{version}} +%{!?gem_libdir: %global gem_libdir %{gem_instdir}/lib} +%{!?gem_cache: %global gem_cache %{gem_dir}/cache/%{gem_name}-%{version}.gem} +%{!?gem_spec: %global gem_spec %{gem_dir}/specifications/%{gem_name}-%{version}.gemspec} +%{!?gem_docdir: %global gem_docdir %{gem_dir}/doc/%{gem_name}-%{version}} +%{!?gem_extdir: %global gem_extdir %{_libdir}/gems/exts/%{gem_name}-%{version}} + +%description +Makes it trivial to test and deliver emails sent from a single service layer. + + +%package doc +Summary: Documentation for %{name} +Group: Documentation +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +Documentation for %{name} + +%prep +%setup -q -c -T +mkdir -p .%{gem_dir} +gem install --local --install-dir .%{gem_dir} \ + --force %{SOURCE0} + +%build + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + +%check +pushd .%{gem_instdir} + testrb test +popd + + +%files +%dir %{gem_instdir} +%doc %{gem_instdir}/MIT-LICENSE +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} +%{gem_instdir}/Rakefile +%{gem_instdir}/install.rb + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/CHANGELOG +%doc %{gem_instdir}/README +%{gem_instdir}/test + +%changelog +* Wed Feb 20 2013 ktdreyer@ktdreyer.com - 2.3.17-1 +- Initial package, created with gem2rpm 0.8.1 @@ -0,0 +1 @@ +261608e42d6e63ac61cd7fc18cf01fd2 actionmailer-2.3.17.gem |