Josef Stribny 4a3a987
%global gem_name prawn
Josef Stribny 4a3a987
Josef Stribny 4a3a987
Summary: A fast and nimble PDF generator for Ruby
Josef Stribny 4a3a987
Name: rubygem-%{gem_name}
Christopher Brown b32161b
Version: 2.4.0
35bbf7d
Release: 10%{?dist}
Josef Stribny 4a3a987
# afm files are licensed by APAFML, the rest of package is GPLv2 or GPLv3 or Ruby
Josef Stribny 4a3a987
License: (GPLv2 or GPLv3 or Ruby) and APAFML
c18c7ad
URL: http://prawnpdf.org
06154b8
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
06154b8
# Not all of data is shipped, but it's needed for the test suite.
Christopher Brown b32161b
# You may check out it like so:
06154b8
# git clone --no-checkout https://github.com/prawnpdf/prawn.git
df3d7bd
# cd prawn && git archive -v -o prawn-2.4.0-data.txz 2.4.0 data
df3d7bd
Source1: %{gem_name}-%{version}-data.txz
06154b8
BuildRequires: ruby
Josef Stribny 4a3a987
BuildRequires: ruby(release)
Josef Stribny 4a3a987
BuildRequires: rubygems-devel >= 1.3.6
6fefb58
BuildRequires: rubygem(matrix)
c18c7ad
BuildRequires: rubygem(rspec) >= 3.0
Christopher Brown b32161b
BuildRequires: rubygem(ttfunk) >= 1.7
c18c7ad
BuildRequires: rubygem(pdf-reader) >= 1.4.0
c18c7ad
BuildRequires: rubygem(pdf-inspector) >= 1.2.1
Christopher Brown b32161b
BuildRequires: rubygem(pdf-core) >= 0.9.0
Josef Stribny 4a3a987
BuildArch: noarch
Josef Stribny 4a3a987
Josef Stribny 4a3a987
%description
Josef Stribny 4a3a987
Prawn is a pure Ruby PDF generation library that provides a lot of great
Josef Stribny 4a3a987
functionality while trying to remain simple and reasonably performant.
Josef Stribny 4a3a987
Here are some of the important features we provide:
Josef Stribny 4a3a987
Josef Stribny 4a3a987
- Vector drawing support, including lines, polygons, curves, ellipses, etc.
Josef Stribny 4a3a987
- Extensive text rendering support, including flowing text and limited inline
Josef Stribny 4a3a987
  formatting options.
Josef Stribny 4a3a987
- Support for both PDF builtin fonts as well as embedded TrueType fonts
Josef Stribny 4a3a987
- A variety of low level tools for basic layout needs, including a simple
Josef Stribny 4a3a987
  grid system
Josef Stribny 4a3a987
- PNG and JPG image embedding, with flexible scaling options
Josef Stribny 4a3a987
- Reporting tools for rendering complex data tables, with pagination support
Josef Stribny 4a3a987
- Security features including encryption and password protection
Josef Stribny 4a3a987
- Tools for rendering repeatable content (i.e headers, footers, and page
Josef Stribny 4a3a987
  numbers)
Josef Stribny 4a3a987
- Comprehensive internationalization features, including full support for UTF-8
Josef Stribny 4a3a987
  based fonts, right-to-left text rendering, fallback font support,
Josef Stribny 4a3a987
  and extension points for customizable text wrapping.
Josef Stribny 4a3a987
- Support for PDF outlines for document navigation
Josef Stribny 4a3a987
- Low level PDF features, allowing users to create custom extensions
Josef Stribny 4a3a987
  by dropping down all the way to the PDF object tree layer.
Josef Stribny 4a3a987
  (Mostly useful to those with knowledge of the PDF specification)
Josef Stribny 4a3a987
- Lots of other stuff!
Josef Stribny 4a3a987
Josef Stribny 4a3a987
%package doc
Josef Stribny 4a3a987
Summary: Documentation for %{name}
Josef Stribny 4a3a987
Requires: %{name} = %{version}-%{release}
Josef Stribny 4a3a987
BuildArch: noarch
Josef Stribny 4a3a987
Josef Stribny 4a3a987
%description doc
Josef Stribny 4a3a987
Documentation for %{name}
Josef Stribny 4a3a987
Josef Stribny 4a3a987
%prep
06154b8
%setup -q -n %{gem_name}-%{version} -b1
Josef Stribny bd9c2d2
6fefb58
# matrix is bundled gem since Ruby 3.1.
6fefb58
# https://github.com/prawnpdf/prawn/commit/3658d5125c3b20eb11484c3b039ca6b89dc7d1b7
6fefb58
%gemspec_add_dep -g matrix '~> 0.4'
6fefb58
Josef Stribny 4a3a987
%build
c18c7ad
gem build ../%{gem_name}-%{version}.gemspec
Josef Stribny bd9c2d2
06154b8
%gem_install
Josef Stribny 4a3a987
Josef Stribny 4a3a987
%install
Josef Stribny 4a3a987
mkdir -p %{buildroot}%{gem_dir}
Josef Stribny 4a3a987
cp -a .%{gem_dir}/* \
Josef Stribny 4a3a987
        %{buildroot}%{gem_dir}/
Josef Stribny 4a3a987
Josef Stribny 4a3a987
%check
Josef Stribny 4a3a987
pushd .%{gem_instdir}
06154b8
rm -rf data
06154b8
ln -s %{_builddir}/data .
06154b8
c18c7ad
sed -i "/^require 'bundler'/d" ./spec/spec_helper.rb
c18c7ad
sed -i "/^Bundler.setup/d" ./spec/spec_helper.rb
Josef Stribny e500a86
06154b8
# manual_builder dependency is not in Fedora yet
06154b8
mv spec/prawn_manual_spec.rb{,.disable}
06154b8
c18c7ad
# There are missing font and image files required by test suite.
c18c7ad
# These are not bundled in the gem therefore some failures occur.
06154b8
rspec spec
Josef Stribny 4a3a987
popd
Josef Stribny 4a3a987
Josef Stribny 4a3a987
%files
Josef Stribny 4a3a987
%dir %{gem_instdir}
Josef Stribny 4a3a987
%{gem_libdir}
Josef Stribny 4a3a987
%exclude %{gem_cache}
Josef Stribny 4a3a987
%{gem_spec}
06154b8
%license %{gem_instdir}/{LICENSE,COPYING,GPLv2,GPLv3}
Josef Stribny 4a3a987
%exclude %{gem_instdir}/%{gem_name}.gemspec
Josef Stribny 4a3a987
%{gem_instdir}/data/fonts/*.afm
Josef Stribny e500a86
%exclude %{gem_instdir}/.yardopts
Josef Stribny 4a3a987
Josef Stribny 4a3a987
%files doc
Josef Stribny 4a3a987
%doc %{gem_docdir}
Josef Stribny 4a3a987
%{gem_instdir}/Gemfile
Josef Stribny 4a3a987
%{gem_instdir}/Rakefile
Josef Stribny 4a3a987
%{gem_instdir}/spec
Josef Stribny 4a3a987
%doc %{gem_instdir}/manual
06154b8
%doc %{gem_instdir}/data/fonts/MustRead.html
Josef Stribny 4a3a987
Josef Stribny 4a3a987
%changelog
35bbf7d
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-10
35bbf7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
35bbf7d
0edd90c
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-9
0edd90c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
0edd90c
d7f0b26
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-8
d7f0b26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
d7f0b26
889845f
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-7
889845f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
889845f
6fefb58
* Fri Mar 11 2022 Vít Ondruch <vondruch@redhat.com> - 2.4.0-6
6fefb58
- Add matrix dependency for Ruby 3.1 compatibility.
6fefb58
693110f
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-5
693110f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
693110f
0140af4
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-4
0140af4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
0140af4
2da8d85
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-3
2da8d85
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2da8d85
95dc81f
* Tue Jan 12 2021 Vít Ondruch <vondruch@redhat.com> - 2.4.0-2
95dc81f
- Drop buildtime dependency on rubygem(bigdecimal).
95dc81f
Christopher Brown b32161b
* Fri Jan 8 2021 Christopher Brown <chris.brown@redhat.com> - 2.4.0-1
Christopher Brown b32161b
- Update to 2.4.0
Christopher Brown b32161b
  Resolves: rhbz#1911811
Christopher Brown b32161b
06154b8
* Mon Aug 03 06:49:08 GMT 2020 Pavel Valena <pvalena@redhat.com> - 2.3.0-1
06154b8
- Update to prawn 2.3.0.
06154b8
  Resolves: rhbz#1862713
06154b8
8fe5869
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-5
8fe5869
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
8fe5869
3b81ce8
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-4
3b81ce8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
3b81ce8
a67fb8e
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-3
a67fb8e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
a67fb8e
bd819b3
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.2-2
bd819b3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
bd819b3
c18c7ad
* Thu Nov 08 2018 Christopher Brown <chris.brown@redhat.com> - 2.2.2-1
c18c7ad
- Update to 2.2.2
c18c7ad
1d18845
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-6
1d18845
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1d18845
8d6350d
* Tue Feb 27 2018 Vít Ondruch <vondruch@redhat.com> - 2.1.0-5
8d6350d
- Enable test suite.
8d6350d
51ad386
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-4
51ad386
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
51ad386
b4c17a4
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
b4c17a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
b4c17a4
d2babf3
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
d2babf3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
d2babf3
Fabio Alessandro Locati 6507379
* Wed Jun 15 2016 Fabio Alessandro Locati <me@fale.io> - 2.1.0-1
Fabio Alessandro Locati 6507379
- Update to 2.1.0
Fabio Alessandro Locati 6507379
6da33b5
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-1
6da33b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6da33b5
Josef Stribny 2160fb9
* Mon Aug 24 2015 Josef Stribny <jstribny@redhat.com> - 2.0.2-1
Josef Stribny 2160fb9
- Update to 2.0.2
Josef Stribny 2160fb9
Josef Stribny 3a3fe4a
* Mon Jun 22 2015 Josef Stribny <jstribny@redhat.com> - 2.0.1-1
Josef Stribny 3a3fe4a
- Update to 2.0.1
Josef Stribny 3a3fe4a
6898f68
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-1
6898f68
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
6898f68
Josef Stribny eeeb339
* Mon Aug 18 2014 Josef Stribny <jstribny@redhat.com> - 1.2.1-1
Josef Stribny eeeb339
- Update to 1.2.1
Josef Stribny eeeb339
Josef Stribny e500a86
* Mon Jun 23 2014 Josef Stribny <jstribny@redhat.com> - 1.0.0-1
Josef Stribny e500a86
- Update to final 1.0.0 version
Josef Stribny e500a86
866aa8f
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-0.7.rc2.1
866aa8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
866aa8f
Josef Stribny bd9c2d2
* Thu Mar 06 2014 Josef Stribny <jstribny@redhat.com> - 1.0.0-0.6.rc2
Josef Stribny bd9c2d2
- Relax rubygem-ttfunk dep
Josef Stribny bd9c2d2
852f174
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-0.5.rc2
852f174
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
852f174
8d6350d
* Fri May 17 2013 Josef Stribny <jstribny@redhat.com> - 1.0.0-0.4.rc2
Josef Stribny 4a3a987
- Fixed license considering .afm
Josef Stribny 4a3a987
Josef Stribny 4a3a987
* Thu May 16 2013 Josef Stribny <jstribny@redhat.com> - 1.0.0-0.3.rc2
Josef Stribny 4a3a987
- *.ttf fonts and rails.png removal
Josef Stribny 4a3a987
Josef Stribny 4a3a987
* Tue Apr 16 2013 Josef Stribny <jstribny@redhat.com> - 1.0.0-0.2.rc2
Josef Stribny 4a3a987
- Move /data to main package
Josef Stribny 4a3a987
Josef Stribny 4a3a987
* Mon Apr 15 2013 Josef Stribny <jstribny@redhat.com> - 1.0.0-0.1.rc2
Josef Stribny 4a3a987
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
Josef Stribny 4a3a987
- Update to Prawn 1.0.0.rc2
Josef Stribny 4a3a987
Josef Stribny 4a3a987
* Tue Dec 04 2012 Josef Stribny <jstribny@redhat.com> - 0.12.0-1
Josef Stribny 4a3a987
- Initial package