rubygem-websocket/rubygem-websocket.spec

74 lines
1.5 KiB
RPMSpec
Raw Normal View History

2020-08-25 14:57:16 +08:00
%global gem_name websocket
Name: rubygem-%{gem_name}
2023-11-10 10:16:30 +08:00
Version: 1.2.10
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
2020-08-25 14:57:16 +08:00
%description
Universal Ruby library to handle WebSocket protocol.
%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
2020-08-25 14:57:16 +08:00
%description doc
Documentation for %{name}.
%prep
%autosetup -n %{gem_name}-%{version} -p1
2020-08-25 14:57:16 +08:00
%build
gem build ../%{gem_name}-%{version}.gemspec
2020-08-25 14:57:16 +08:00
%gem_install
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
2020-08-25 14:57:16 +08:00
%{buildroot}%{gem_dir}/
%check
pushd .%{gem_instdir}
rspec spec
2020-08-25 14:57:16 +08:00
popd
%files
%dir %{gem_instdir}
%exclude %{gem_instdir}/.*
2020-08-25 14:57:16 +08:00
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
%doc %{gem_instdir}/README.md
%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/CHANGELOG.md
%{gem_instdir}/Gemfile
%{gem_instdir}/Rakefile
%{gem_instdir}/spec
%{gem_instdir}/websocket.gemspec
%changelog
2023-11-10 10:16:30 +08:00
* Fri Nov 10 2023 Ge Wang <wang__ge@126.com> - 1.2.10-1
- Update to version 1.2.10
* Tue Jan 17 2023 yaoxin <yaoxin30@h-partners.com> - 1.2.9-2
- Fix build failed due to ruby update to 3.1.3
* Thu Feb 24 2022 chenchen <chen_aka_jan@163.com> - 1.2.9-1
- update to 1.2.9
2020-08-25 14:57:16 +08:00
* Thu Aug 20 2020 huangyangke <huangyangke@huawei.com> - 1.2.2-1
- package init