]> git.pld-linux.org Git - packages/python-webcolors.git/blame - python-webcolors.spec
automatic change: use py_build/py_install macros
[packages/python-webcolors.git] / python-webcolors.spec
CommitLineData
2fc397ca 1%define module webcolors
fdfbf7ac
ER
2Summary: Library for working with sRGB color specifications as used in HTML and CSS
3Name: python-%{module}
2fc397ca 4Version: 1.3.1
cefbf662 5Release: 1
2fc397ca 6License: BSD License
7Group: Development/Languages
8URL: http://www.bitbucket.org/ubernostrum/webcolors/overview/
9Source0: http://bitbucket.org/ubernostrum/%{module}/downloads/%{module}-%{version}.tar.gz
10# Source0-md5: aeb4f33be6c26ec7f76a78c2d88cfb0c
2fc397ca 11BuildRequires: rpmbuild(macros) >= 1.219
12BuildRequires: sed >= 4.0
13BuildArch: noarch
14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16%description
7cbd3e6a
ER
17A library for working with color names and color value formats defined
18by the HTML and CSS specifications for use in documents on the Web.
2fc397ca 19
7cbd3e6a
ER
20Support is included for the following formats (RGB colorspace only;
21conversion to/from HSL can be handled by the colorsys module in the
22Python standard library):
2fc397ca 23- Specification-defined color names
24- Six-digit hexadecimal
25- Three-digit hexadecimal
26- Integer rgb() triplet
27- Percentage rgb() triple
28
29%prep
30%setup -q -n %{module}-%{version}
31%{__sed} -i -e 's/^from ez_setup/#from ez_setup/' setup.py
32%{__sed} -i -e 's/^use_setuptools()/#use_setuptools()/' setup.py
33
34%build
55c563e4 35%py_build
2fc397ca 36
37%install
38rm -rf $RPM_BUILD_ROOT
55c563e4 39%py_install \
2fc397ca 40 --root $RPM_BUILD_ROOT
41
7cbd3e6a
ER
42%py_postclean
43
2fc397ca 44%clean
45rm -rf $RPM_BUILD_ROOT
46
47%files
48%defattr(644,root,root,755)
7cbd3e6a 49%{py_sitescriptdir}/%{module}*.py[co]
2fc397ca 50%if "%{py_ver}" > "2.4"
51%{py_sitescriptdir}/%{module}-%{version}-*.egg-info
52%endif
This page took 0.049105 seconds and 4 git commands to generate.