]> git.pld-linux.org Git - packages/python-webcolors.git/blobdiff - python-webcolors.spec
- release 2 (by relup.sh)
[packages/python-webcolors.git] / python-webcolors.spec
index 3417dd0c857dfaa9fc1b1188d9e8846321e87bfc..e1962cc9f6195e65687e4d08469719a2d4f1aca9 100644 (file)
@@ -1,24 +1,25 @@
 %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.1
+Release:       2
 License:       BSD License
 Group:         Development/Languages
 URL:           http://www.bitbucket.org/ubernostrum/webcolors/overview/
 Source0:       http://bitbucket.org/ubernostrum/%{module}/downloads/%{module}-%{version}.tar.gz
 # Source0-md5: aeb4f33be6c26ec7f76a78c2d88cfb0c
-BuildRequires: python-funcparserlib >= 0.3.4
 BuildRequires: rpmbuild(macros) >= 1.219
 BuildRequires: sed >= 4.0
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-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.
-
-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):
+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.
 
+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):
 - Specification-defined color names
 - Six-digit hexadecimal
 - Three-digit hexadecimal
@@ -31,21 +32,21 @@ Support is included for the following formats (RGB colorspace only; conversion t
 %{__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
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%{py_sitescriptdir}/%{module}.*
+%{py_sitescriptdir}/%{module}*.py[co]
 %if "%{py_ver}" > "2.4"
 %{py_sitescriptdir}/%{module}-%{version}-*.egg-info
 %endif
This page took 0.036256 seconds and 4 git commands to generate.