package init
This commit is contained in:
parent
2881d98e0a
commit
2b512796d1
BIN
pdf-core-0.8.1-specs.tgz
Normal file
BIN
pdf-core-0.8.1-specs.tgz
Normal file
Binary file not shown.
BIN
pdf-core-0.8.1.gem
Normal file
BIN
pdf-core-0.8.1.gem
Normal file
Binary file not shown.
61
rubygem-pdf-core.spec
Normal file
61
rubygem-pdf-core.spec
Normal file
@ -0,0 +1,61 @@
|
||||
%global gem_name pdf-core
|
||||
Name: rubygem-%{gem_name}
|
||||
Version: 0.8.1
|
||||
Release: 1
|
||||
Summary: PDF::Core is used by Prawn to render PDF documents
|
||||
License: Ruby
|
||||
URL: https://github.com/prawnpdf/pdf-core
|
||||
Source0: https://rubygems.org/gems/pdf-core-%{version}.gem
|
||||
Source1: %{gem_name}-%{version}-specs.tgz
|
||||
BuildRequires: ruby(release) rubygems-devel >= 1.3.6 ruby >= 1.9.3 rubygem(pdf-reader) => 1.2
|
||||
BuildRequires: rubygem(pdf-inspector) => 1.1.0 rubygem(rspec)
|
||||
BuildArch: noarch
|
||||
%description
|
||||
PDF::Core is used by Prawn to render PDF documents.
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
%description doc
|
||||
Documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{gem_name}-%{version} -b1
|
||||
|
||||
%build
|
||||
gem build ../%{gem_name}-%{version}.gemspec
|
||||
%gem_install
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{gem_dir}
|
||||
cp -pa .%{gem_dir}/* \
|
||||
%{buildroot}%{gem_dir}/
|
||||
|
||||
%check
|
||||
pushd .%{gem_instdir}
|
||||
cp -r %{_builddir}/spec .
|
||||
sed -i -e "s/require 'bundler'//" spec/spec_helper.rb
|
||||
sed -i -e 's/Bundler.setup//' spec/spec_helper.rb
|
||||
rspec spec
|
||||
popd
|
||||
|
||||
%files
|
||||
%dir %{gem_instdir}
|
||||
%{gem_libdir}
|
||||
%exclude %{gem_cache}
|
||||
%{gem_spec}
|
||||
%license %{gem_instdir}/LICENSE
|
||||
%doc %{gem_instdir}/COPYING
|
||||
%doc %{gem_instdir}/GPLv2
|
||||
%doc %{gem_instdir}/GPLv3
|
||||
|
||||
%files doc
|
||||
%doc %{gem_docdir}
|
||||
%{gem_instdir}/Gemfile
|
||||
%{gem_instdir}/Rakefile
|
||||
%{gem_instdir}/%{gem_name}.gemspec
|
||||
|
||||
%changelog
|
||||
* Wed Aug 5 2020 wangchong <wangchong56@huawei.com> - 0.8.1-1
|
||||
- package init
|
||||
4
rubygem-pdf-core.yaml
Normal file
4
rubygem-pdf-core.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version-control: github
|
||||
src_repo: prawnpdf/pdf-core
|
||||
tag_prefix: "^"
|
||||
seperator: "."
|
||||
Loading…
x
Reference in New Issue
Block a user