%define module webcolors
-Summary: 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
-Name: python-%module
+Summary: Library for working with sRGB color specifications as used in HTML and CSS
+Name: python-%{module}
Version: 1.3.1
-Release: 0.2
+Release: 1
License: BSD License
Group: Development/Languages
URL: http://www.bitbucket.org/ubernostrum/webcolors/overview/
%{__sed} -i -e 's/^use_setuptools()/#use_setuptools()/' setup.py
%build
-%{__python} setup.py build
+%py_build
%install
rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
- --optimize=2 \
- --skip-build \
+%py_install \
--root $RPM_BUILD_ROOT
%py_postclean