python-webcolors-vl.spec 1.5 KB

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