python-webcolors-vl.spec 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. Summary: a Python library for working with color names and color value formats defined by the HTML etc.
  2. Name: python-webcolors
  3. Version: 1.10
  4. Release: 1%{?_dist_release}
  5. Group: Development/Libraries
  6. License: MIT License
  7. URL: https://pypi.python.org/pypi/webcolors
  8. Source0: https://pypi.python.org/packages/source/w/webcolors/webcolors-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
  10. BuildArch: noarch
  11. BuildRequires: python-devel
  12. BuildRequires: python-setuptools
  13. BuildRequires: python-rpm-macros
  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. %package -n python3-webcolors
  27. Summary: a Python library for working with color names and color value formats defined by the HTML etc.
  28. BuildRequires: python3-devel
  29. BuildRequires: python3-setuptools
  30. BuildRequires: python3-rpm-macros
  31. Requires: python3
  32. %description -n python3-webcolors
  33. 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.
  34. 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):
  35. - Specification-defined color names
  36. - Six-digit hexadecimal
  37. - Three-digit hexadecimal
  38. - Integer rgb() triplet
  39. - Percentage rgb() triplet
  40. %prep
  41. %setup -q -n webcolors-%{version}
  42. %build
  43. %py_build
  44. %py3_build
  45. %install
  46. %__rm -rf %{buildroot}
  47. %py_install
  48. %py3_install
  49. %clean
  50. %__rm -rf %{buildroot}
  51. %files
  52. %defattr(-,root,root,-)
  53. %license LICENSE
  54. %doc README
  55. %{python_sitelib}/webcolors*
  56. %files -n python3-webcolors
  57. %defattr(-,root,root,-)
  58. %license LICENSE
  59. %doc README
  60. %{python3_sitelib}/webcolors*
  61. %{python3_sitelib}/__pycache__/webcolors*
  62. %changelog
  63. * Thu Nov 21 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.10-1
  64. - new upstream release.
  65. - added python3 support.
  66. * Sun Mar 3 2013 IWAI, Masaharu <iwai@alib.jp> 1.4-1
  67. - initial build for Vine Linux