From 04f860f093fc4e04107eee70faed9b1d5723cc4b Mon Sep 17 00:00:00 2001 From: Miroslav Suchý Date: Aug 27 2013 12:35:18 +0000 Subject: Update rubygem-paint to 0.8.6-3 Resolves: #998459 - move README and LICENSE to main package Resolves: #998459 - remove excessive cp Resolves: #998459 - use virtual requires Resolves: #998459 - remove ruby mri requires --- diff --git a/.gitignore b/.gitignore index e69de29..52353bf 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/paint-0.8.6.gem diff --git a/rubygem-paint.spec b/rubygem-paint.spec new file mode 100644 index 0000000..996e700 --- /dev/null +++ b/rubygem-paint.spec @@ -0,0 +1,90 @@ +%global gem_name paint + +Name: rubygem-%{gem_name} +Version: 0.8.6 +Release: 3%{?dist} +Summary: Terminal painter +Group: Development/Languages +License: MIT +URL: https://github.com/janlelis/paint +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +Requires: ruby(release) +Requires: ruby(rubygems) +BuildRequires: ruby(release) +BuildRequires: rubygems-devel +BuildArch: noarch +Provides: rubygem(%{gem_name}) = %{version} +#tests +BuildRequires: rubygem(rspec) + +%description +Paint manages terminal colors and effects for you. It combines the strengths +of term-ansicolor, rainbow and other similar projects into a simple to use, +however still flexible terminal colorization gem with no core extensions by +default. + + +%package doc +Summary: Documentation for %{name} +Group: Documentation +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 +# Create the gem as gem install only works on a gem file +gem build %{gem_name}.gemspec + +# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir +# by default, so that we can move it into the buildroot in %%install +%gem_install + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -pa .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + +%check +pushd ./%{gem_instdir} +rspec spec +popd + +%files +%dir %{gem_instdir} +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} +%exclude %{gem_instdir}/.gemtest +%doc %{gem_instdir}/README.rdoc +%doc %{gem_instdir}/LICENSE.txt + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/CHANGELOG.rdoc +%{gem_instdir}/Rakefile +%{gem_instdir}/%{gem_name}.gemspec +%{gem_instdir}/spec + +%changelog +* Mon Aug 26 2013 Miroslav Suchý 0.8.6-3 +- 998459 - move README and LICENSE to main package +- 998459 - remove excessive cp +- 998459 - use virtual requires +- 998459 - remove ruby mri requires + +* Mon Aug 19 2013 Miroslav Suchý 0.8.6-2 +- enable tests +- fix files section + +* Mon Aug 19 2013 Miroslav Suchý 0.8.6-1 +- initial package + diff --git a/sources b/sources index e69de29..d8f64ee 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +cea8a644dbdba89bedc975f019aaa33b paint-0.8.6.gem