64 lines
1.7 KiB
RPMSpec
64 lines
1.7 KiB
RPMSpec
%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
|