Ai
5 Star 0 Fork 1

src-openEuler/rubygem-pdf-inspector
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
rubygem-pdf-inspector.spec 1.74 KB
一键复制 编辑 原始数据 按行查看 历史
chong_W 提交于 2020-08-28 15:48 +08:00 . package init
%global gem_name pdf-inspector
Name: rubygem-%{gem_name}
Version: 1.3.0
Release: 1
Summary: A tool for analyzing PDF output
License: Ruby
URL: https://github.com/prawnpdf/pdf-inspector
Source0: https://rubygems.org/gems/pdf-inspector-%{version}.gem
Source1: pdf-inspector-%{version}-spec.tgz
BuildRequires: ruby(release) rubygems-devel ruby rubygem(pdf-reader) rubygem(rspec)
BuildArch: noarch
%description
This library provides a number of PDF::Reader[0] based tools for use in
testing PDF output. Presently, the primary purpose of this tool is to
support the tests found in Prawn[1], a pure Ruby PDF generation library.
However, it may be useful to others, so we have made it available as
a gem in its own right.
[0] https://github.com/yob/pdf-reader
[1] https://github.com/sandal/prawn
%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch
%description doc
Documentation for %{name}.
%prep
%setup -q -c -T -b 1
%gem_install -n %{SOURCE0}
%build
%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
%{buildroot}%{gem_dir}/
%check
pushd .%{gem_instdir}
ln -s %{_builddir}/spec spec
sed -i "/require_relative/ s|_relative '../lib/| '|" spec/spec_helper.rb
rspec spec
popd
%files
%dir %{gem_instdir}
%license %{gem_instdir}/COPYING
%license %{gem_instdir}/GPLv2
%license %{gem_instdir}/GPLv3
%license %{gem_instdir}/LICENSE
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/CHANGELOG.md
%doc %{gem_instdir}/README.md
%changelog
* Wed Aug 5 2020 wangchong <wangchong56@huawei.com> - 1.3.0-1
- package init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/rubygem-pdf-inspector.git
git@gitee.com:src-openeuler/rubygem-pdf-inspector.git
src-openeuler
rubygem-pdf-inspector
rubygem-pdf-inspector
master

搜索帮助