From ac50d80a50803531692917e4de50ffb4d7956ef071e71c4f4fd1cc06ad6ea7d4 Mon Sep 17 00:00:00 2001 From: Todd R Date: Thu, 3 May 2018 06:35:55 +0000 Subject: [PATCH] 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 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + colorspacious-1.1.0.zip | 3 ++ python-colorspacious.changes | 4 ++ python-colorspacious.spec | 73 ++++++++++++++++++++++++++++++++++++ 5 files changed, 104 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 colorspacious-1.1.0.zip create mode 100644 python-colorspacious.changes create mode 100644 python-colorspacious.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/colorspacious-1.1.0.zip b/colorspacious-1.1.0.zip new file mode 100644 index 0000000..b3b65cf --- /dev/null +++ b/colorspacious-1.1.0.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7fd83cdb22224335c51c1f85e54a55f18568660452680d21f4b306d4454aec56 +size 698745 diff --git a/python-colorspacious.changes b/python-colorspacious.changes new file mode 100644 index 0000000..2e2fe0a --- /dev/null +++ b/python-colorspacious.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Jan 17 17:16:23 UTC 2018 - toddrme2178@gmail.com + +- Initial version diff --git a/python-colorspacious.spec b/python-colorspacious.spec new file mode 100644 index 0000000..4bc06ca --- /dev/null +++ b/python-colorspacious.spec @@ -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 +`_; 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