source: projects/specs/trunk/p/python-webcolors/python-webcolors-vl.spec @ 7587

Revision 7587, 1.5 KB checked in by iwaim, 11 years ago (diff)

new: python-webcolors

Line 
1%define ver 1.4
2%define rel 1
3
4Summary: a Python library for working with color names and color value formats defined by the HTML etc.
5Name: python-webcolors
6Version: %{ver}
7Release: %{rel}%{?_dist_release}
8License: MIT License
9Group: Development/Libraries
10URL: https://pypi.python.org/pypi/webcolors
11Source0:https://pypi.python.org/packages/source/w/webcolors/webcolors-%{version}.tar.gz
12BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
13BuildArch: noarch
14BuildRequires: python-devel
15Requires: python(abi) = %pyver
16
17Vendor: Project Vine
18Distribution: Vine Linux
19Packager: iwaim
20
21%description
22A 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
24Support 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.