228 lines
8.7 KiB
RPMSpec
228 lines
8.7 KiB
RPMSpec
# Generated from faraday-0.8.7.gem by gem2rpm -*- rpm-spec -*-
|
|
%global gem_name faraday
|
|
|
|
Name: rubygem-%{gem_name}
|
|
Version: 1.0.1
|
|
Release: 18%{?dist}
|
|
Summary: HTTP/REST API client library
|
|
License: MIT
|
|
URL: https://lostisland.github.io/faraday
|
|
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
# Since we don't have multipart-parser in Fedora, include the essential part
|
|
# just for testing purposes.
|
|
# https://github.com/danabr/multipart-parser/blob/master/lib/multipart_parser/parser.rb
|
|
Source1: https://raw.githubusercontent.com/danabr/multipart-parser/master/lib/multipart_parser/parser.rb
|
|
# https://github.com/danabr/multipart-parser/blob/master/lib/multipart_parser/reader.rb
|
|
Source2: https://raw.githubusercontent.com/danabr/multipart-parser/master/lib/multipart_parser/reader.rb
|
|
# Fix Rack 2.1+ test compatibility.
|
|
# https://github.com/lostisland/faraday/pull/1171
|
|
Patch0: rubygem-faraday-1.0.1-Properly-fix-test-failure-with-Rack-2.1.patch
|
|
# Extracted from:
|
|
# https://github.com/lostisland/faraday/commit/687108bb4ddc2511aeaae7449dd401fe62dd5ceb
|
|
Patch1: faraday-1.0.1-net-http-persistent-3-error-kind.patch
|
|
# "undefined method" error message changed with ruby 3.3
|
|
# https://github.com/lostisland/faraday/pull/1523
|
|
# https://github.com/ruby/ruby/pull/6950
|
|
Patch2: faraday-pr1523-testsuite-undefined-method-change.patch
|
|
# ruby3.4 backtrace quoting change
|
|
# https://github.com/lostisland/faraday/pull/1560
|
|
Patch3: faraday-pr1560-ruby34-backtrace-change.patch
|
|
# ruby3.4 Hash#inspect formatting change
|
|
# https://github.com/lostisland/faraday/pull/1604
|
|
Patch4: faraday-pr1604-ruby34-hash-inspect-formatting-change.patch
|
|
# https://github.com/lostisland/faraday-rack/pull/13
|
|
# https://github.com/lostisland/faraday-rack/commit/a590bc34e40b62484440dcd4ab5147c0c02bb425
|
|
# Patch for rack 3.1 wrt env['rack.input'] is optional
|
|
Patch5: faraday-rack-pr13-rack31-rack_input.patch
|
|
# https://github.com/lostisland/faraday/pull/1549
|
|
# https://github.com/lostisland/faraday/commit/66551ecc79f5d3d5bca1a2523bd8736db8c2220c.patch
|
|
# Unescape the result of Rack::Utils.build_nested_query for rack 3.1
|
|
Patch6: faraday-pr1549-unespace-rack-utils-query-result.patch
|
|
BuildRequires: ruby(release)
|
|
BuildRequires: rubygems-devel
|
|
BuildRequires: ruby >= 2.3
|
|
BuildRequires: rubygem(multipart-post)
|
|
BuildRequires: rubygem(rack)
|
|
BuildRequires: rubygem(rspec)
|
|
BuildRequires: rubygem(webmock)
|
|
# Adapter test dependencies, might be optionally disabled.
|
|
BuildRequires: rubygem(em-http-request)
|
|
BuildRequires: rubygem(excon)
|
|
BuildRequires: rubygem(httpclient)
|
|
BuildRequires: rubygem(net-http-persistent)
|
|
BuildRequires: rubygem(rack-test)
|
|
BuildRequires: rubygem(typhoeus)
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
HTTP/REST API client library.
|
|
|
|
|
|
%package doc
|
|
Summary: Documentation for %{name}
|
|
Requires: %{name} = %{version}-%{release}
|
|
BuildArch: noarch
|
|
|
|
%description doc
|
|
Documentation for %{name}.
|
|
|
|
%prep
|
|
mkdir -p multipart_parser/multipart_parser
|
|
cp %{SOURCE1} %{SOURCE2} multipart_parser/multipart_parser
|
|
|
|
%autosetup -n %{gem_name}-%{version} -p1
|
|
|
|
%build
|
|
# Create the gem as gem install only works on a gem file
|
|
gem build ../%{gem_name}-%{version}.gemspec
|
|
|
|
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
|
|
# by default, so that we can move it into the buildroot in %%install
|
|
%gem_install
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
cp -a .%{gem_dir}/* \
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
|
|
|
|
%check
|
|
pushd .%{gem_instdir}
|
|
# We don't care about code coverage.
|
|
sed -i "/simplecov/ s/^/#/" spec/spec_helper.rb
|
|
sed -i "/coveralls/ s/^/#/" spec/spec_helper.rb
|
|
sed -i "/SimpleCov/,/^end$/ s/^/#/" spec/spec_helper.rb
|
|
|
|
# We don't need Pry.
|
|
sed -i "/pry/ s/^/#/" spec/spec_helper.rb
|
|
|
|
# We don't have {patron,em-synchrony} available in Fedora.
|
|
mv spec/faraday/adapter/em_synchrony_spec.rb{,.disabled}
|
|
mv spec/faraday/adapter/patron_spec.rb{,.disabled}
|
|
|
|
# This needs http-net-persistent 3.0+.
|
|
sed -i '/allows to set min_version in SSL settings/a\ skip' \
|
|
spec/faraday/adapter/net_http_persistent_spec.rb
|
|
|
|
rspec -I%{_builddir}/multipart_parser -rspec_helper -r%{SOURCE1} spec -f d
|
|
popd
|
|
|
|
%files
|
|
%dir %{gem_instdir}
|
|
%license %{gem_instdir}/LICENSE.md
|
|
%{gem_libdir}
|
|
%exclude %{gem_cache}
|
|
%{gem_spec}
|
|
|
|
%files doc
|
|
%doc %{gem_docdir}
|
|
%doc %{gem_instdir}/CHANGELOG.md
|
|
%doc %{gem_instdir}/README.md
|
|
%{gem_instdir}/Rakefile
|
|
%{gem_instdir}/examples
|
|
%{gem_instdir}/spec
|
|
|
|
%changelog
|
|
* Mon Dec 01 2025 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.0.1-18
|
|
- Backport upstream patch for rack3.1 change
|
|
|
|
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-17
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
|
|
|
|
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-16
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
|
|
|
* Wed Dec 04 2024 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.0.1-15
|
|
- Use upstreamed patch for ruby34 formatting change
|
|
|
|
* Sun Dec 01 2024 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.0.1-14
|
|
- Support ruby3.4 backtrace / Hash inspect formatting change
|
|
|
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-13
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-12
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-11
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
* Fri Sep 22 2023 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.0.1-10
|
|
- Backport upstream patch for testsuite with ruby3.3 undefined method
|
|
message change
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-9
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-8
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-7
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-6
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
* Sat Feb 20 2021 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.0.1-4
|
|
- Use upstream patch for net-http-persistent 4.0
|
|
|
|
* Sat Feb 20 2021 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.0.1-3
|
|
- Support for net-http-persistent 4.0 net connection failure error change
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
* Thu Jul 23 2020 Vít Ondruch <vondruch@redhat.com> - 1.0.1-1
|
|
- Update to Faraday 1.0.1.
|
|
Resolves: rhbz#1756449
|
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.4-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.4-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
* Fri Mar 01 2019 Vít Ondruch <vondruch@redhat.com> - 0.15.4-1
|
|
- Update to Faraday 0.15.4.
|
|
|
|
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-8
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-7
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-6
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
* Tue Jun 17 2014 Achilleas Pipinellis <axilleas@fedoraproject.org> - 0.9.0-1
|
|
- Bump to 0.9.0
|
|
- Remove unessecary files
|
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* Sun Nov 17 2013 Achilleas Pipinellis <axilleaspi@ymail.com> - 0.8.8-2
|
|
- Remove multibytes.txt
|
|
- Remove Gemfile, Rakefile from doc macro
|
|
|
|
* Sun Aug 04 2013 Anuj More - 0.8.8-1
|
|
- From 0.8.7 to 0.8.8
|
|
|
|
* Tue May 14 2013 Anuj More - 0.8.7-1
|
|
- Initial package
|