package init

This commit is contained in:
wangchong1995924 2020-08-28 15:48:19 +08:00
parent 757868586c
commit d93a32baf3
4 changed files with 67 additions and 0 deletions

Binary file not shown.

BIN
pdf-inspector-1.3.0.gem Normal file

Binary file not shown.

View File

@ -0,0 +1,63 @@
%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

View File

@ -0,0 +1,4 @@
version-control: github
src_repo: prawnpdf/pdf-inspector
tag_prefix: "^"
seperator: "."