Revision 7587,
1.5 KB
checked in by iwaim, 11 years ago
(diff) |
new: python-webcolors
|
Rev | Line | |
---|
[7587] | 1 | %define ver 1.4 |
---|
| 2 | %define rel 1 |
---|
| 3 | |
---|
| 4 | Summary: a Python library for working with color names and color value formats defined by the HTML etc. |
---|
| 5 | Name: python-webcolors |
---|
| 6 | Version: %{ver} |
---|
| 7 | Release: %{rel}%{?_dist_release} |
---|
| 8 | License: MIT License |
---|
| 9 | Group: Development/Libraries |
---|
| 10 | URL: https://pypi.python.org/pypi/webcolors |
---|
| 11 | Source0:https://pypi.python.org/packages/source/w/webcolors/webcolors-%{version}.tar.gz |
---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
---|
| 13 | BuildArch: noarch |
---|
| 14 | BuildRequires: python-devel |
---|
| 15 | Requires: python(abi) = %pyver |
---|
| 16 | |
---|
| 17 | Vendor: Project Vine |
---|
| 18 | Distribution: Vine Linux |
---|
| 19 | Packager: iwaim |
---|
| 20 | |
---|
| 21 | %description |
---|
| 22 | 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. |
---|
| 23 | |
---|
| 24 | 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): |
---|
| 25 | |
---|
| 26 | - Specification-defined color names |
---|
| 27 | - Six-digit hexadecimal |
---|
| 28 | - Three-digit hexadecimal |
---|
| 29 | - Integer rgb() triplet |
---|
| 30 | - Percentage rgb() triplet |
---|
| 31 | |
---|
| 32 | %prep |
---|
| 33 | %setup -q -n webcolors-%{ver} |
---|
| 34 | |
---|
| 35 | %build |
---|
| 36 | %__python setup.py build |
---|
| 37 | |
---|
| 38 | %install |
---|
| 39 | %__rm -rf %{buildroot} |
---|
| 40 | %__python setup.py install --skip-build --root %{buildroot} |
---|
| 41 | |
---|
| 42 | %clean |
---|
| 43 | %__rm -rf %{buildroot} |
---|
| 44 | |
---|
| 45 | %files |
---|
| 46 | %defattr(-,root,root,-) |
---|
| 47 | %doc LICENSE README |
---|
| 48 | %{python_sitelib}/webcolors-%{ver}-py*.egg-info |
---|
| 49 | %{python_sitelib}/webcolors.py |
---|
| 50 | %{python_sitelib}/webcolors.pyc |
---|
| 51 | |
---|
| 52 | %changelog |
---|
| 53 | * Sun Mar 3 2013 IWAI, Masaharu <iwai@alib.jp> 1.4-1 |
---|
| 54 | - initial build for Vine Linux |
---|
Note: See
TracBrowser
for help on using the repository browser.