Josef Stribny 613a372
%global gem_name pdf-core
Josef Stribny 613a372
Josef Stribny 613a372
Name: rubygem-%{gem_name}
Christopher Brown 6356ac1
Version: 0.9.0
b5f7443
Release: 8%{?dist}
Josef Stribny 613a372
Summary: PDF::Core is used by Prawn to render PDF documents
Josef Stribny 613a372
License: GPLv2 or GPLv3 or Ruby 
c8a102c
URL: https://github.com/prawnpdf/pdf-core
Josef Stribny 613a372
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
c8a102c
# git clone https://github.com/prawnpdf/pdf-core && cd pdf-core
Christopher Brown 6356ac1
# git checkout 0.9.0 && tar czvf pdf-core-0.9.0-specs.tgz spec/
c8a102c
Source1: %{gem_name}-%{version}-specs.tgz
Josef Stribny 613a372
BuildRequires: ruby(release)
Josef Stribny 613a372
BuildRequires: rubygems-devel >= 1.3.6
Josef Stribny 613a372
BuildRequires: ruby >= 1.9.3
Fabio Alessandro Locati ddcba90
BuildRequires: rubygem(pdf-reader) => 1.2
Fabio Alessandro Locati ddcba90
BuildRequires: rubygem(pdf-inspector) => 1.1.0
Josef Stribny 613a372
BuildRequires: rubygem(rspec)
Fabio Alessandro Locati ddcba90
Josef Stribny 613a372
BuildArch: noarch
Josef Stribny 613a372
Josef Stribny 613a372
%description
Josef Stribny 613a372
PDF::Core is used by Prawn to render PDF documents.
Josef Stribny 613a372
Josef Stribny 613a372
Josef Stribny 613a372
%package doc
Josef Stribny 613a372
Summary: Documentation for %{name}
Josef Stribny 613a372
Requires: %{name} = %{version}-%{release}
Josef Stribny 613a372
BuildArch: noarch
Josef Stribny 613a372
Josef Stribny 613a372
%description doc
Josef Stribny 613a372
Documentation for %{name}.
Josef Stribny 613a372
Josef Stribny 613a372
%prep
c8a102c
%setup -q -n %{gem_name}-%{version} -b1
Josef Stribny 613a372
Josef Stribny 613a372
%build
c8a102c
gem build ../%{gem_name}-%{version}.gemspec
Josef Stribny 613a372
%gem_install
Josef Stribny 613a372
Josef Stribny 613a372
%install
Josef Stribny 613a372
mkdir -p %{buildroot}%{gem_dir}
Josef Stribny 613a372
cp -pa .%{gem_dir}/* \
Josef Stribny 613a372
        %{buildroot}%{gem_dir}/
Josef Stribny 613a372
Josef Stribny 613a372
Josef Stribny 613a372
%check
Josef Stribny 613a372
pushd .%{gem_instdir}
c8a102c
# Symlinking does not work for this test suite
c8a102c
cp -r %{_builddir}/spec .
c8a102c
Josef Stribny 613a372
# get rid of bundler
c8a102c
sed -i -e "s/require 'bundler'//" spec/spec_helper.rb
Josef Stribny 613a372
sed -i -e 's/Bundler.setup//' spec/spec_helper.rb
Josef Stribny 613a372
rspec spec
Josef Stribny 613a372
popd
Josef Stribny 613a372
Josef Stribny 613a372
%files
Josef Stribny 613a372
%dir %{gem_instdir}
Josef Stribny 613a372
%{gem_libdir}
Josef Stribny 613a372
%exclude %{gem_cache}
Josef Stribny 613a372
%{gem_spec}
c8a102c
%license %{gem_instdir}/LICENSE
Josef Stribny 613a372
%doc %{gem_instdir}/COPYING
Josef Stribny 613a372
%doc %{gem_instdir}/GPLv2
Josef Stribny 613a372
%doc %{gem_instdir}/GPLv3
Josef Stribny 613a372
Josef Stribny 613a372
%files doc
Josef Stribny 613a372
%doc %{gem_docdir}
Josef Stribny 613a372
%{gem_instdir}/Gemfile
Josef Stribny 613a372
%{gem_instdir}/Rakefile
Josef Stribny 613a372
%{gem_instdir}/%{gem_name}.gemspec
Josef Stribny 613a372
Josef Stribny 613a372
%changelog
b5f7443
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-8
b5f7443
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
b5f7443
f924dc1
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-7
f924dc1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
f924dc1
d22a3da
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-6
d22a3da
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
d22a3da
a39b820
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-5
a39b820
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
a39b820
d9d7663
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-4
d9d7663
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
d9d7663
7cac98a
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-3
7cac98a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
7cac98a
4b25717
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-2
4b25717
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
4b25717
Christopher Brown 6356ac1
* Fri Jan 1 2021 Christopher Brown <chris.brown@redhat.com> - 0.9.0-1
Christopher Brown 6356ac1
- Update to 0.9.0
Christopher Brown 6356ac1
3482efc
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-5
3482efc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
3482efc
9163f51
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-4
9163f51
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
9163f51
7dfe2c8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-3
7dfe2c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
7dfe2c8
e5ca841
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-2
e5ca841
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e5ca841
c8a102c
* Thu Oct 25 2018 Pavel Valena <pvalena@redhat.com> - 0.8.1-1
c8a102c
- Update to pdf-core 0.8.1.
c8a102c
0927b48
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-6
0927b48
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
0927b48
8578f94
* Tue Feb 27 2018 Vít Ondruch <vondruch@redhat.com> - 0.6.1-5
8578f94
- Remove unneeded SimpleCov build dependency.
8578f94
2daa298
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-4
2daa298
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2daa298
34a80fd
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-3
34a80fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
34a80fd
8d82d5f
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-2
8d82d5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
8d82d5f
Fabio Alessandro Locati ddcba90
* Wed Jun 15 2016 Fabio Alessandro Locati <me@fale.io> - 0.6.1-1
Fabio Alessandro Locati ddcba90
- Update to 0.6.1
Fabio Alessandro Locati ddcba90
cf4d01a
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-2
cf4d01a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
cf4d01a
Josef Stribny bf5382b
* Mon Aug 24 2015 Josef Stribny <jstribny@redhat.com> - 0.6.0-1
Josef Stribny bf5382b
- Update to 0.6.0
Josef Stribny bf5382b
Josef Stribny add8773
* Mon Jun 22 2015 Josef Stribny <jstribny@redhat.com> - 0.5.1-1
Josef Stribny add8773
- Update to 0.5.1
Josef Stribny add8773
d80389d
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.5-2
d80389d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
d80389d
Josef Stribny 613a372
* Mon May 05 2014 Josef Stribny <jstribny@redhat.com> - 0.2.5-1
Josef Stribny 613a372
- Initial package