2020-08-20 15:22:56 +08:00
|
|
|
%global gem_name websocket-extensions
|
|
|
|
|
Name: rubygem-%{gem_name}
|
|
|
|
|
Version: 0.1.2
|
2023-08-01 14:17:24 +08:00
|
|
|
Release: 4
|
2020-08-20 15:22:56 +08:00
|
|
|
Summary: Generic extension manager for WebSocket connections
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://github.com/faye/websocket-extensions-ruby
|
|
|
|
|
Source0: https://rubygems.org/gems/websocket-extensions-%{version}.gem
|
|
|
|
|
Source1: https://github.com/faye/websocket-extensions-ruby/archive/%{version}.tar.gz
|
2022-02-24 10:52:39 +08:00
|
|
|
Patch0: CVE-2020-7663.patch
|
2023-01-17 11:39:10 +08:00
|
|
|
Patch1: As-of-rspec-mocks-v3.10.3-mock-expectations-need-to-use.patch
|
2023-08-01 14:17:24 +08:00
|
|
|
patch2: Fix-deprecation-warning-about-being-called-on-TrueClass.patch
|
2020-08-20 15:22:56 +08:00
|
|
|
BuildRequires: ruby(release) rubygems-devel ruby rubygem(rspec)
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%description
|
|
|
|
|
Generic extension manager for WebSocket connections.
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%description doc
|
|
|
|
|
Documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
gem unpack %{SOURCE0}
|
|
|
|
|
%setup -q -D -T -n %{gem_name}-%{version}
|
|
|
|
|
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
2022-02-24 10:52:39 +08:00
|
|
|
%patch0 -p1
|
2023-08-01 14:17:24 +08:00
|
|
|
%patch2 -p1
|
2020-08-20 15:22:56 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
gem build %{gem_name}.gemspec
|
|
|
|
|
%gem_install
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
|
|
|
cp -a .%{gem_dir}/* \
|
|
|
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
pushd .%{gem_instdir}
|
|
|
|
|
tar -xzf %{SOURCE1}
|
|
|
|
|
cd %{gem_name}-ruby-%{version}
|
2023-01-17 11:39:10 +08:00
|
|
|
cat %{PATCH1} | patch -p1
|
2023-08-01 14:17:24 +08:00
|
|
|
cat %{PATCH2} | patch -p1
|
2020-08-20 15:22:56 +08:00
|
|
|
rspec spec
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%dir %{gem_instdir}
|
|
|
|
|
%exclude %{gem_instdir}/.*
|
|
|
|
|
%{gem_libdir}
|
|
|
|
|
%exclude %{gem_cache}
|
|
|
|
|
%{gem_spec}
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%doc %{gem_docdir}
|
|
|
|
|
%doc %{gem_instdir}/CHANGELOG.md
|
|
|
|
|
%doc %{gem_instdir}/README.md
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-08-01 14:17:24 +08:00
|
|
|
* Tue Aug 1 2023 liyanan <thistleslyn@163.com> - 0.1.2-4
|
|
|
|
|
- Fix build error for Ruby 3.2
|
|
|
|
|
|
2023-01-17 11:39:10 +08:00
|
|
|
* Tue Jan 17 2023 yaoxin <yaoxin30@h-partners.com> - 0.1.2-3
|
|
|
|
|
- Fix build failed due to ruby update to 3.1.3
|
|
|
|
|
|
2022-02-24 10:52:39 +08:00
|
|
|
* Thu Feb 24 2022 wangkai <wangkai385@huawei.com> - 0.1.2-2
|
|
|
|
|
- Fix CVE-2020-7663
|
|
|
|
|
|
2020-08-20 15:22:56 +08:00
|
|
|
* Sat Aug 8 2020 yanan li <liyanan032@huawei.com> - 0.1.2-1
|
|
|
|
|
- Package init
|