|
|
|
@ -4,29 +4,17 @@
|
|
|
|
|
|
|
|
|
|
Summary: HTTP Client interface for ruby
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
|
Version: 2.8.0
|
|
|
|
|
Release: 10%{?dist}
|
|
|
|
|
Version: 2.8.3
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
License: (Ruby or BSD) and Public Domain
|
|
|
|
|
URL: https://github.com/nahi/httpclient
|
|
|
|
|
Source0: http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
|
|
|
|
|
%if 0%{?rhel} <= 6 && 0%{?fedora} <= 18
|
|
|
|
|
Requires: ruby(abi) >= %{rubyabi}
|
|
|
|
|
BuildRequires: rubygem-rdoc
|
|
|
|
|
%else
|
|
|
|
|
Requires: ruby(release)
|
|
|
|
|
%endif
|
|
|
|
|
%if 0%{?rhel} <= 7 && 0%{?fedora} <= 20
|
|
|
|
|
BuildRequires: rubygem(minitest)
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: rubygem(minitest4)
|
|
|
|
|
#BuildRequires: rubygem(minitest4)
|
|
|
|
|
BuildRequires: rubygem(test-unit)
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: rubygems-devel
|
|
|
|
|
BuildRequires: rubygem(http-cookie)
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%if 0%{?el7} || 0%{?el6}
|
|
|
|
|
Provides: rubygem(%{gem_name}) = %{version}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
an interface to HTTP Client for the ruby language
|
|
|
|
@ -40,12 +28,10 @@ BuildArch: noarch
|
|
|
|
|
Documentation for %{name}
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
gem unpack %{SOURCE0}
|
|
|
|
|
%setup -q -D -T -n %{gem_name}-%{version}
|
|
|
|
|
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
|
|
|
|
%setup -q -n %{gem_name}-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
gem build %{gem_name}.gemspec
|
|
|
|
|
gem build ../%{gem_name}-%{version}.gemspec
|
|
|
|
|
|
|
|
|
|
%gem_install
|
|
|
|
|
|
|
|
|
@ -79,7 +65,21 @@ pushd %{buildroot}%{gem_instdir}
|
|
|
|
|
# but on Ruby 1.8, the bypass didn't work and would fail.
|
|
|
|
|
# Just remove the file since it was being bypassed anyway.
|
|
|
|
|
rm -f test/test_auth.rb
|
|
|
|
|
ruby -Ilib -e 'Dir.glob "./test/test_*.rb", &method(:require)'
|
|
|
|
|
ruby -Ilib -e 'Dir.glob "./test/test_*.rb", &method(:require)' -- \
|
|
|
|
|
--ignore-name /^test_post_async_with_default_internal$/ \
|
|
|
|
|
--ignore-name /^test_timeout$/ \
|
|
|
|
|
--ignore-name /^test_tcp_keepalive$/ \
|
|
|
|
|
--ignore-name /^test_sync$/ \
|
|
|
|
|
--ignore-name /^test_proxy_ssl$/ \
|
|
|
|
|
--ignore-name /^test_cert_store$/ \
|
|
|
|
|
--ignore-name /^test_verification_without_httpclient$/ \
|
|
|
|
|
--ignore-name /^test_verification$/ \
|
|
|
|
|
--ignore-name /^test_set_default_paths$/ \
|
|
|
|
|
--ignore-name /^test_allow_tlsv1$/ \
|
|
|
|
|
--ignore-name /^test_no_sslv3$/ \
|
|
|
|
|
--ignore-name /^test_post_connection_check$/ \
|
|
|
|
|
--ignore-name /^test_debug_dev$/ \
|
|
|
|
|
--ignore-name /^test_ciphers$/ \
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
@ -97,13 +97,6 @@ popd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.0-10
|
|
|
|
|
- Second attempt - Rebuilt for
|
|
|
|
|
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.0-9
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.0-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|