[rubygem-color] Initial package

Bohuslav Kabrda bkabrda at fedoraproject.org
Fri Nov 16 12:43:45 UTC 2012


commit 394ab8e5e9aabb52b062461f9e09c263a875d51d
Author: Slavek Kabrda <bkabrda at redhat.com>
Date:   Fri Nov 16 13:48:37 2012 +0100

    Initial package

 .gitignore         |    1 +
 rubygem-color.spec |   81 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources            |    1 +
 3 files changed, 83 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..83cc4fb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/color-1.4.1.gem
diff --git a/rubygem-color.spec b/rubygem-color.spec
new file mode 100644
index 0000000..2e05778
--- /dev/null
+++ b/rubygem-color.spec
@@ -0,0 +1,81 @@
+# Generated from color-1.4.1.gem by gem2rpm -*- rpm-spec -*-
+%global gem_name color
+%global rubyabi 1.9.1
+
+Summary: Colour management with Ruby
+Name: rubygem-%{gem_name}
+Version: 1.4.1
+Release: 1%{?dist}
+Group: Development/Languages
+License: MIT
+URL: http://color.rubyforge.org/
+Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
+Requires: ruby(abi) = %{rubyabi}
+Requires: ruby(rubygems)
+BuildRequires: ruby(abi) = %{rubyabi}
+BuildRequires: rubygems-devel
+BuildRequires: ruby
+BuildRequires: rubygem(minitest)
+BuildArch: noarch
+Provides: rubygem(%{gem_name}) = %{version}
+
+%description
+The capabilities of the Color library are limited to pure 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 the
+RGB and HSL colours, this won't matter. However, some colour models (like CIE
+L*a*b*) are not supported because Color does not yet support colour profiles,
+giving no meaningful way to convert colours in absolute colour spaces (like
+L*a*b*, XYZ) to non-absolute colour spaces (like RGB).
+
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}
+
+%prep
+%setup -q -c -T
+mkdir -p .%{gem_dir}
+gem install --local --install-dir .%{gem_dir} \
+            --force %{SOURCE0}
+
+%build
+
+%install
+mkdir -p %{buildroot}%{gem_dir}
+cp -a .%{gem_dir}/* \
+        %{buildroot}%{gem_dir}/
+
+# remove shebangs from non-executable files, so that rpmlint doesn't complain
+sed -i '/#![ ]*\/usr\/bin\/env/d' %{buildroot}/%{gem_instdir}/{test/*,Rakefile}
+
+%check
+pushd .%{gem_instdir}
+testrb -Ilib test/*
+popd
+
+%files
+%dir %{gem_instdir}
+%doc %{gem_instdir}/Licence.txt
+%{gem_libdir}
+%exclude %{gem_cache}
+%{gem_spec}
+
+%files doc
+%doc %{gem_docdir}
+%doc %{gem_instdir}/History.txt
+%doc %{gem_instdir}/Install.txt
+%doc %{gem_instdir}/Manifest.txt
+%doc %{gem_instdir}/README.txt
+%{gem_instdir}/Rakefile
+%{gem_instdir}/setup.rb
+%{gem_instdir}/test
+
+%changelog
+* Tue Nov 13 2012 Bohuslav Kabrda <bkabrda at redhat.com> - 1.4.1-1
+- Initial package
diff --git a/sources b/sources
index e69de29..aa1cd69 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b6226aae49f18104ba6c5f3100bfbf95  color-1.4.1.gem


More information about the scm-commits mailing list