[rubygem-actionmailer] Rebuilt for Ruby 1.9.3.
Bohuslav Kabrda
bkabrda at fedoraproject.org
Wed Feb 1 07:14:01 UTC 2012
commit 923bc85ec5d9878a9ecbcc325fcdb229454d817c
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date: Wed Feb 1 08:13:52 2012 +0100
Rebuilt for Ruby 1.9.3.
.gitignore | 2 +
actionmailer-update-mail-dep.patch | 10 ++--
rubygem-actionmailer.spec | 79 ++++++++++++++++++------------------
sources | 4 +-
4 files changed, 49 insertions(+), 46 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 62bda09..c808e45 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,5 @@ actionmailer-2.3.5.gem
/actionmailer-3.0.9.gem
/actionmailer-3.0.10-tests.tgz
/actionmailer-3.0.10.gem
+/actionmailer-3.0.11-tests.tgz
+/actionmailer-3.0.11.gem
diff --git a/actionmailer-update-mail-dep.patch b/actionmailer-update-mail-dep.patch
index be4da0b..1fea68d 100644
--- a/actionmailer-update-mail-dep.patch
+++ b/actionmailer-update-mail-dep.patch
@@ -1,18 +1,18 @@
---- specifications/actionmailer-3.0.10.gemspec.orig 2011-06-02 18:25:45.915446995 -0400
-+++ specifications/actionmailer-3.0.10.gemspec 2011-06-02 18:26:14.600445963 -0400
+--- specifications/actionmailer-3.0.11.gemspec.orig 2011-06-02 18:25:45.915446995 -0400
++++ specifications/actionmailer-3.0.11.gemspec 2011-06-02 18:26:14.600445963 -0400
@@ -22,13 +22,13 @@ Gem::Specification.new do |s|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<actionpack>, ["= 3.0.10"])
+ s.add_runtime_dependency(%q<actionpack>, ["= 3.0.11"])
- s.add_runtime_dependency(%q<mail>, ["~> 2.2.19"])
+ s.add_runtime_dependency(%q<mail>, ["~> 2.3.0"])
else
- s.add_dependency(%q<actionpack>, ["= 3.0.10"])
+ s.add_dependency(%q<actionpack>, ["= 3.0.11"])
- s.add_dependency(%q<mail>, ["~> 2.2.19"])
+ s.add_dependency(%q<mail>, ["~> 2.3.0"])
end
else
- s.add_dependency(%q<actionpack>, ["= 3.0.10"])
+ s.add_dependency(%q<actionpack>, ["= 3.0.11"])
- s.add_dependency(%q<mail>, ["~> 2.2.19"])
+ s.add_dependency(%q<mail>, ["~> 2.3.0"])
end
diff --git a/rubygem-actionmailer.spec b/rubygem-actionmailer.spec
index f785545..bad42b3 100644
--- a/rubygem-actionmailer.spec
+++ b/rubygem-actionmailer.spec
@@ -1,16 +1,13 @@
# Generated from actionmailer-1.3.6.gem by gem2rpm -*- rpm-spec -*-
-%global gemname actionmailer
+%global gem_name actionmailer
-%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
-%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
-
-%global rubyabi 1.8
+%global rubyabi 1.9.1
Summary: Service layer for easy email delivery and testing
-Name: rubygem-%{gemname}
+Name: rubygem-%{gem_name}
Epoch: 1
-Version: 3.0.10
-Release: 2%{?dist}
+Version: 3.0.11
+Release: 1%{?dist}
Group: Development/Languages
License: MIT
URL: http://www.rubyonrails.org
@@ -18,14 +15,14 @@ URL: http://www.rubyonrails.org
Source0: http://rubygems.org/downloads/actionmailer-%{version}.gem
# The actionmailer gem doesn't ship with the upstream Rakefile
-Source1: http://github.com/rails/rails/raw/v%{version}/%{gemname}/Rakefile
+Source1: http://github.com/rails/rails/raw/v%{version}/%{gem_name}/Rakefile
# Also the 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 checkout v3.0.10
-# tar czvf actionmailer-3.0.10-tests.tgz test/
+# git checkout v3.0.11
+# tar czvf actionmailer-3.0.11-tests.tgz test/
Source2: actionmailer-%{version}-tests.tgz
# Remove a task which breaks the Rakefile due to the gemspec
@@ -40,19 +37,20 @@ Patch1: actionmailer-tests-fix.patch
Patch2: actionmailer-update-mail-dep.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Requires: rubygems
+Requires: ruby(rubygems)
Requires: rubygem(actionpack) = %{version}
Requires: rubygem(text-format)
Requires: rubygem(mail) >= 2.3.0
Requires: ruby(abi) = %{rubyabi}
-BuildRequires: rubygems
+BuildRequires: rubygems-devel
BuildRequires: rubygem(rake)
BuildRequires: rubygem(actionpack) = %{version}
BuildRequires: rubygem(text-format)
BuildRequires: rubygem(mail) >= 2.3.0
BuildRequires: rubygem(mocha)
+BuildRequires: rubygem(minitest)
BuildArch: noarch
-Provides: rubygem(%{gemname}) = %{version}
+Provides: rubygem(%{gem_name}) = %{version}
%description
Makes it trivial to test and deliver emails sent from a single service layer.
@@ -60,36 +58,36 @@ Makes it trivial to test and deliver emails sent from a single service layer.
%prep
%setup -q -c -T
-mkdir -p .%{gemdir}
-gem install --local --install-dir .%{gemdir} \
+mkdir -p .%{gem_dir}
+gem install --local --install-dir .%{gem_dir} \
-V \
--force --rdoc %{SOURCE0}
# move the Rakefile in place
-cp %{SOURCE1} .%{geminstdir}
+cp %{SOURCE1} .%{gem_instdir}
# move the tests into place
-tar xzvf %{SOURCE2} -C .%{geminstdir}
+tar xzvf %{SOURCE2} -C .%{gem_instdir}
-pushd ./%{geminstdir}
+pushd ./%{gem_instdir}
%patch0 -p0
%patch1 -p0
popd
-pushd ./%{gemdir}
+pushd ./%{gem_dir}
%patch2 -p0
popd
# Remove backup files
-find ./%{geminstdir} -type f -name "*~" -delete
+find ./%{gem_instdir} -type f -name "*~" -delete
# Fix anything executable that does not have a shebang
-for file in `find ./%{geminstdir} -type f -perm /a+x`; do
+for file in `find ./%{gem_instdir} -type f -perm /a+x`; do
[ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file
done
# Find files with a shebang that do not have executable permissions
-for file in `find ./%{geminstdir} -type f ! -perm /a+x -name "*.rb"`; do
+for file in `find ./%{gem_instdir} -type f ! -perm /a+x -name "*.rb"`; do
[ ! -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 755 $file
done
@@ -98,33 +96,36 @@ done
%install
rm -rf %{buildroot}
-mkdir -p %{buildroot}%{gemdir}
-cp -a .%{gemdir}/* %{buildroot}%{gemdir}/
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/
%clean
rm -rf %{buildroot}
%check
-export GEM_PATH=$(pwd)/%{gemdir}
-pushd .%{geminstdir}
-
-rake test --trace
+export GEM_PATH="$(pwd)/%{gem_dir}:%{gem_dir}"
+pushd .%{gem_instdir}
+ruby -Itest -I. -e "Dir.glob('test/**/*_test.rb').each {|t| require t}"
+popd
%files
%defattr(-, root, root, -)
-%dir %{geminstdir}
-%doc %{geminstdir}/CHANGELOG
-%{geminstdir}/Rakefile
-%{geminstdir}/test
-%{geminstdir}/lib
-%doc %{geminstdir}/MIT-LICENSE
-%doc %{geminstdir}/README.rdoc
-%doc %{gemdir}/doc/%{gemname}-%{version}
-%{gemdir}/cache/%{gemname}-%{version}.gem
-%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+%dir %{gem_instdir}
+%doc %{gem_instdir}/CHANGELOG
+%{gem_instdir}/Rakefile
+%{gem_instdir}/test
+%{gem_libdir}
+%doc %{gem_instdir}/MIT-LICENSE
+%doc %{gem_instdir}/README.rdoc
+%doc %{gem_docdir}
+%{gem_cache}
+%{gem_spec}
%changelog
+* Wed Feb 01 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 1:3.0.11-1
+- Rebuilt for Ruby 1.9.3.
+
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1:3.0.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
diff --git a/sources b/sources
index 3037bab..9be3d6b 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-b59893129a96e7d5bcfc56c763c43c9c actionmailer-3.0.10-tests.tgz
-802707b855c42752d5db4cd9944af162 actionmailer-3.0.10.gem
+24a30642870071eb324997da4199ac78 actionmailer-3.0.11-tests.tgz
+32691e0f2b8d5fad2283358f0dcbd3e1 actionmailer-3.0.11.gem
More information about the scm-commits
mailing list