Author: cieciwa Date: Tue Oct 18 07:06:04 2011 GMT Module: packages Tag: HEAD ---- Log message: - version 1.3.1, - release 0.1. initial
---- Files affected: packages/python-webcolors: python-webcolors.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: packages/python-webcolors/python-webcolors.spec diff -u /dev/null packages/python-webcolors/python-webcolors.spec:1.1 --- /dev/null Tue Oct 18 09:06:04 2011 +++ packages/python-webcolors/python-webcolors.spec Tue Oct 18 09:05:59 2011 @@ -0,0 +1,65 @@ +# $Revision$, $Date$ +%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 +Version: 1.3.1 +Release: 0.1 +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): + +- Specification-defined color names +- Six-digit hexadecimal +- Three-digit hexadecimal +- Integer rgb() triplet +- Percentage rgb() triple + +%prep +%setup -q -n %{module}-%{version} +%{__sed} -i -e 's/^from ez_setup/#from ez_setup/' setup.py +%{__sed} -i -e 's/^use_setuptools()/#use_setuptools()/' setup.py + +%build +%{__python} setup.py build + +%install +rm -rf $RPM_BUILD_ROOT +%{__python} setup.py install \ + --optimize=2 \ + --skip-build \ + --root $RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%{py_sitescriptdir}/%{module}.* +%if "%{py_ver}" > "2.4" +%{py_sitescriptdir}/%{module}-%{version}-*.egg-info +%endif + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[email protected]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2011/10/18 07:05:59 cieciwa +- version 1.3.1, +- release 0.1. + +initial + ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
