Fix build issue disable one test due to DNS lookup not available on koji mock builders

epel9
Shawn Starr 13 years ago
parent 668bfa2228
commit 34b1cb011f

@ -4,7 +4,7 @@
Summary: Improved URI/URL Implementation Summary: Improved URI/URL Implementation
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 2.3.2 Version: 2.3.2
Release: 1%{?dist} Release: 2%{?dist}
Group: Development/Languages Group: Development/Languages
License: ASL 2.0 License: ASL 2.0
URL: http://addressable.rubyforge.org/ URL: http://addressable.rubyforge.org/
@ -57,8 +57,11 @@ find .%{gem_instdir}/{Rakefile,lib,spec} -type f | \
find .%{gem_instdir}/{Rakefile,lib,spec} -type f | \ find .%{gem_instdir}/{Rakefile,lib,spec} -type f | \
xargs chmod 0644 xargs chmod 0644
# Fix conflict causing spec test failure # Fix conflict causing spec test failure - Only needed if test below is not deleted
sed -i -e 's#^\([[:blank:]]*class\)[[:blank:]]HTTP*$#\1 AddressableHTTP#' -e 's#URI::HTTP#URI::AddressableHTTP#' .%{gem_instdir}/spec/addressable/uri_spec.rb #sed -i -e 's#^\([[:blank:]]*class\)[[:blank:]]HTTP*$#\1 AddressableHTTP#' -e 's#URI::HTTP#URI::AddressableHTTP#' .%{gem_instdir}/spec/addressable/uri_spec.rb
# Remove this test since fails on koji mock builders due to DNS lookup
rm .%{gem_instdir}/spec/addressable/net_http_compat_spec.rb
%check %check
pushd .%{gem_instdir} pushd .%{gem_instdir}
@ -86,6 +89,10 @@ popd
%{gem_docdir} %{gem_docdir}
%changelog %changelog
* Thu Aug 23 2012 Shawn Starr <shawn.starr@rogers.com> - 2.3.2-2
- Fix build issue disable one test due to DNS lookup not available on koji mock builders
* Thu Aug 23 2012 Shawn Starr <shawn.starr@rogers.com> - 2.3.2-1 * Thu Aug 23 2012 Shawn Starr <shawn.starr@rogers.com> - 2.3.2-1
- Bump to latest upstream - Bump to latest upstream
- Fix spec test due to namespace/classname conflict - Fix spec test due to namespace/classname conflict

Loading…
Cancel
Save