|
|
04cc281 |
%global gem_name excon
|
|
Chris Lalancette |
8007560 |
|
|
|
66c1b4f |
# Test suite fails with fresh certificates. Upstream hit this issue as well:
|
|
|
66c1b4f |
# https://github.com/excon/excon/pull/823/commits/06659d6408faa4f7c17b90f1b3e204fc00448311
|
|
|
66c1b4f |
%bcond_with certificate_refresh
|
|
|
66c1b4f |
|
|
|
04cc281 |
Name: rubygem-%{gem_name}
|
|
|
66c1b4f |
Version: 0.100.0
|
|
|
dc03b15 |
Release: 3%{?dist}
|
|
|
dcc14a5 |
Summary: Speed, persistence, http(s)
|
|
Chris Lalancette |
8007560 |
License: MIT
|
|
|
dcc14a5 |
URL: https://github.com/excon/excon
|
|
|
dcc14a5 |
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
469e395 |
# git clone https://github.com/excon/excon.git --no-checkout
|
|
|
66c1b4f |
# cd excon && git archive -v -o excon-0.100.0-tests.txz v0.100.0 tests/ spec/
|
|
|
469e395 |
Source1: %{gem_name}-%{version}-tests.txz
|
|
|
dcc14a5 |
BuildRequires: ruby(release)
|
|
|
04cc281 |
BuildRequires: rubygems-devel
|
|
|
dcc14a5 |
BuildRequires: ruby
|
|
|
66c1b4f |
%{?with_certificate_refresh:BuildRequires: %{_bindir}/openssl}
|
|
|
5287ae2 |
BuildRequires: %{_bindir}/rackup
|
|
|
6665c17 |
BuildRequires: %{_bindir}/shindont
|
|
|
04cc281 |
BuildRequires: rubygem(activesupport)
|
|
|
04cc281 |
BuildRequires: rubygem(delorean)
|
|
|
dcc14a5 |
BuildRequires: rubygem(eventmachine)
|
|
bkabrda |
b31b247 |
BuildRequires: rubygem(open4)
|
|
|
2608c45 |
BuildRequires: rubygem(puma)
|
|
bkabrda |
b31b247 |
BuildRequires: rubygem(sinatra)
|
|
|
5287ae2 |
BuildRequires: rubygem(rspec)
|
|
|
1c1b61f |
BuildRequires: rubygem(webrick)
|
|
Chris Lalancette |
8007560 |
BuildArch: noarch
|
|
Chris Lalancette |
8007560 |
|
|
Chris Lalancette |
8007560 |
%description
|
|
|
dcc14a5 |
EXtended http(s) CONnections.
|
|
|
dcc14a5 |
|
|
Chris Lalancette |
8007560 |
|
|
bkabrda |
b31b247 |
%package doc
|
|
bkabrda |
b31b247 |
Summary: Documentation for %{name}
|
|
bkabrda |
b31b247 |
Requires: %{name} = %{version}-%{release}
|
|
|
dcc14a5 |
BuildArch: noarch
|
|
bkabrda |
b31b247 |
|
|
bkabrda |
b31b247 |
%description doc
|
|
|
dcc14a5 |
Documentation for %{name}.
|
|
Chris Lalancette |
8007560 |
|
|
Chris Lalancette |
8007560 |
%prep
|
|
|
4c811d1 |
%setup -q -n %{gem_name}-%{version} -b 1
|
|
|
bf31fe1 |
|
|
|
6665c17 |
|
|
|
2608c45 |
# Use system crypto policies.
|
|
|
2608c45 |
# https://fedoraproject.org/wiki/Packaging:CryptoPolicies
|
|
|
4c9f518 |
sed -i "/ciphers/ s/'.*'/'PROFILE=SYSTEM'/" lib/excon/constants.rb
|
|
|
2608c45 |
|
|
Chris Lalancette |
8007560 |
%build
|
|
|
4c9f518 |
# Create the gem as gem install only works on a gem file
|
|
|
4c9f518 |
gem build ../%{gem_name}-%{version}.gemspec
|
|
|
4c9f518 |
|
|
|
4c9f518 |
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
|
|
|
4c9f518 |
# by default, so that we can move it into the buildroot in %%install
|
|
|
4c9f518 |
%gem_install
|
|
Chris Lalancette |
8007560 |
|
|
Chris Lalancette |
8007560 |
%install
|
|
|
04cc281 |
mkdir -p %{buildroot}%{gem_dir}
|
|
|
2608c45 |
cp -a .%{gem_dir}/* \
|
|
|
2608c45 |
%{buildroot}%{gem_dir}/
|
|
Chris Lalancette |
8007560 |
|
|
|
dcc14a5 |
# Kill bundled cacert.pem
|
|
|
dcc14a5 |
rm -rf %{buildroot}%{gem_instdir}/data
|
|
|
4da8040 |
|
|
bkabrda |
b31b247 |
%check
|
|
|
04cc281 |
pushd .%{gem_instdir}
|
|
|
4c811d1 |
|
|
|
4c811d1 |
# Move the tests into place
|
|
|
4c811d1 |
ln -s %{_builddir}/spec spec
|
|
|
4c811d1 |
ln -s %{_builddir}/tests tests
|
|
|
4c811d1 |
|
|
|
5287ae2 |
# Unicorn is not available in Fedora yet (rhbz#1065685).
|
|
|
2608c45 |
sed -i '/if plugin == :unicorn/ i\ before { skip("until #{plugin} is in Fedora") } if plugin == :unicorn' spec/support/shared_contexts/test_server_context.rb
|
|
|
5287ae2 |
sed -i '/with_unicorn/ s/^/ pending\n\n/' tests/{basic_tests.rb,proxy_tests.rb}
|
|
|
5287ae2 |
|
|
|
4c9f518 |
rspec spec
|
|
|
5287ae2 |
|
|
|
46cdec0 |
# Don't use Bundler.
|
|
|
46cdec0 |
sed -i "/'bundler\/setup'/ s/^/#/" tests/test_helper.rb
|
|
bkabrda |
b31b247 |
|
|
|
4c9f518 |
# This would require sinatra-contrib.
|
|
|
2608c45 |
sed -i '/redirecting_with_cookie.ru/,/^ end/ s/^/#/' tests/middlewares/capture_cookies_tests.rb
|
|
|
dcc14a5 |
|
|
|
66c1b4f |
%if %{with certificate_refresh}
|
|
|
6290813 |
# Keep the test certificates fresh.
|
|
|
a300c4d |
# https://github.com/excon/excon/blob/fe8ec7b53905c4eb1ffd88c1b507b9ecb5e21226/Rakefile#L53-L54
|
|
|
a300c4d |
openssl req -subj '/CN=excon/O=excon' -new -newkey rsa:2048 -sha256 -days 3650 -nodes -x509 -keyout tests/data/excon.cert.key -out tests/data/excon.cert.crt
|
|
|
a300c4d |
openssl req -subj '/CN=127.0.0.1/O=excon' -new -newkey rsa:2048 -sha256 -days 3650 -nodes -x509 -keyout tests/data/127.0.0.1.cert.key -out tests/data/127.0.0.1.cert.crt
|
|
|
66c1b4f |
%endif
|
|
|
6290813 |
|
|
|
469e395 |
shindont
|
|
bkabrda |
b31b247 |
popd
|
|
Chris Lalancette |
8007560 |
|
|
Chris Lalancette |
8007560 |
%files
|
|
|
04cc281 |
%dir %{gem_instdir}
|
|
|
5287ae2 |
%license %{gem_instdir}/LICENSE.md
|
|
|
04cc281 |
%{gem_libdir}
|
|
|
04cc281 |
%exclude %{gem_cache}
|
|
|
04cc281 |
%{gem_spec}
|
|
bkabrda |
b31b247 |
|
|
bkabrda |
b31b247 |
%files doc
|
|
|
5287ae2 |
%doc %{gem_docdir}
|
|
|
46cdec0 |
%doc %{gem_instdir}/CONTRIBUT*
|
|
|
46cdec0 |
%doc %{gem_instdir}/README.md
|
|
|
5287ae2 |
%{gem_instdir}/excon.gemspec
|
|
Chris Lalancette |
8007560 |
|
|
Chris Lalancette |
8007560 |
%changelog
|
|
|
dc03b15 |
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.100.0-3
|
|
|
dc03b15 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
dc03b15 |
|
|
|
7f5c120 |
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.100.0-2
|
|
|
7f5c120 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
7f5c120 |
|
|
|
66c1b4f |
* Fri Jul 28 2023 Vít Ondruch <vondruch@redhat.com> - 0.100.0-1
|
|
|
66c1b4f |
- Update to Excon 0.100.0.
|
|
|
66c1b4f |
Resolves: rhbz#2160171
|
|
|
66c1b4f |
|
|
|
7904ad2 |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.97.0-3
|
|
|
7904ad2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
7904ad2 |
|
|
|
0015364 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.97.0-2
|
|
|
0015364 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
0015364 |
|
|
|
a300c4d |
* Mon Jan 09 2023 Vít Ondruch <vondruch@redhat.com> - 0.97.0-1
|
|
|
a300c4d |
- Update to Excon 0.97.0.
|
|
|
a300c4d |
Resolves: rhbz#2063536
|
|
|
a300c4d |
|
|
|
40d88bc |
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.91.0-2
|
|
|
40d88bc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
40d88bc |
|
|
|
7ffc5e6 |
* Fri Mar 04 2022 Vít Ondruch <vondruch@redhat.com> - 0.91.0-1
|
|
|
7ffc5e6 |
- Update to Excon 0.91.0.
|
|
|
7ffc5e6 |
Resolves: rhbz#2009748
|
|
|
7ffc5e6 |
|
|
|
51f1ee6 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.85.0-2
|
|
|
51f1ee6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
51f1ee6 |
|
|
|
6665c17 |
* Thu Aug 26 2021 Vít Ondruch <vondruch@redhat.com> - 0.85.0-1
|
|
|
6665c17 |
- Update to Excon 0.85.0.
|
|
|
6665c17 |
Resolves: rhbz#1949983
|
|
|
cd50a14 |
- Workaround FTBFS on Fedora infrastructure
|
|
|
cd50a14 |
Resolves: rhbz#1987937
|
|
|
6665c17 |
|
|
|
842989f |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.79.0-2
|
|
|
842989f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
842989f |
|
|
|
469e395 |
* Wed Feb 24 2021 Vít Ondruch <vondruch@redhat.com> - 0.79.0-1
|
|
|
469e395 |
- Update to excon 0.79.0.
|
|
|
469e395 |
Resolves: rhbz#1846641
|
|
|
469e395 |
|
|
|
1c1b61f |
* Fri Feb 19 2021 Vít Ondruch <vondruch@redhat.com> - 0.73.0-3
|
|
|
1c1b61f |
- Fix FTBFS due to Ruby 3.0.0 incompatibilities.
|
|
|
1c1b61f |
Resolves: rhbz#1923694
|
|
|
1c1b61f |
|
|
|
fa6b929 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.73.0-3
|
|
|
fa6b929 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
fa6b929 |
|
|
|
2abf1e5 |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.73.0-2
|
|
|
2abf1e5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
2abf1e5 |
|
|
|
4c811d1 |
* Fri Apr 24 2020 Vít Ondruch <vondruch@redhat.com> - 0.73.0-1
|
|
|
4c811d1 |
- Update to excon 0.73.0.
|
|
|
4c811d1 |
|
|
|
476688c |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.62.0-4
|
|
|
476688c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
476688c |
|
|
|
326b120 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.62.0-3
|
|
|
326b120 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
326b120 |
|
|
|
bf31fe1 |
* Tue Feb 05 2019 Vít Ondruch <vondruch@redhat.com> - 0.62.0-2
|
|
|
bf31fe1 |
- Fix Ruby 2.6 test failure.
|
|
|
bf31fe1 |
|
|
|
14c8dcc |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.62.0-2
|
|
|
14c8dcc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
14c8dcc |
|
|
|
97f1f2c |
* Wed Oct 10 2018 Vít Ondruch <vondruch@redhat.com> - 0.62.0-1
|
|
|
97f1f2c |
- Update to excon 0.62.0.
|
|
|
97f1f2c |
|
|
|
24fa60e |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.60.0-3
|
|
|
24fa60e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
24fa60e |
|
|
|
601168c |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.60.0-2
|
|
|
601168c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
601168c |
|
|
|
4c9f518 |
* Tue Dec 19 2017 Vít Ondruch <vondruch@redhat.com> - 0.60.0-1
|
|
|
4c9f518 |
- Update to excon 0.60.0.
|
|
|
4c9f518 |
|
|
|
37dd733 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.54.0-3
|
|
|
37dd733 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
37dd733 |
|
|
|
2698572 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.54.0-2
|
|
|
2698572 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
2698572 |
|
|
|
2608c45 |
* Thu Jan 05 2017 Vít Ondruch <vondruch@redhat.com> - 0.54.0-1
|
|
|
2608c45 |
- Update to excon 0.54.0.
|
|
|
2608c45 |
|
|
|
5287ae2 |
* Thu Sep 08 2016 Vít Ondruch <vondruch@redhat.com> - 0.52.0-1
|
|
|
5287ae2 |
- Update to excon 0.52.0.
|
|
|
5287ae2 |
|
|
|
de25d78 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.45.4-2
|
|
|
de25d78 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
de25d78 |
|
|
|
36359be |
* Wed Oct 21 2015 Vít Ondruch <vondruch@redhat.com> - 0.45.4-1
|
|
|
36359be |
- Update to excon 0.45.4.
|
|
|
36359be |
|
|
|
1df0a8c |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.45.1-2
|
|
|
1df0a8c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
1df0a8c |
|
|
|
dcc14a5 |
* Fri Mar 27 2015 Vít Ondruch <vondruch@redhat.com> - 0.45.1-1
|
|
|
dcc14a5 |
- Update to excon 0.45.1.
|
|
|
dcc14a5 |
|
|
|
54170c9 |
* Mon Sep 29 2014 Brett Lentz <blentz@redhat.com> - 0.39.6-1
|
|
|
54170c9 |
- Update to excon 0.39.6.
|
|
|
54170c9 |
|
|
|
8332b44 |
* Wed Jul 30 2014 Brett Lentz <blentz@redhat.com> - 0.38.0-1
|
|
|
8332b44 |
- Update to excon 0.38.0.
|
|
|
8332b44 |
|
|
|
c2b1054 |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.33.0-2
|
|
|
c2b1054 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
c2b1054 |
|
|
|
46cdec0 |
* Thu May 22 2014 Vít Ondruch <vondruch@redhat.com> - 0.33.0-1
|
|
|
46cdec0 |
- Update to excon 0.33.0.
|
|
|
46cdec0 |
|
|
Josef Stribny |
946d0ee |
* Wed Oct 09 2013 Josef Stribny <jstribny@redhat.com> - 0.25.3-1
|
|
Josef Stribny |
946d0ee |
- Update to excon 0.25.3.
|
|
Josef Stribny |
946d0ee |
|
|
|
f32b920 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21.0-2
|
|
|
f32b920 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
f32b920 |
|
|
|
9115bac |
* Tue May 14 2013 Vít Ondruch <vondruch@redhat.com> - 0.21.0-1
|
|
|
9115bac |
- Update to excon 0.21.0.
|
|
|
9115bac |
|
|
|
876dd92 |
* Fri Mar 08 2013 Vít Ondruch <vondruch@redhat.com> - 0.16.7-3
|
|
|
876dd92 |
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
|
|
876dd92 |
|
|
|
b371d64 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16.7-2
|
|
|
b371d64 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
b371d64 |
|
|
|
6232a11 |
* Fri Nov 09 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.16.7-1
|
|
|
6232a11 |
- Update to Excon 0.16.7.
|
|
|
6232a11 |
|
|
|
34408ff |
* Mon Jul 23 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.14.3-1
|
|
|
34408ff |
- Update to Excon 0.14.3.
|
|
|
34408ff |
|
|
|
9948b1f |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.1-2
|
|
|
9948b1f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
9948b1f |
|
|
|
4da8040 |
* Mon Jun 25 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.14.1-1
|
|
|
4da8040 |
- Update to Excon 0.14.1
|
|
|
4da8040 |
- Removed no longer needed patch for downgrading dependencies.
|
|
|
4da8040 |
- Remove newly bundled certificates and link to system ones.
|
|
|
4da8040 |
|
|
|
ad43be3 |
* Wed Feb 01 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.9.5-2
|
|
|
ad43be3 |
- Fixed the changelog.
|
|
|
ad43be3 |
|
|
|
ad43be3 |
* Wed Feb 01 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.9.5-1
|
|
|
04cc281 |
- Update to version 0.9.5
|
|
|
04cc281 |
- Fixed the dependencies for the new version.
|
|
|
f7a13cc |
|
|
|
5dd597c |
* Mon Dec 05 2011 Bohuslav Kabrda <bkabrda@redhat.com> - 0.7.12-1
|
|
|
5dd597c |
- Update to version 0.7.12.
|
|
|
5dd597c |
|
|
|
db7f3e3 |
* Mon Nov 28 2011 Bohuslav Kabrda <bkabrda@redhat.com> - 0.7.8-1
|
|
|
db7f3e3 |
- Update to version 0.7.8.
|
|
|
db7f3e3 |
- Replaced defines with more appropriate globals.
|
|
|
db7f3e3 |
- Added Build dependency on rubygem-eventmachine.
|
|
|
db7f3e3 |
- Fixed running tests for the new version.
|
|
|
db7f3e3 |
|
|
bkabrda |
b31b247 |
* Wed Oct 12 2011 bkabrda <bkabrda@redhat.com> - 0.7.6-1
|
|
bkabrda |
b31b247 |
- Update to version 0.7.6
|
|
bkabrda |
b31b247 |
- Introduced doc subpackage
|
|
bkabrda |
b31b247 |
- Introduced check section
|
|
bkabrda |
b31b247 |
|
|
Chris Lalancette |
8007560 |
* Tue Jul 05 2011 Chris Lalancette <clalance@redhat.com> - 0.6.3-1
|
|
Chris Lalancette |
8007560 |
- Initial package
|