%global gem_name prawn-table Name: rubygem-%{gem_name} Version: 0.2.2 Release: 21%{?dist} Summary: Provides tables for PrawnPDF # Automatically converted from old format: Ruby or GPLv2 or GPLv3 - review is highly recommended. License: Ruby OR GPL-2.0-only OR GPL-3.0-only URL: https://github.com/prawnpdf/prawn-table Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel >= 1.3.6 BuildRequires: ruby >= 1.9.3 BuildRequires: rubygem(prawn) >= 1.3.0 # data/images/prawn.png is required by test suite. BuildRequires: rubygem-prawn-doc BuildRequires: rubygem(pdf-inspector) => 1.1.0 BuildRequires: rubygem(rspec) BuildRequires: rubygem(mocha) BuildRequires: rubygem(pdf-reader) => 1.2 BuildArch: noarch %description Prawn::Table provides tables for the Prawn PDF toolkit. %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 gem build ../%{gem_name}-%{version}.gemspec %gem_install %install mkdir -p %{buildroot}%{gem_dir} cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} sed -i '/^require "bundler"/d' ./spec/spec_helper.rb sed -i '/^Bundler.setup/d' ./spec/spec_helper.rb # Don't run unresolved test cases. # https://github.com/prawnpdf/prawn-table/blob/master/Rakefile#L15 # 4 failures expected due to image file not included in prawn gem rspec spec -t ~unresolved \ | tee /dev/stderr \ | grep '222 examples, 4 failures' # Currently disabled # rspec2 spec popd %files %dir %{gem_instdir} %license %{gem_instdir}/COPYING %license %{gem_instdir}/GPLv2 %license %{gem_instdir}/GPLv3 %license %{gem_instdir}/LICENSE %{gem_libdir} %{gem_instdir}/manual %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %{gem_instdir}/Gemfile %{gem_instdir}/prawn-table.gemspec %{gem_instdir}/spec %changelog * Wed Aug 07 2024 Miroslav Suchý - 0.2.2-21 - convert license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 0.2.2-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jan 26 2024 Fedora Release Engineering - 0.2.2-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 0.2.2-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 0.2.2-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Sat Jul 23 2022 Fedora Release Engineering - 0.2.2-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 0.2.2-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.2.2-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.2.2-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.2.2-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Fedora Release Engineering - 0.2.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 0.2.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.2.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Nov 14 2018 Christopher Brown - 0.2.2-8 - Add test suite workaround due to missing image in prawn * Sat Jul 14 2018 Fedora Release Engineering - 0.2.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Feb 27 2018 Vít Ondruch - 0.2.2-6 - Remove restriction on BR. * Tue Feb 27 2018 Vít Ondruch - 0.2.2-5 - Enable test suite. * Fri Feb 09 2018 Fedora Release Engineering - 0.2.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.2.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Fri Jun 17 2016 Fabio Alessandro Locati - 0.2.2-1 - Initial package