Ai
5 Star 0 Fork 2

src-openEuler/rubygem-graphql-batch
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
rubygem-graphql-batch.spec 2.00 KB
一键复制 编辑 原始数据 按行查看 历史
liqiuyu 提交于 2021-06-07 14:58 +08:00 . init project
%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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/rubygem-graphql-batch.git
git@gitee.com:src-openeuler/rubygem-graphql-batch.git
src-openeuler
rubygem-graphql-batch
rubygem-graphql-batch
master

搜索帮助