diff --git a/ansi-1.5.0.gem b/ansi-1.5.0.gem new file mode 100644 index 0000000..8c0e145 Binary files /dev/null and b/ansi-1.5.0.gem differ diff --git a/rubygem-ansi.spec b/rubygem-ansi.spec new file mode 100644 index 0000000..7860c23 --- /dev/null +++ b/rubygem-ansi.spec @@ -0,0 +1,74 @@ +%global gem_name ansi +%global enable_checks 0 +Name: rubygem-%{gem_name} +Version: 1.5.0 +Release: 1 +Summary: ANSI at your fingertips! +License: BSD +URL: http://rubyworks.github.com/ansi +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +%if 0%{?el6} +Requires: ruby(abi) = 1.8 rubygems +%endif +BuildRequires: rubygems-devel ruby +%if 0%{?enable_checks} +BuildRequires: rubygem(detroit) rubygem(qed) rubygem(lemon) +%endif +BuildArch: noarch +%description +The ANSI project is a superlative collection of ANSI escape code related +libraries enabling ANSI colorization and styling of +console output. Byte for byte ANSI is the best ANSI code +library available for the Ruby programming +language. + +%package doc +Summary: Documentation for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch +%description doc +Documentation for %{name}. + +%prep +gem unpack %{SOURCE0} +%setup -q -D -T -n %{gem_name}-%{version} +gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec + +%build +gem build %{gem_name}.gemspec +%gem_install + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + +%check +%if 0%{?enable_checks} +pushd .%{gem_instdir} +testrb -Ilib test +popd +%endif + +%files +%dir %{gem_instdir} +%exclude %{gem_instdir}/.yardopts +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} +%doc %{gem_instdir}/LICENSE.txt +%exclude %{gem_instdir}/.index + +%files doc +%doc %{gem_docdir} +%{gem_instdir}/.index +%doc %{gem_instdir}/HISTORY.md +%doc %{gem_instdir}/DEMO.md +%doc %{gem_instdir}/README.md +%doc %{gem_instdir}/NOTICE.md +%doc %{gem_instdir}/demo +%doc %{gem_instdir}/test + +%changelog +* Sat Jul 25 2020 wangyue - 1.5.0-1 +- package init diff --git a/rubygem-ansi.yaml b/rubygem-ansi.yaml new file mode 100644 index 0000000..9c87267 --- /dev/null +++ b/rubygem-ansi.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/rubyworks/ansi +version_control: github +src_repo: rubyworks/ansi +tag_prefix: "^" +seperator: "."