diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-10 17:10:21 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-10 17:10:21 +0000 |
commit | ffd8f008cf92dbb3d3569393baab85134bd32d6f (patch) | |
tree | 88bd125745bfd0ed373a88eebd7a8a6862601a77 | |
parent | 7f4feddbd38e2962983ba31a84e229cd22e2a5fd (diff) |
automatic import of rubygem-coloropeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | rubygem-color.spec | 115 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 117 insertions, 0 deletions
@@ -0,0 +1 @@ +/color-1.8.gem diff --git a/rubygem-color.spec b/rubygem-color.spec new file mode 100644 index 0000000..4016b6c --- /dev/null +++ b/rubygem-color.spec @@ -0,0 +1,115 @@ +%global _empty_manifest_terminate_build 0 +%global gem_name color +Name: rubygem-color +Version: 1.8 +Release: 1 +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/color-1.8.gem +BuildArch: noarch + +BuildRequires: ruby +BuildRequires: ruby-devel +BuildRequires: rubygems +BuildRequires: rubygems-devel +BuildRequires: rsync +Provides: rubygem-color + +%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 <tt>#css_rgba</tt> calls, fixes a bug +exposed by new constant lookup semantics in Ruby 2, and ensures that +<tt>Color.equivalent?</tt> 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 <tt>~> 1.8</tt>) if that matters for your application. This +version will no longer be supported one year after the release of color 2.0. + +%package help +Summary: Development documents and examples for color +Provides: rubygem-color-doc +BuildArch: noarch + +%description help +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 <tt>#css_rgba</tt> calls, fixes a bug +exposed by new constant lookup semantics in Ruby 2, and ensures that +<tt>Color.equivalent?</tt> 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 <tt>~> 1.8</tt>) if that matters for your application. This +version will no longer be supported one year after the release of color 2.0. + +%prep +%autosetup -n color-1.8 +gem spec %{SOURCE0} -l --ruby > color.gemspec + +%build +gem build color.gemspec +%gem_install + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/ +rsync -a --exclude=".*" .%{gem_dir}/* %{buildroot}%{gem_dir}/ +if [ -d .%{_bindir} ]; then + mkdir -p %{buildroot}%{_bindir} + cp -a .%{_bindir}/* %{buildroot}%{_bindir}/ +fi +if [ -d ext ]; then + mkdir -p %{buildroot}%{gem_extdir_mri}/%{gem_name} + if [ -d .%{gem_extdir_mri}/%{gem_name} ]; then + cp -a .%{gem_extdir_mri}/%{gem_name}/*.so %{buildroot}%{gem_extdir_mri}/%{gem_name} + else + cp -a .%{gem_extdir_mri}/*.so %{buildroot}%{gem_extdir_mri}/%{gem_name} +fi + cp -a .%{gem_extdir_mri}/gem.build_complete %{buildroot}%{gem_extdir_mri}/ + rm -rf %{buildroot}%{gem_instdir}/ext/ +fi +pushd %{buildroot} +touch filelist.lst +if [ -d %{buildroot}%{_bindir} ]; then + find .%{_bindir} -type f -printf "/%h/%f\n" >> filelist.lst +fi +popd +mv %{buildroot}/filelist.lst . + +%files -n rubygem-color -f filelist.lst +%dir %{gem_instdir} +%{gem_instdir}/* +%exclude %{gem_cache} +%{gem_spec} + +%files help +%{gem_docdir}/* + +%changelog +* Fri Mar 10 2023 Ruby_Bot <Ruby_Bot@openeuler.org> +- Package Spec generated @@ -0,0 +1 @@ +7bb7e08d6790ec5eae7ad7a2fe29b371 color-1.8.gem |