Compare commits
No commits in common. "567f4818fd9ca28dce91781c5794aebbc2742638" and "41e1f1cb9f81e13b6916c5885ca032cb072de12b" have entirely different histories.
567f4818fd
...
41e1f1cb9f
Binary file not shown.
@ -1,78 +0,0 @@
|
|||||||
%bcond_with bootstrap
|
|
||||||
%global gem_name excon
|
|
||||||
Name: rubygem-%{gem_name}
|
|
||||||
Version: 0.104.0
|
|
||||||
Release: 1
|
|
||||||
Summary: Speed, persistence, http(s)
|
|
||||||
License: MIT
|
|
||||||
URL: https://github.com/excon/excon
|
|
||||||
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
||||||
BuildRequires: ruby(release) rubygems-devel ruby %{_bindir}/openssl rubygem-rack
|
|
||||||
BuildRequires: rubygem-shindo rubygem(activesupport) rubygem(delorean) rubygem(eventmachine)
|
|
||||||
BuildRequires: rubygem(open4) rubygem(puma) rubygem(sinatra) rubygem(rspec)
|
|
||||||
BuildArch: noarch
|
|
||||||
%description
|
|
||||||
EXtended http(s) CONnections.
|
|
||||||
|
|
||||||
%package help
|
|
||||||
Summary: Documentation for %{name}
|
|
||||||
Requires: %{name} = %{version}-%{release}
|
|
||||||
BuildArch: noarch
|
|
||||||
Provides: %{name}-doc = %{version}-%{release}
|
|
||||||
Obsoletes: %{name}-doc < %{version}-%{release}
|
|
||||||
%description help
|
|
||||||
Documentation for %{name}.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -q -n %{gem_name}-%{version}
|
|
||||||
sed -i "/ciphers/ s/'.*'/'PROFILE=SYSTEM'/" lib/excon/constants.rb
|
|
||||||
|
|
||||||
%build
|
|
||||||
gem build ../%{gem_name}-%{version}.gemspec
|
|
||||||
%gem_install
|
|
||||||
|
|
||||||
%install
|
|
||||||
mkdir -p %{buildroot}%{gem_dir}
|
|
||||||
cp -a .%{gem_dir}/* \
|
|
||||||
%{buildroot}%{gem_dir}/
|
|
||||||
rm -rf %{buildroot}%{gem_instdir}/data
|
|
||||||
|
|
||||||
%if %{with bootstrap}
|
|
||||||
%check
|
|
||||||
pushd .%{gem_instdir}
|
|
||||||
sed -i '/if plugin == :unicorn/ i\ before { skip("until #{plugin} is in Fedora") } if plugin == :unicorn' spec/support/shared_contexts/test_server_context.rb
|
|
||||||
sed -i '/with_unicorn/ s/^/ pending\n\n/' tests/{basic_tests.rb,proxy_tests.rb}
|
|
||||||
rspec spec
|
|
||||||
sed -i "/'bundler\/setup'/ s/^/#/" tests/test_helper.rb
|
|
||||||
sed -i '/redirecting_with_cookie.ru/,/^ end/ s/^/#/' tests/middlewares/capture_cookies_tests.rb
|
|
||||||
openssl req -subj '/CN=excon/O=excon' -new -newkey rsa:2048 -sha256 -days 365 -nodes -x509 -keyout tests/data/excon.cert.key -out tests/data/excon.cert.crt
|
|
||||||
openssl req -subj '/CN=127.0.0.1/O=excon' -new -newkey rsa:2048 -sha256 -days 365 -nodes -x509 -keyout tests/data/127.0.0.1.cert.key -out tests/data/127.0.0.1.cert.crt
|
|
||||||
shindo
|
|
||||||
popd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files
|
|
||||||
%dir %{gem_instdir}
|
|
||||||
%license %{gem_instdir}/LICENSE.md
|
|
||||||
%{gem_libdir}
|
|
||||||
%exclude %{gem_cache}
|
|
||||||
%{gem_spec}
|
|
||||||
|
|
||||||
%files help
|
|
||||||
%doc %{gem_docdir}
|
|
||||||
%doc %{gem_instdir}/CONTRIBUT*
|
|
||||||
%doc %{gem_instdir}/README.md
|
|
||||||
%{gem_instdir}/excon.gemspec
|
|
||||||
|
|
||||||
%changelog
|
|
||||||
* Tue Nov 14 2023 xu_ping <707078654@qq.com> - 0.104.0-1
|
|
||||||
- Upgrade version to 0.104.0
|
|
||||||
|
|
||||||
* Mon Nov 1 2021 liwu <liwu13@huawei.com> - 0.62.0-3
|
|
||||||
- Fix CVE-2019-16779
|
|
||||||
|
|
||||||
* Sat Sep 5 2020 liyanan <liyanan32@huawei.com> - 0.62.0-2
|
|
||||||
- fix build fail
|
|
||||||
|
|
||||||
* Sat Aug 22 2020 liyanan <liyanan32@huawei.com> - 0.62.0-1
|
|
||||||
- package init
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
git_url: https://github.com/excon/excon.git
|
|
||||||
version_control: github
|
|
||||||
src_repo: excon/excon
|
|
||||||
tag_prefix: "^v"
|
|
||||||
seperator: "."
|
|
||||||
Loading…
x
Reference in New Issue
Block a user