15
0

Accepting request 603506 from devel:languages:python:misc

Python library for colorspace conversions

OBS-URL: https://build.opensuse.org/request/show/603506
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-colorspacious?expand=0&rev=1
This commit is contained in:
Todd R
2018-05-03 06:35:55 +00:00
committed by Git OBS Bridge
commit ac50d80a50
5 changed files with 104 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

3
colorspacious-1.1.0.zip Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7fd83cdb22224335c51c1f85e54a55f18568660452680d21f4b306d4454aec56
size 698745

View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Wed Jan 17 17:16:23 UTC 2018 - toddrme2178@gmail.com
- Initial version

73
python-colorspacious.spec Normal file
View File

@@ -0,0 +1,73 @@
#
# spec file for package python-colorspacious
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-colorspacious
Version: 1.1.0
Release: 0
License: MIT
Summary: Python library for doing colorspace conversions
Url: https://github.com/njsmith/colorspacious
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/c/colorspacious/colorspacious-%{version}.zip
BuildRequires: %{python_module devel}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: unzip
%if %{with test}
BuildRequires: %{python_module nose}
%endif
Requires: python-numpy
BuildArch: noarch
%python_subpackages
%description
Colorspacious is a powerful, accurate, and easy-to-use library for
performing colorspace conversions.
In addition to the most common standard colorspaces (sRGB, XYZ, xyY,
CIELab, CIELCh), we also include: color vision deficiency ("color
blindness") simulations using the approach of Machado et al (2009); a
complete implementation of `CIECAM02
<https://en.wikipedia.org/wiki/CIECAM02>`_; and the perceptually
uniform CAM02-UCS / CAM02-LCD / CAM02-SCD spaces proposed by Luo et al
(2006).
%prep
%setup -q -n colorspacious-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
%python_expand nosetests-%{$python_bin_suffix}
%endif
%files %{python_files}
%doc LICENSE.txt README.rst
%{python_sitelib}/*
%changelog