update to 1.2.9

(cherry picked from commit 675cbd7d7516a234d3e2b280b4c09f8989b300ea)
This commit is contained in:
chen-jan 2022-02-24 14:24:06 +08:00 committed by openeuler-sync-bot
parent 6fd4218a1b
commit a0cc136c5c
3 changed files with 29 additions and 25 deletions

View File

@ -1,52 +1,53 @@
%global gem_name websocket %global gem_name websocket
Name: rubygem-%{gem_name}
Version: 1.2.2 Name: rubygem-%{gem_name}
Release: 1 Version: 1.2.9
Summary: Universal Ruby library to handle WebSocket protocol Release: 1
License: MIT Summary: Universal Ruby library to handle WebSocket protocol
URL: http://github.com/imanel/websocket-ruby License: MIT
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem URL: http://github.com/imanel/websocket-ruby
Patch0: comment-broken-tests.patch Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires: ruby(release) rubygems-devel rubygem(rspec) ruby BuildRequires: ruby(release)
BuildArch: noarch BuildRequires: rubygems-devel
Provides: rubygem(%{gem_name}) = %{version} BuildRequires: ruby
BuildRequires: rubygem(rspec)
BuildRequires: rubygem(webrick)
BuildArch: noarch
%description %description
Universal Ruby library to handle WebSocket protocol. Universal Ruby library to handle WebSocket protocol.
%package doc %package doc
Summary: Documentation for %{name} Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
BuildArch: noarch BuildArch: noarch
%description doc %description doc
Documentation for %{name}. Documentation for %{name}.
%prep %prep
gem unpack %{SOURCE0} %setup -q -n %{gem_name}-%{version}
%setup -q -D -T -n %{gem_name}-%{version}
%patch0 -p0
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
%build %build
gem build %{gem_name}.gemspec gem build ../%{gem_name}-%{version}.gemspec
%gem_install %gem_install
%install %install
mkdir -p %{buildroot}%{gem_dir} mkdir -p %{buildroot}%{gem_dir}
cp -pa .%{gem_dir}/* \ cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/ %{buildroot}%{gem_dir}/
%check %check
pushd ./%{gem_instdir} pushd .%{gem_instdir}
find spec -name *.rb | xargs sed -i '/its/ s/^/#/' rspec spec
rspec -Ilib spec
popd popd
%files %files
%dir %{gem_instdir} %dir %{gem_instdir}
%exclude %{gem_instdir}/.*
%{gem_libdir} %{gem_libdir}
%exclude %{gem_cache} %exclude %{gem_cache}
%exclude %{gem_instdir}/.gitignore
%exclude %{gem_instdir}/.travis.yml
%{gem_spec} %{gem_spec}
%doc %{gem_instdir}/README.md %doc %{gem_instdir}/README.md
@ -59,5 +60,8 @@ popd
%{gem_instdir}/websocket.gemspec %{gem_instdir}/websocket.gemspec
%changelog %changelog
* Thu Feb 24 2022 chenchen <chen_aka_jan@163.com> - 1.2.9-1
- update to 1.2.9
* Thu Aug 20 2020 huangyangke <huangyangke@huawei.com> - 1.2.2-1 * Thu Aug 20 2020 huangyangke <huangyangke@huawei.com> - 1.2.2-1
- package init - package init

Binary file not shown.

BIN
websocket-1.2.9.gem Normal file

Binary file not shown.