# Generated from color-1.8.gem by gem2rpm -*- rpm-spec -*- %global gem_name color Name: rubygem-%{gem_name} Version: 1.8 Release: 1%{?dist} Summary: Color is a Ruby library to provide basic RGB, CMYK, HSL, and other colourspace manipulation support to applications that require it License: MIT URL: https://github.com/halostatue/color Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby # BuildRequires: rubygem(minitest) >= 5.8 # BuildRequires: rubygem(minitest) < 6 # BuildRequires: rubygem(hoe-doofus) >= 1.0 # BuildRequires: rubygem(hoe-doofus) < 2 # BuildRequires: rubygem(hoe-gemspec2) >= 1.1 # BuildRequires: rubygem(hoe-gemspec2) < 2 # BuildRequires: rubygem(hoe-git) >= 1.6 # BuildRequires: rubygem(hoe-git) < 2 # BuildRequires: rubygem(hoe-travis) >= 1.2 # BuildRequires: rubygem(hoe-travis) < 2 # BuildRequires: rubygem(minitest-around) >= 0.3 # BuildRequires: rubygem(minitest-around) < 1 # BuildRequires: rubygem(minitest-autotest) >= 1.0 # BuildRequires: rubygem(minitest-autotest) < 2 # BuildRequires: rubygem(minitest-bisect) >= 1.2 # BuildRequires: rubygem(minitest-bisect) < 2 # BuildRequires: rubygem(minitest-focus) >= 1.1 # BuildRequires: rubygem(minitest-focus) < 2 # BuildRequires: rubygem(minitest-moar) # BuildRequires: rubygem(minitest-moar) < 1 # BuildRequires: rubygem(minitest-pretty_diff) >= 0.1 # BuildRequires: rubygem(minitest-pretty_diff) < 1 # BuildRequires: rubygem(simplecov) >= 0.7 # BuildRequires: rubygem(simplecov) < 1 # BuildRequires: rubygem(hoe) >= 3.14 # BuildRequires: rubygem(hoe) < 4 BuildArch: noarch %description Color is a Ruby library to provide basic RGB, CMYK, HSL, and other colourspace manipulation support to applications that require it. It also provides 152 named RGB colours (184 with spelling variations) that are commonly supported in HTML, SVG, and X11 applications. A technique for generating monochromatic contrasting palettes is also included. The Color library performs purely mathematical manipulation of the colours based on colour theory without reference to colour profiles (such as sRGB or Adobe RGB). For most purposes, when working with RGB and HSL colour spaces, this won't matter. Absolute colour spaces (like CIE L*a*b* and XYZ) and cannot be reliably converted to relative colour spaces (like RGB) without colour profiles. Color 1.8 adds an alpha parameter to all #css_rgba calls, fixes a bug exposed by new constant lookup semantics in Ruby 2, and ensures that Color.equivalent? can only be called on Color instances. Barring bugs introduced in this release, this (really) is the last version of color that supports Ruby 1.8, so make sure that your gem specification is set properly (to ~> 1.8) if that matters for your application. This version will no longer be supported one year after the release of color 2.0. %package doc Summary: Documentation for %{name} Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} %build # Create the gem as gem install only works on a gem file gem build ../%{gem_name}-%{version}.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 -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check pushd .%{gem_instdir} # ruby -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' popd %files %dir %{gem_instdir} %{gem_instdir}/.autotest %{gem_instdir}/.coveralls.yml %exclude %{gem_instdir}/.gemtest %exclude %{gem_instdir}/.hoerc %{gem_instdir}/.minitest.rb %exclude %{gem_instdir}/.travis.yml %license %{gem_instdir}/Licence.rdoc %{gem_instdir}/Manifest.txt %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %doc %{gem_instdir}/Code-of-Conduct.rdoc %doc %{gem_instdir}/Contributing.rdoc %{gem_instdir}/Gemfile %doc %{gem_instdir}/History.rdoc %doc %{gem_instdir}/README.rdoc %{gem_instdir}/Rakefile %{gem_instdir}/test %changelog * Mon Feb 07 2022 mockbuilder - 1.8-1 - Initial package