15
0
forked from pool/python-colour

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
This commit is contained in:
2017-07-14 17:28:10 +00:00
committed by Git OBS Bridge
commit dee57717c0
5 changed files with 100 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
colour-0.1.4.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1357f37ddfd0d7c0e770f0772901635b3a38025a2480a44280510faca30fb509
size 24821

4
python-colour.changes Normal file
View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Fri Jul 7 12:47:47 UTC 2017 - aloisio@gmx.com
- Initial package (0.1.4)

69
python-colour.spec Normal file
View File

@@ -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