74 lines
1.5 KiB
RPMSpec
74 lines
1.5 KiB
RPMSpec
%global gem_name websocket
|
|
|
|
Name: rubygem-%{gem_name}
|
|
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
|
|
|
|
%description
|
|
Universal Ruby library to handle WebSocket protocol.
|
|
|
|
%package doc
|
|
Summary: Documentation for %{name}
|
|
Requires: %{name} = %{version}-%{release}
|
|
BuildArch: noarch
|
|
|
|
%description doc
|
|
Documentation for %{name}.
|
|
|
|
%prep
|
|
%autosetup -n %{gem_name}-%{version} -p1
|
|
|
|
%build
|
|
gem build ../%{gem_name}-%{version}.gemspec
|
|
|
|
%gem_install
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{gem_dir}
|
|
cp -a .%{gem_dir}/* \
|
|
%{buildroot}%{gem_dir}/
|
|
|
|
%check
|
|
pushd .%{gem_instdir}
|
|
rspec spec
|
|
popd
|
|
|
|
%files
|
|
%dir %{gem_instdir}
|
|
%exclude %{gem_instdir}/.*
|
|
%{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
|
|
* 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
|
|
|
|
* Thu Aug 20 2020 huangyangke <huangyangke@huawei.com> - 1.2.2-1
|
|
- package init
|