[rubygem-idn/epel7] Import to EPEL7 branch from F19 branch

tdawson tdawson at fedoraproject.org
Wed Aug 6 21:33:56 UTC 2014


commit def4d8dae6aac69df59dd9b4cd2f32b811c43e82
Author: Troy Dawson <tdawson at redhat.com>
Date:   Wed Aug 6 16:33:48 2014 -0500

    Import to EPEL7 branch from F19 branch

 rubygem-idn.spec |   33 ++++++++-------------------------
 1 files changed, 8 insertions(+), 25 deletions(-)
---
diff --git a/rubygem-idn.spec b/rubygem-idn.spec
index 79523ed..032647c 100644
--- a/rubygem-idn.spec
+++ b/rubygem-idn.spec
@@ -4,7 +4,7 @@
 Summary: Ruby Bindings for the GNU LibIDN library
 Name: rubygem-%{gem_name}
 Version: 0.0.2
-Release: 12%{?dist}
+Release: 9%{?dist}
 Group: Development/Languages
 
 # ASL license for ext/idn.c, ext/idn.h, ext/punycode.c and ext/stringprep.c
@@ -15,12 +15,15 @@ Patch0: rubygem-idn-0.0.2-Fix-for-ruby-1.9.x.patch
 # Fixes failure due to change in default encoding in Ruby 2.0.
 # http://rubyforge.org/tracker/index.php?func=detail&aid=29724&group_id=924&atid=3635
 Patch1: rubygem-idn-0.0.2-ruby2-encoding-in-tests-fix.patch
+Requires: ruby(release)
+Requires: ruby(rubygems)
 
 BuildRequires: rubygems-devel
 BuildRequires: libidn-devel
 BuildRequires: ruby-devel
 BuildRequires: rubygem(minitest)
 
+Provides: rubygem(%{gem_name}) = %{version}
 
 %description
 Ruby Bindings for the GNU LibIDN library, an implementation of the Stringprep, 
@@ -60,15 +63,10 @@ popd
 
 %install
 mkdir -p %{buildroot}%{gem_dir}
-mkdir -p %{buildroot}%{gem_extdir_mri}
+mkdir -p %{buildroot}%{gem_extdir_mri}/lib
 cp -a ./* %{buildroot}/
 
-cp -a .%{gem_extdir_mri}/* %{buildroot}%{gem_extdir_mri}/
-
-# Prevent dangling symlink in -debuginfo.
-rm -rf %{buildroot}%{gem_instdir}/ext
-
-
+mv %{buildroot}%{gem_instdir}/lib/%{gem_name}.so %{buildroot}%{gem_extdir_mri}/lib/
 
 ## remove all shebang, set permission to 0644
 find .%{gem_instdir}/{Rakefile,lib,spec} -type f | \
@@ -78,14 +76,7 @@ find .%{gem_instdir}/{Rakefile,lib,spec} -type f | \
 
 %check
 pushd .%{gem_instdir}
-
-sed -i '/test\/unit/ s/^/#/' test/*.rb
-ruby -rminitest/autorun -Itest:$(dirs +1)%{gem_extdir_mri} - << \EOF
-  Test = Minitest
-  Minitest::Test.send :alias_method, :assert_raise, :assert_raises;
-  Dir.glob "./test/tc_*.rb", &method(:require)
-EOF
-
+testrb -Ilib test/tc_*.rb
 popd
 
 %files
@@ -95,6 +86,7 @@ popd
 %doc %{gem_instdir}/CHANGES
 %doc %{gem_instdir}/LICENSE
 %{gem_spec}
+%exclude %{gem_instdir}/ext
 %exclude %{gem_cache}
 
 %files doc
@@ -106,15 +98,6 @@ popd
 %{gem_docdir}
 
 %changelog
-* Sun Jun 08 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.0.2-12
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
-
-* Mon Apr 14 2014 Vít Ondruch <vondruch at redhat.com> - 0.0.2-11
-- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.1
-
-* Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.0.2-10
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
-
 * Thu Mar 07 2013 Josef Stribny <jstribny at redhat.com> - 0.0.2-9
 - Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
 


More information about the scm-commits mailing list