upadte to 2.4.0
This commit is contained in:
parent
8e9bff388c
commit
d45b1740cc
BIN
prawn-2.2.2.gem
BIN
prawn-2.2.2.gem
Binary file not shown.
BIN
prawn-2.4.0-data.txz
Normal file
BIN
prawn-2.4.0-data.txz
Normal file
Binary file not shown.
BIN
prawn-2.4.0.gem
Normal file
BIN
prawn-2.4.0.gem
Normal file
Binary file not shown.
@ -1,11 +0,0 @@
|
||||
--- lib/prawn/font.rb.orig 2018-11-08 20:45:32.309671191 +0000
|
||||
+++ lib/prawn/font.rb 2018-11-08 20:46:17.537133702 +0000
|
||||
@@ -384,7 +384,7 @@
|
||||
end
|
||||
|
||||
def identifier_for(subset) #:nodoc:
|
||||
- "#{@identifier}.#{subset}"
|
||||
+ "#{@identifier}.#{subset}".to_sym
|
||||
end
|
||||
|
||||
def inspect #:nodoc:
|
||||
@ -1,16 +1,20 @@
|
||||
%global gem_name prawn
|
||||
Summary: A fast and nimble PDF generator for Ruby
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 2.2.2
|
||||
Release: 2
|
||||
Version: 2.4.0
|
||||
Release: 1
|
||||
License: (GPLv2 or GPLv3 or Ruby) and APAFML
|
||||
URL: https://github.com/prawnpdf/prawn
|
||||
Source0: http://rubygems.org/gems/prawn-%{version}.gem
|
||||
Patch0: prawn-fix-test-errors.patch
|
||||
# git clone --no-checkout https://github.com/prawnpdf/prawn.git
|
||||
# cd prawn && git archive -v -o prawn-2.4.0-data.txz 2.4.0 data
|
||||
Source1: %{gem_name}-%{version}-data.txz
|
||||
BuildRequires: ruby(release) rubygems-devel >= 1.3.6 rubygem(rspec) >= 3.0
|
||||
BuildRequires: rubygem(ttfunk) >= 1.5 rubygem(pdf-reader) >= 1.4.0
|
||||
BuildRequires: rubygem(pdf-inspector) >= 1.2.1 rubygem(pdf-core) >= 0.7.0
|
||||
BuildRequires: rubygem(ttfunk) >= 1.7 rubygem(pdf-reader) >= 1.4.0
|
||||
BuildRequires: rubygem(pdf-inspector) >= 1.2.1 rubygem(pdf-core) >= 0.9.0
|
||||
BuildRequires: rubygem-bigdecimal rubygem(matrix)
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
Prawn is a pure Ruby PDF generation library that provides a lot of great
|
||||
functionality while trying to remain simple and reasonably performant.
|
||||
@ -43,14 +47,14 @@ BuildArch: noarch
|
||||
Documentation for %{name}
|
||||
|
||||
%prep
|
||||
%setup -q -n %{gem_name}-%{version}
|
||||
%gemspec_remove_dep -g pdf-core "~> 0.7.0"
|
||||
%gemspec_add_dep -g pdf-core ">= 0.7.0"
|
||||
%patch0
|
||||
%setup -q -n %{gem_name}-%{version} -b1
|
||||
# matrix is bundled gem since Ruby 3.1.
|
||||
# https://github.com/prawnpdf/prawn/commit/3658d5125c3b20eb11484c3b039ca6b89dc7d1b7
|
||||
%gemspec_add_dep -g matrix '~> 0.4'
|
||||
|
||||
%build
|
||||
gem build ../%{gem_name}-%{version}.gemspec
|
||||
%gem_install -n %{gem_name}-%{version}.gem
|
||||
%gem_install
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{gem_dir}
|
||||
@ -59,11 +63,16 @@ cp -a .%{gem_dir}/* \
|
||||
|
||||
%check
|
||||
pushd .%{gem_instdir}
|
||||
rm -rf data
|
||||
ln -s %{_builddir}/data .
|
||||
|
||||
sed -i "/^require 'bundler'/d" ./spec/spec_helper.rb
|
||||
sed -i "/^Bundler.setup/d" ./spec/spec_helper.rb
|
||||
rspec spec \
|
||||
| tee /dev/stderr \
|
||||
| grep '850 examples, 106 failures'
|
||||
|
||||
# manual_builder dependency is not yet
|
||||
mv spec/prawn_manual_spec.rb{,.disable}
|
||||
|
||||
rspec spec
|
||||
popd
|
||||
|
||||
%files
|
||||
@ -76,7 +85,6 @@ popd
|
||||
%doc %{gem_instdir}/GPLv2
|
||||
%doc %{gem_instdir}/GPLv3
|
||||
%exclude %{gem_instdir}/%{gem_name}.gemspec
|
||||
%doc %{gem_instdir}/data/fonts/MustRead.html
|
||||
%{gem_instdir}/data/fonts/*.afm
|
||||
%exclude %{gem_instdir}/.yardopts
|
||||
|
||||
@ -86,8 +94,12 @@ popd
|
||||
%{gem_instdir}/Rakefile
|
||||
%{gem_instdir}/spec
|
||||
%doc %{gem_instdir}/manual
|
||||
%doc %{gem_instdir}/data/fonts/MustRead.html
|
||||
|
||||
%changelog
|
||||
* Tue Jan 17 2023 caodongxia <caodongxia@h-partners.com> - 2.4.0-1
|
||||
- update to 2.4.0
|
||||
|
||||
* Wed Feb 23 2022 chenchen <chen_aka_jan@163.com> - 2.2.2-2
|
||||
- fix build error by upgrading to ruby3
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user