| |
@@ -1,13 +1,15 @@
|
| |
%global gem_name pdf-core
|
| |
|
| |
Name: rubygem-%{gem_name}
|
| |
- Version: 0.6.1
|
| |
- Release: 6%{?dist}
|
| |
+ Version: 0.8.1
|
| |
+ Release: 1%{?dist}
|
| |
Summary: PDF::Core is used by Prawn to render PDF documents
|
| |
- Group: Development/Languages
|
| |
License: GPLv2 or GPLv3 or Ruby
|
| |
- URL: http://prawn.majesticseacreature.com
|
| |
+ URL: https://github.com/prawnpdf/pdf-core
|
| |
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
| |
+ # git clone https://github.com/prawnpdf/pdf-core && cd pdf-core
|
| |
+ # git checkout 0.8.1 && tar czvf pdf-core-0.8.1-specs.tgz spec/
|
| |
+ Source1: %{gem_name}-%{version}-specs.tgz
|
| |
BuildRequires: ruby(release)
|
| |
BuildRequires: rubygems-devel >= 1.3.6
|
| |
BuildRequires: ruby >= 1.9.3
|
| |
@@ -23,7 +25,6 @@
|
| |
|
| |
%package doc
|
| |
Summary: Documentation for %{name}
|
| |
- Group: Documentation
|
| |
Requires: %{name} = %{version}-%{release}
|
| |
BuildArch: noarch
|
| |
|
| |
@@ -31,14 +32,10 @@
|
| |
Documentation for %{name}.
|
| |
|
| |
%prep
|
| |
- gem unpack %{SOURCE0}
|
| |
-
|
| |
- %setup -q -D -T -n %{gem_name}-%{version}
|
| |
-
|
| |
- gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
| |
+ %setup -q -n %{gem_name}-%{version} -b1
|
| |
|
| |
%build
|
| |
- gem build %{gem_name}.gemspec
|
| |
+ gem build ../%{gem_name}-%{version}.gemspec
|
| |
%gem_install
|
| |
|
| |
%install
|
| |
@@ -49,8 +46,11 @@
|
| |
|
| |
%check
|
| |
pushd .%{gem_instdir}
|
| |
+ # Symlinking does not work for this test suite
|
| |
+ cp -r %{_builddir}/spec .
|
| |
+
|
| |
# get rid of bundler
|
| |
- sed -i -e 's/require "bundler"//' spec/spec_helper.rb
|
| |
+ sed -i -e "s/require 'bundler'//" spec/spec_helper.rb
|
| |
sed -i -e 's/Bundler.setup//' spec/spec_helper.rb
|
| |
rspec spec
|
| |
popd
|
| |
@@ -60,7 +60,7 @@
|
| |
%{gem_libdir}
|
| |
%exclude %{gem_cache}
|
| |
%{gem_spec}
|
| |
- %doc %{gem_instdir}/LICENSE
|
| |
+ %license %{gem_instdir}/LICENSE
|
| |
%doc %{gem_instdir}/COPYING
|
| |
%doc %{gem_instdir}/GPLv2
|
| |
%doc %{gem_instdir}/GPLv3
|
| |
@@ -70,9 +70,11 @@
|
| |
%{gem_instdir}/Gemfile
|
| |
%{gem_instdir}/Rakefile
|
| |
%{gem_instdir}/%{gem_name}.gemspec
|
| |
- %{gem_instdir}/spec
|
| |
|
| |
%changelog
|
| |
+ * Thu Oct 25 2018 Pavel Valena <pvalena@redhat.com> - 0.8.1-1
|
| |
+ - Update to pdf-core 0.8.1.
|
| |
+
|
| |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-6
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
| |
|
| |
also enhance .spec and .gitignore files.
Copr-build:
https://copr.fedorainfracloud.org/coprs/pvalena/rubygems/build/815488/
Checks:
Note: I'm not sure Ruby license is still valid in
License: GPLv2 or GPLv3 or Ruby