!3 [sync] PR-2: update to 1.2.9

From: @openeuler-sync-bot 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2022-03-30 08:29:41 +00:00 committed by Gitee
commit 96f38b0c7e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 29 additions and 25 deletions

View File

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

Binary file not shown.

BIN
websocket-1.2.9.gem Normal file

Binary file not shown.