commit dee57717c06498483eb0b420c77479fd1f14be0cf7b818564e0dcb6e5869f22c Author: Dirk Mueller Date: Fri Jul 14 17:28:10 2017 +0000 Accepting request 510310 from home:alois:branches:devel:languages:python OBS-URL: https://build.opensuse.org/request/show/510310 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-colour?expand=0&rev=1 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/colour-0.1.4.tar.gz b/colour-0.1.4.tar.gz new file mode 100644 index 0000000..5db4522 --- /dev/null +++ b/colour-0.1.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1357f37ddfd0d7c0e770f0772901635b3a38025a2480a44280510faca30fb509 +size 24821 diff --git a/python-colour.changes b/python-colour.changes new file mode 100644 index 0000000..1a62625 --- /dev/null +++ b/python-colour.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Jul 7 12:47:47 UTC 2017 - aloisio@gmx.com + +- Initial package (0.1.4) diff --git a/python-colour.spec b/python-colour.spec new file mode 100644 index 0000000..e31b554 --- /dev/null +++ b/python-colour.spec @@ -0,0 +1,69 @@ +# +# spec file for package python-colour +# +# Copyright (c) 2017 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-%{**}} +Name: python-colour +Version: 0.1.4 +Release: 0 +Summary: Converts between common color representations (RGB, HSL, web...) +License: BSD-3-Clause +Group: Development/Languages/Python +Url: https://github.com/vaab/colour +Source0: https://files.pythonhosted.org/packages/source/c/colour/colour-%{version}.tar.gz +BuildRequires: %{python_module d2to1} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +%python_subpackages + +%description +Python module to convert between color representations: + * RGB, HSL, 6-digit hex, 3-digit hex, human color + * One object (Color) or several single purpose functions + (rgb2hex, hsl2rgb, ...) + * Web format which uses the smallest representation between + 6-digit (e.g. #fa3b2c), 3-digit (e.g. #fbb), fully spelled + color (e.g. white), following W3C color naming for compatible + CSS or HTML color specifications + * Color scale generation choosing N color gradients + * It's possible to pick colors to identify objects of the + application being developed + +%prep +%setup -q -n colour-%{version} +rm -rf colour.egg-info + +%build +%python_build + +%install +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} + +%check +%python_exec %{_bindir}/nosetests + +%files %{python_files} +%defattr(-,root,root,-) +%doc CHANGELOG.rst LICENSE README.rst +%{python_sitelib}/* + +%changelog