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
Name: rubygem-%{gem_name}
Version: 2.3.2
Release: 1%{?dist}
Release: 2%{?dist}
Group: Development/Languages
License: ASL 2.0
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 | \
xargs chmod 0644
# Fix conflict causing spec test failure
sed -i -e 's#^\([[:blank:]]*class\)[[:blank:]]HTTP*$#\1 AddressableHTTP#' -e 's#URI::HTTP#URI::AddressableHTTP#' .%{gem_instdir}/spec/addressable/uri_spec.rb
# 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
# Remove this test since fails on koji mock builders due to DNS lookup
rm .%{gem_instdir}/spec/addressable/net_http_compat_spec.rb
%check
pushd .%{gem_instdir}
@ -86,6 +89,10 @@ popd
%{gem_docdir}
%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
- Bump to latest upstream
- Fix spec test due to namespace/classname conflict

Loading…
Cancel
Save