# Generated from pdf-inspector-1.3.0.gem by gem2rpm -*- rpm-spec -*-
%global gem_name pdf-inspector

Name: rubygem-%{gem_name}
Version: 1.3.0
Release: 1%{?dist}
Summary: A tool for analyzing PDF output
License: PRAWN and GPL-2.0 and GPL-3.0
URL: https://github.com/prawnpdf/pdf-inspector
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby
# BuildRequires: rubygem(rspec)
# BuildRequires: rubygem(rubocop) >= 0.46
# BuildRequires: rubygem(rubocop) < 1
# BuildRequires: rubygem(yard)
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/prawnpdf/prawn.


%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch

%description doc
Documentation for %{name}.

%prep
%setup -q -n %{gem_name}-%{version}

%build
# Create the gem as gem install only works on a gem file
gem build ../%{gem_name}-%{version}.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 -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/



%check
pushd .%{gem_instdir}
# 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
* Tue Sep 14 2021 mockbuilder - 1.3.0-1
- Initial package