!1 package init

Merge pull request !1 from zhanghua/master
This commit is contained in:
openeuler-ci-bot 2020-08-24 09:34:03 +08:00 committed by Gitee
commit 4cfe139068
3 changed files with 53 additions and 0 deletions

49
rubygem-ttfunk.spec Normal file
View 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
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: prawnpdf/ttfunk
tag_pattern: "^"
seperator: "."

BIN
ttfunk-1.5.1.gem Normal file

Binary file not shown.