package init

This commit is contained in:
lyn1001 2020-08-20 15:22:56 +08:00
parent dbedb30ca8
commit e08e62987d
4 changed files with 62 additions and 0 deletions

BIN
0.1.2.tar.gz Normal file

Binary file not shown.

View File

@ -0,0 +1,57 @@
%global gem_name websocket-extensions
Name: rubygem-%{gem_name}
Version: 0.1.2
Release: 1
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
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
%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}
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
* Sat Aug 8 2020 yanan li <liyanan032@huawei.com> - 0.1.2-1
- Package init

View File

@ -0,0 +1,5 @@
git_url: https://github.com/faye/websocket-extensions-ruby.git
version_control: github
src_repo: faye/websocket-extensions-ruby
tag_prefix: ""
seperator: "."

Binary file not shown.