[7587] | 1 | Summary: a Python library for working with color names and color value formats defined by the HTML etc. |
---|
| 2 | Name: python-webcolors |
---|
[12316] | 3 | Version: 1.10 |
---|
| 4 | Release: 1%{?_dist_release} |
---|
| 5 | Group: Development/Libraries |
---|
[7587] | 6 | License: MIT License |
---|
| 7 | URL: https://pypi.python.org/pypi/webcolors |
---|
[12316] | 8 | Source0: https://pypi.python.org/packages/source/w/webcolors/webcolors-%{version}.tar.gz |
---|
[7587] | 9 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
---|
| 10 | BuildArch: noarch |
---|
| 11 | BuildRequires: python-devel |
---|
[12316] | 12 | BuildRequires: python-setuptools |
---|
| 13 | BuildRequires: python-rpm-macros |
---|
[7587] | 14 | Requires: python(abi) = %pyver |
---|
| 15 | |
---|
| 16 | Vendor: Project Vine |
---|
| 17 | Distribution: Vine Linux |
---|
| 18 | Packager: iwaim |
---|
| 19 | |
---|
| 20 | %description |
---|
| 21 | A library for working with color names and color value formats defined by the HTML and CSS specifications for use in documents on the Web. |
---|
| 22 | |
---|
| 23 | Support is included for the following formats (RGB colorspace only; conversion to/from HSL can be handled by the colorsys module in the Python standard library): |
---|
| 24 | |
---|
| 25 | - Specification-defined color names |
---|
| 26 | - Six-digit hexadecimal |
---|
| 27 | - Three-digit hexadecimal |
---|
| 28 | - Integer rgb() triplet |
---|
| 29 | - Percentage rgb() triplet |
---|
| 30 | |
---|
[12316] | 31 | |
---|
| 32 | %package -n python3-webcolors |
---|
| 33 | Summary: a Python library for working with color names and color value formats defined by the HTML etc. |
---|
| 34 | BuildRequires: python3-devel |
---|
| 35 | BuildRequires: python3-setuptools |
---|
| 36 | BuildRequires: python3-rpm-macros |
---|
| 37 | Requires: python3 |
---|
| 38 | |
---|
| 39 | %description -n python3-webcolors |
---|
| 40 | A library for working with color names and color value formats defined by the HTML and CSS specifications for use in documents on the Web. |
---|
| 41 | |
---|
| 42 | Support is included for the following formats (RGB colorspace only; conversion to/from HSL can be handled by the colorsys module in the Python standard library): |
---|
| 43 | |
---|
| 44 | - Specification-defined color names |
---|
| 45 | - Six-digit hexadecimal |
---|
| 46 | - Three-digit hexadecimal |
---|
| 47 | - Integer rgb() triplet |
---|
| 48 | - Percentage rgb() triplet |
---|
| 49 | |
---|
| 50 | |
---|
[7587] | 51 | %prep |
---|
[12316] | 52 | %setup -q -n webcolors-%{version} |
---|
[7587] | 53 | |
---|
| 54 | %build |
---|
[12316] | 55 | %py_build |
---|
| 56 | %py3_build |
---|
[7587] | 57 | |
---|
| 58 | %install |
---|
| 59 | %__rm -rf %{buildroot} |
---|
[12316] | 60 | %py_install |
---|
| 61 | %py3_install |
---|
[7587] | 62 | |
---|
| 63 | %clean |
---|
| 64 | %__rm -rf %{buildroot} |
---|
| 65 | |
---|
| 66 | %files |
---|
| 67 | %defattr(-,root,root,-) |
---|
[12316] | 68 | %license LICENSE |
---|
| 69 | %doc README |
---|
| 70 | %{python_sitelib}/webcolors* |
---|
[7587] | 71 | |
---|
[12316] | 72 | %files -n python3-webcolors |
---|
| 73 | %defattr(-,root,root,-) |
---|
| 74 | %license LICENSE |
---|
| 75 | %doc README |
---|
| 76 | %{python3_sitelib}/webcolors* |
---|
| 77 | %{python3_sitelib}/__pycache__/webcolors* |
---|
| 78 | |
---|
[7587] | 79 | %changelog |
---|
[12316] | 80 | * Thu Nov 21 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.10-1 |
---|
| 81 | - new upstream release. |
---|
| 82 | - added python3 support. |
---|
| 83 | |
---|
[7587] | 84 | * Sun Mar 3 2013 IWAI, Masaharu <iwai@alib.jp> 1.4-1 |
---|
| 85 | - initial build for Vine Linux |
---|