package init
This commit is contained in:
parent
be928d566c
commit
6e468e99f8
BIN
msgpack-1.1.0.gem
Normal file
BIN
msgpack-1.1.0.gem
Normal file
Binary file not shown.
73
rubygem-msgpack.spec
Normal file
73
rubygem-msgpack.spec
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
%global gem_name msgpack
|
||||||
|
Name: rubygem-%{gem_name}
|
||||||
|
Version: 1.1.0
|
||||||
|
Release: 1
|
||||||
|
Summary: MessagePack, a binary-based efficient data interchange format
|
||||||
|
License: ASL 2.0
|
||||||
|
URL: http://msgpack.org/
|
||||||
|
Source0: https://rubygems.org/gems/msgpack-%{version}.gem
|
||||||
|
BuildRequires: gcc ruby(release) rubygems-devel ruby-devel rubygem(rspec)
|
||||||
|
Provides: rubygem(%{gem_name}) = %{version}
|
||||||
|
%description
|
||||||
|
MessagePack is a binary-based efficient object serialization library. It
|
||||||
|
enables to exchange structured objects between many languages like JSON. But
|
||||||
|
unlike JSON, it is very fast and small.
|
||||||
|
|
||||||
|
%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}/
|
||||||
|
mkdir -p %{buildroot}%{gem_extdir_mri}
|
||||||
|
cp -ar .%{gem_extdir_mri}/{gem.build_complete,%{gem_name}} %{buildroot}%{gem_extdir_mri}/
|
||||||
|
mkdir -p %{buildroot}%{gem_extdir_mri}/lib/%{gem_name}
|
||||||
|
cp -ar .%{gem_instdir}/ext/%{gem_name}/%{gem_name}.so %{buildroot}%{gem_extdir_mri}/lib/%{gem_name}
|
||||||
|
rm -rf %{buildroot}%{gem_instdir}/ext/
|
||||||
|
rm -f %{buildroot}%{gem_instdir}/{.gitignore,.travis.yml}
|
||||||
|
|
||||||
|
%check
|
||||||
|
pushd .%{gem_instdir}
|
||||||
|
rm -rf spec/jruby
|
||||||
|
rspec -Ilib -I%{buildroot}%{gem_extdir_mri} spec
|
||||||
|
popd
|
||||||
|
|
||||||
|
%files
|
||||||
|
%dir %{gem_instdir}
|
||||||
|
%{gem_extdir_mri}
|
||||||
|
%exclude %{gem_instdir}/.rubocop.yml
|
||||||
|
%license %{gem_instdir}/LICENSE
|
||||||
|
%{gem_instdir}/appveyor.yml
|
||||||
|
%{gem_instdir}/bench
|
||||||
|
%{gem_libdir}
|
||||||
|
%{gem_instdir}/msgpack.org.md
|
||||||
|
%exclude %{gem_cache}
|
||||||
|
%{gem_spec}
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%doc %{gem_docdir}
|
||||||
|
%doc %{gem_instdir}/ChangeLog
|
||||||
|
%{gem_instdir}/Gemfile
|
||||||
|
%doc %{gem_instdir}/README.rdoc
|
||||||
|
%{gem_instdir}/Rakefile
|
||||||
|
%doc %{gem_instdir}/doclib
|
||||||
|
%{gem_instdir}/msgpack.gemspec
|
||||||
|
%{gem_instdir}/spec
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Aug 12 2020 yanan li <liyanan032@huawei.com> - 1.1.0-1
|
||||||
|
- Package init
|
||||||
5
rubygem-msgpack.yaml
Normal file
5
rubygem-msgpack.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
git_url: https://github.com/msgpack/msgpack-ruby.git
|
||||||
|
version_control: github
|
||||||
|
src_repo: msgpack/msgpack-ruby
|
||||||
|
tag_prefix: "^v"
|
||||||
|
seperator: "."
|
||||||
Loading…
x
Reference in New Issue
Block a user