代码拉取完成,页面将自动刷新
%global pkg_name %{name}
%global gem_name graphql-batch
Name: rubygem-%{gem_name}
Version: 0.3.10
Release: 1
Summary: A query batching executor for the graphql gem
Group: Development/Languages
License: MIT
URL: https://github.com/Shopify/graphql-batch
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1: https://github.com/Shopify/%{gem_name}/archive/refs/tags/%{gem_name}-%{version}.tar.gz
# start specfile generated dependencies
Requires:ruby(release)
Requires:ruby
Requires:ruby(rubygems)
Requires: rubygem(graphql) >= 0.8
Requires: rubygem(graphql) < 2
Requires: rubygem(promise.rb) >= 0.7.2
Requires: rubygem(promise.rb) < 0.8
BuildRequires:ruby(release)
BuildRequires:ruby
BuildRequires:rubygems-devel
BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version}
# end specfile generated dependencies
%description
A query batching executor for the graphql gem.
%package doc
Summary: Documentation for %{pkg_name}
Group: Documentation
Requires: %{pkg_name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{pkg_name}.
%prep
gem unpack %{SOURCE0}
%setup -q -D -T -n %{gem_name}-%{version}
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
%build
# Create the gem as gem install only works on a gem file
gem build %{gem_name}.gemspec
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
# by default, so that we can move it into the buildroot in %%install
%gem_install
%install
mkdir -p %{buildroot}%{gem_dir}
cp -pa .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
%files
%dir %{gem_instdir}
%exclude %{gem_instdir}/.gitignore
%exclude %{gem_instdir}/.travis.yml
%license %{gem_instdir}/LICENSE.txt
%{gem_instdir}/bin
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/CONTRIBUTING.md
%{gem_instdir}/Gemfile
%doc %{gem_instdir}/README.md
%{gem_instdir}/Rakefile
%{gem_instdir}/examples
%{gem_instdir}/graphql-batch.gemspec
%changelog
* Mon Jun 7 2021 liqiuyu <liqiuyu@kylinos.cn> - 0.3.10-1
- Init project
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。