!5 update to 2.4.0
From: @caodongxia Reviewed-by: @jxy_git Signed-off-by: @jxy_git
This commit is contained in:
commit
ab6668a377
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
|
%global gem_name prawn
|
||||||
Summary: A fast and nimble PDF generator for Ruby
|
Summary: A fast and nimble PDF generator for Ruby
|
||||||
Name: rubygem-%{gem_name}
|
Name: rubygem-%{gem_name}
|
||||||
Version: 2.2.2
|
Version: 2.4.0
|
||||||
Release: 2
|
Release: 1
|
||||||
License: (GPLv2 or GPLv3 or Ruby) and APAFML
|
License: (GPLv2 or GPLv3 or Ruby) and APAFML
|
||||||
URL: https://github.com/prawnpdf/prawn
|
URL: https://github.com/prawnpdf/prawn
|
||||||
Source0: http://rubygems.org/gems/prawn-%{version}.gem
|
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: ruby(release) rubygems-devel >= 1.3.6 rubygem(rspec) >= 3.0
|
||||||
BuildRequires: rubygem(ttfunk) >= 1.5 rubygem(pdf-reader) >= 1.4.0
|
BuildRequires: rubygem(ttfunk) >= 1.7 rubygem(pdf-reader) >= 1.4.0
|
||||||
BuildRequires: rubygem(pdf-inspector) >= 1.2.1 rubygem(pdf-core) >= 0.7.0
|
BuildRequires: rubygem(pdf-inspector) >= 1.2.1 rubygem(pdf-core) >= 0.9.0
|
||||||
|
BuildRequires: rubygem-bigdecimal rubygem(matrix)
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Prawn is a pure Ruby PDF generation library that provides a lot of great
|
Prawn is a pure Ruby PDF generation library that provides a lot of great
|
||||||
functionality while trying to remain simple and reasonably performant.
|
functionality while trying to remain simple and reasonably performant.
|
||||||
@ -43,14 +47,14 @@ BuildArch: noarch
|
|||||||
Documentation for %{name}
|
Documentation for %{name}
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{gem_name}-%{version}
|
%setup -q -n %{gem_name}-%{version} -b1
|
||||||
%gemspec_remove_dep -g pdf-core "~> 0.7.0"
|
# matrix is bundled gem since Ruby 3.1.
|
||||||
%gemspec_add_dep -g pdf-core ">= 0.7.0"
|
# https://github.com/prawnpdf/prawn/commit/3658d5125c3b20eb11484c3b039ca6b89dc7d1b7
|
||||||
%patch0
|
%gemspec_add_dep -g matrix '~> 0.4'
|
||||||
|
|
||||||
%build
|
%build
|
||||||
gem build ../%{gem_name}-%{version}.gemspec
|
gem build ../%{gem_name}-%{version}.gemspec
|
||||||
%gem_install -n %{gem_name}-%{version}.gem
|
%gem_install
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{gem_dir}
|
mkdir -p %{buildroot}%{gem_dir}
|
||||||
@ -59,11 +63,16 @@ cp -a .%{gem_dir}/* \
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
pushd .%{gem_instdir}
|
pushd .%{gem_instdir}
|
||||||
|
rm -rf data
|
||||||
|
ln -s %{_builddir}/data .
|
||||||
|
|
||||||
sed -i "/^require 'bundler'/d" ./spec/spec_helper.rb
|
sed -i "/^require 'bundler'/d" ./spec/spec_helper.rb
|
||||||
sed -i "/^Bundler.setup/d" ./spec/spec_helper.rb
|
sed -i "/^Bundler.setup/d" ./spec/spec_helper.rb
|
||||||
rspec spec \
|
|
||||||
| tee /dev/stderr \
|
# manual_builder dependency is not yet
|
||||||
| grep '850 examples, 106 failures'
|
mv spec/prawn_manual_spec.rb{,.disable}
|
||||||
|
|
||||||
|
rspec spec
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@ -76,7 +85,6 @@ popd
|
|||||||
%doc %{gem_instdir}/GPLv2
|
%doc %{gem_instdir}/GPLv2
|
||||||
%doc %{gem_instdir}/GPLv3
|
%doc %{gem_instdir}/GPLv3
|
||||||
%exclude %{gem_instdir}/%{gem_name}.gemspec
|
%exclude %{gem_instdir}/%{gem_name}.gemspec
|
||||||
%doc %{gem_instdir}/data/fonts/MustRead.html
|
|
||||||
%{gem_instdir}/data/fonts/*.afm
|
%{gem_instdir}/data/fonts/*.afm
|
||||||
%exclude %{gem_instdir}/.yardopts
|
%exclude %{gem_instdir}/.yardopts
|
||||||
|
|
||||||
@ -86,8 +94,12 @@ popd
|
|||||||
%{gem_instdir}/Rakefile
|
%{gem_instdir}/Rakefile
|
||||||
%{gem_instdir}/spec
|
%{gem_instdir}/spec
|
||||||
%doc %{gem_instdir}/manual
|
%doc %{gem_instdir}/manual
|
||||||
|
%doc %{gem_instdir}/data/fonts/MustRead.html
|
||||||
|
|
||||||
%changelog
|
%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
|
* Wed Feb 23 2022 chenchen <chen_aka_jan@163.com> - 2.2.2-2
|
||||||
- fix build error by upgrading to ruby3
|
- fix build error by upgrading to ruby3
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user