[rubygem-afm] Update to 0.2.2

Josef Stribny jstribny at fedoraproject.org
Mon Jul 7 11:16:27 UTC 2014


commit 2d9f7a586f796fd5e31f28ed25ba02f436d7849c
Author: Josef Stribny <jstribny at redhat.com>
Date:   Mon Jul 7 13:16:37 2014 +0200

    Update to 0.2.2

 .gitignore                        |    1 +
 rubygem-afm-0.2.0-ruby2-fix.patch |   30 ------------------------------
 rubygem-afm.spec                  |   19 +++++++++----------
 sources                           |    2 +-
 4 files changed, 11 insertions(+), 41 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 2fd7a0c..20abeb6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /afm-0.2.0.gem
+/afm-0.2.2.gem
diff --git a/rubygem-afm.spec b/rubygem-afm.spec
index 386259e..93a5e50 100644
--- a/rubygem-afm.spec
+++ b/rubygem-afm.spec
@@ -2,18 +2,13 @@
 %global gem_name afm
 
 Name: rubygem-%{gem_name}
-Version: 0.2.0
-Release: 4%{?dist}
+Version: 0.2.2
+Release: 1%{?dist}
 Summary: Reading Adobe Font Metrics (afm) files
 Group: Development/Languages
 License: MIT
 URL: http://github.com/halfbyte/afm
 Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
-# Already fixed in upstream
-# https://github.com/halfbyte/afm/pull/4
-Patch0: rubygem-afm-0.2.0-ruby2-fix.patch
-Requires: ruby(release)
-Requires: ruby(rubygems)
 BuildRequires: ruby(release)
 BuildRequires: rubygems-devel
 BuildRequires: rubygem(minitest)
@@ -41,8 +36,6 @@ gem unpack %{SOURCE0}
 
 gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
 
-%patch0 -p1
-
 %build
 gem build %{gem_name}.gemspec
 
@@ -56,7 +49,9 @@ cp -a .%{gem_dir}/* \
 
 %check
 pushd .%{gem_instdir}
-testrb -Ilib:test test/test_*.rb
+# Get rid of Bundler
+sed -i -e '2d' ./test/helper.rb
+ruby -Ilib:test -e 'Dir.glob "./test/test_*.rb", &method(:require)'
 popd
 
 %files
@@ -71,12 +66,16 @@ popd
 
 %files doc
 %doc %{gem_docdir}
+%doc %{gem_instdir}/CHANGELOG.md
 %doc %{gem_instdir}/VERSION
 %doc %{gem_instdir}/README.rdoc
 %{gem_instdir}/Rakefile
 %{gem_instdir}/test
 
 %changelog
+* Mon Jul 07 2014 Josef Stribny <jstribny at redhat.com> - 0.2.2-1
+- Update to 0.2.2
+
 * Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.2.0-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
 
diff --git a/sources b/sources
index 44ef9c3..ed0a1ae 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-9457328be42504a34ec83bf049772d17  afm-0.2.0.gem
+553ff9d489d4378fe2525be6f0d7694a  afm-0.2.2.gem


More information about the scm-commits mailing list