|
|
bd73d32 |
%global gem_name pdf-reader
|
|
|
9969e23 |
|
|
|
bd73d32 |
Name: rubygem-%{gem_name}
|
|
|
2b2f7bf |
Version: 2.11.0
|
|
|
2b2f7bf |
Release: 1%{?dist}
|
|
|
9969e23 |
Summary: A library for accessing the content of PDF files
|
|
|
bd73d32 |
License: MIT
|
|
|
bd73d32 |
URL: https://github.com/yob/pdf-reader
|
|
|
9969e23 |
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
0d649e7 |
# git clone --no-checkout https://github.com/yob/pdf-reader.git
|
|
|
2b2f7bf |
# cd pdf-reader && git archive -v -o pdf-reader-2.11.0-spec.txz v2.11.0 spec/
|
|
|
0d649e7 |
Source1: pdf-reader-%{version}-spec.txz
|
|
|
9969e23 |
BuildRequires: ruby(release)
|
|
|
bd73d32 |
BuildRequires: rubygems-devel
|
|
|
9969e23 |
BuildRequires: ruby >= 1.9.3
|
|
|
9969e23 |
BuildRequires: rubygem(Ascii85)
|
|
|
9969e23 |
BuildRequires: rubygem(afm)
|
|
|
9969e23 |
BuildRequires: rubygem(hashery)
|
|
|
9969e23 |
BuildRequires: rubygem(rspec)
|
|
|
bd73d32 |
BuildRequires: rubygem(ruby-rc4)
|
|
|
f4796b2 |
BuildRequires: rubygem(ttfunk)
|
|
|
9969e23 |
BuildArch: noarch
|
|
|
bd73d32 |
|
|
|
bd73d32 |
%description
|
|
|
bd73d32 |
The PDF::Reader library implements a PDF parser conforming as much as possible
|
|
|
bd73d32 |
to the PDF specification from Adobe.
|
|
|
bd73d32 |
|
|
|
bd73d32 |
%package doc
|
|
|
9969e23 |
Summary: Documentation for %{name}
|
|
|
9969e23 |
Requires: %{name} = %{version}-%{release}
|
|
|
9969e23 |
BuildArch: noarch
|
|
|
bd73d32 |
|
|
|
bd73d32 |
%description doc
|
|
|
9969e23 |
Documentation for %{name}.
|
|
|
bd73d32 |
|
|
|
bd73d32 |
%prep
|
|
|
0d649e7 |
%setup -q -n %{gem_name}-%{version} -b 1
|
|
|
bd73d32 |
|
|
|
bd73d32 |
%build
|
|
|
0d649e7 |
gem build ../%{gem_name}-%{version}.gemspec
|
|
|
e70b04b |
%gem_install
|
|
|
bd73d32 |
|
|
|
bd73d32 |
%install
|
|
|
bd73d32 |
mkdir -p %{buildroot}%{gem_dir}
|
|
|
9969e23 |
cp -a .%{gem_dir}/* \
|
|
|
9969e23 |
%{buildroot}%{gem_dir}/
|
|
|
9969e23 |
|
|
|
bd73d32 |
|
|
|
bd73d32 |
mkdir -p %{buildroot}%{_bindir}
|
|
|
9969e23 |
cp -a .%{_bindir}/* \
|
|
|
9969e23 |
%{buildroot}%{_bindir}/
|
|
|
bd73d32 |
|
|
|
9969e23 |
find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
|
|
|
bd73d32 |
|
|
|
bd73d32 |
chmod a+x %{buildroot}%{gem_instdir}/examples/*.rb
|
|
|
bd73d32 |
|
|
|
bd73d32 |
%check
|
|
|
9969e23 |
pushd .%{gem_instdir}
|
|
|
0d649e7 |
ln -s %{_builddir}/spec .
|
|
|
9969e23 |
|
|
|
9969e23 |
sed -i '/require.*bundler/ s/^/#/' spec/spec_helper.rb
|
|
|
9969e23 |
sed -i '/Bundler.setup/ s/^/#/' spec/spec_helper.rb
|
|
|
9969e23 |
|
|
|
9969e23 |
rspec -r spec_helper spec
|
|
|
bd73d32 |
popd
|
|
|
bd73d32 |
|
|
|
bd73d32 |
%files
|
|
|
bd73d32 |
%dir %{gem_instdir}
|
|
|
9969e23 |
%{_bindir}/pdf_*
|
|
|
9969e23 |
%license %{gem_instdir}/MIT-LICENSE
|
|
|
bd73d32 |
%{gem_instdir}/bin
|
|
|
9969e23 |
%{gem_libdir}
|
|
|
bd73d32 |
%exclude %{gem_cache}
|
|
|
bd73d32 |
%{gem_spec}
|
|
|
bd73d32 |
|
|
|
bd73d32 |
%files doc
|
|
|
bd73d32 |
%doc %{gem_docdir}
|
|
|
9969e23 |
%doc %{gem_instdir}/TODO
|
|
|
9969e23 |
%doc %{gem_instdir}/CHANGELOG
|
|
|
9969e23 |
%doc %{gem_instdir}/README.md
|
|
|
bd73d32 |
%{gem_instdir}/Rakefile
|
|
|
bd73d32 |
%{gem_instdir}/examples
|
|
|
bd73d32 |
|
|
|
bd73d32 |
%changelog
|
|
|
2b2f7bf |
* Fri Feb 03 2023 Pavel Valena <pvalena@redhat.com> - 2.11.0-1
|
|
|
2b2f7bf |
- Update to pdf-reader 2.11.0.
|
|
|
2b2f7bf |
Resolves: rhbz#1968140
|
|
|
2b2f7bf |
|
|
|
640beb3 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.2-5
|
|
|
640beb3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
640beb3 |
|
|
|
3a578b3 |
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.2-4
|
|
|
3a578b3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
3a578b3 |
|
|
|
d871c62 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.2-3
|
|
|
d871c62 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
d871c62 |
|
|
|
497333c |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.2-2
|
|
|
497333c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
497333c |
|
|
|
bfcd863 |
* Thu Jan 28 2021 Vít Ondruch <vondruch@redhat.com> - 2.4.2-1
|
|
|
bfcd863 |
- Update to pdf-reader 2.4.2.
|
|
|
bfcd863 |
|
|
|
4acb742 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-2
|
|
|
4acb742 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
4acb742 |
|
|
|
0d649e7 |
* Wed Oct 14 13:52:42 CEST 2020 Pavel Valena <pvalena@redhat.com> - 2.4.1-1
|
|
|
0d649e7 |
- Update to pdf-reader 2.4.1.
|
|
|
0d649e7 |
Resolves: rhbz#1742349
|
|
|
0d649e7 |
|
|
|
eb28b2d |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-6
|
|
|
eb28b2d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
eb28b2d |
|
|
|
9bcbe5c |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-5
|
|
|
9bcbe5c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
9bcbe5c |
|
|
|
4dcf9b2 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-4
|
|
|
4dcf9b2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
4dcf9b2 |
|
|
|
1b92d18 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-3
|
|
|
1b92d18 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
1b92d18 |
|
|
|
b6698fc |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
|
|
|
b6698fc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
b6698fc |
|
|
|
9969e23 |
* Tue Feb 27 2018 Vít Ondruch <vondruch@redhat.com> - 2.1.0-1
|
|
|
9969e23 |
- Update to pdf-reader 2.1.0.
|
|
|
9969e23 |
|
|
|
aee90a0 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-11
|
|
|
aee90a0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
aee90a0 |
|
|
|
c4414aa |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-10
|
|
|
c4414aa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
c4414aa |
|
|
|
63ebe9d |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-9
|
|
|
63ebe9d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
63ebe9d |
|
|
|
a33ac69 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.3-8
|
|
|
a33ac69 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
a33ac69 |
|
|
|
3969c01 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.3-7
|
|
|
3969c01 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
3969c01 |
|
|
Josef Stribny |
ed2a923 |
* Mon Jun 16 2014 Josef Stribny <jstribny@redhat.com> 1.3.3.-6
|
|
Josef Stribny |
ed2a923 |
- Skip specs that relies on test/unit
|
|
Josef Stribny |
ed2a923 |
|
|
|
0acaf1d |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.3-5
|
|
|
0acaf1d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
0acaf1d |
|
|
|
f4796b2 |
* Tue Aug 13 2013 Miroslav Suchý <msuchy@redhat.com> 1.3.3-4
|
|
|
f4796b2 |
- require (and BR) ttfunk
|
|
|
f4796b2 |
|
|
|
671bc26 |
* Tue Aug 13 2013 Miroslav Suchý <msuchy@redhat.com> 1.3.3-3
|
|
|
671bc26 |
- add BR of afm and hashery for tests
|
|
|
671bc26 |
|
|
|
ac04517 |
* Mon Aug 05 2013 Miroslav Suchý <msuchy@redhat.com> 1.3.3-2
|
|
|
ac04517 |
- fix tar file name
|
|
|
ac04517 |
|
|
|
ac04517 |
* Mon Aug 05 2013 Miroslav Suchý <msuchy@redhat.com> 1.3.3-1
|
|
|
ac04517 |
- rebase to 1.3.3
|
|
|
ac04517 |
|
|
|
1b266b4 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-9
|
|
|
1b266b4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
1b266b4 |
|
|
|
e70b04b |
* Wed Mar 13 2013 Miroslav Suchý <msuchy@redhat.com> - 1.1.1-8
|
|
|
e70b04b |
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
|
|
|
e70b04b |
|
|
|
43ab630 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-7
|
|
|
43ab630 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
43ab630 |
|
|
|
bd73d32 |
* Wed Sep 05 2012 Miroslav Suchý <msuchy@redhat.com> 1.1.1-6
|
|
|
bd73d32 |
- 850679 - add rubygem(minitest) to BR (msuchy@redhat.com)
|
|
|
bd73d32 |
- 850679 - include version in file name with spec tests (msuchy@redhat.com)
|
|
|
bd73d32 |
|
|
|
bd73d32 |
* Mon Sep 03 2012 Miroslav Suchý <msuchy@redhat.com> 1.1.1-5
|
|
|
bd73d32 |
- 850679 - run test suite (msuchy@redhat.com)
|
|
|
bd73d32 |
- 850679 - flag examples as executables (msuchy@redhat.com)
|
|
|
bd73d32 |
|
|
|
bd73d32 |
* Thu Aug 23 2012 Miroslav Suchý <msuchy@redhat.com> 1.1.1-4
|
|
|
bd73d32 |
- 850679 - add rubygems to BR (msuchy@redhat.com)
|
|
|
bd73d32 |
- 850679 - fix BR and do not remove %%{gem_instdir}/bin (msuchy@redhat.com)
|
|
|
bd73d32 |
|
|
|
bd73d32 |
* Wed Aug 22 2012 Miroslav Suchý <msuchy@redhat.com> 1.1.1-3
|
|
|
bd73d32 |
- add runtime dependencies (msuchy@redhat.com)
|
|
|
bd73d32 |
|
|
|
bd73d32 |
* Wed Aug 22 2012 Miroslav Suchý <msuchy@redhat.com> 1.1.1-2
|
|
|
bd73d32 |
- new package built with tito
|
|
|
bd73d32 |
|
|
|
bd73d32 |
* Tue Aug 21 2012 Miroslav Suchý <msuchy@redhat.com> 1.1.1-1
|
|
|
bd73d32 |
- new package built with tito
|
|
|
bd73d32 |
|