commit
4cfe139068
49
rubygem-ttfunk.spec
Normal file
49
rubygem-ttfunk.spec
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
%global gem_name ttfunk
|
||||||
|
Summary: Font Metrics Parser for Prawn
|
||||||
|
Name: rubygem-%{gem_name}
|
||||||
|
Version: 1.5.1
|
||||||
|
Release: 1
|
||||||
|
License: GPLv2 or GPLv3
|
||||||
|
URL: https://github.com/prawnpdf/ttfunk
|
||||||
|
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
|
||||||
|
Requires: rubygems ruby(release)
|
||||||
|
BuildRequires: rubygems-devel rubygems
|
||||||
|
BuildArch: noarch
|
||||||
|
Provides: rubygem(%{gem_name}) = %{version}
|
||||||
|
%description
|
||||||
|
TTFunk is a TrueType font parser written in pure ruby.
|
||||||
|
|
||||||
|
%package doc
|
||||||
|
BuildArch: noarch
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
Summary: Documentation for rubygem-%{gem_name}
|
||||||
|
%description doc
|
||||||
|
This package contains documentation for rubygem-%{gem_name}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{gem_name}-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
gem build ../%{gem_name}-%{version}.gemspec
|
||||||
|
%gem_install
|
||||||
|
rm -rf ./%{gem_dir}/gems/%{gem_name}-%{version}/.yardoc
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p %{buildroot}%{gem_dir}
|
||||||
|
cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/
|
||||||
|
mv %{buildroot}%{gem_instdir}/{CHANGELOG.md,COPYING,GPLv2,GPLv3,LICENSE,README.md} ./
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license COPYING GPLv2 GPLv3 LICENSE
|
||||||
|
%dir %{gem_instdir}
|
||||||
|
%{gem_instdir}/lib
|
||||||
|
%exclude %{gem_cache}
|
||||||
|
%{gem_spec}
|
||||||
|
|
||||||
|
%files doc
|
||||||
|
%doc README.md CHANGELOG.md
|
||||||
|
%doc %{gem_docdir}
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Jul 28 2020 zhanghua <zhanghua40@huawei.com> - 1.5.1-1
|
||||||
|
- package init
|
||||||
4
rubygem-ttfunk.yaml
Normal file
4
rubygem-ttfunk.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: prawnpdf/ttfunk
|
||||||
|
tag_pattern: "^"
|
||||||
|
seperator: "."
|
||||||
BIN
ttfunk-1.5.1.gem
Normal file
BIN
ttfunk-1.5.1.gem
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user