]>
Commit | Line | Data |
---|---|---|
326d111c | 1 | %define module cssutils |
326d111c | 2 | Summary: A CSS Cascading Style Sheets library for Python |
839fb13e | 3 | Summary(pl.UTF-8): Biblioteka CSS (Cascading Style Sheets) dla Pythona |
326d111c | 4 | Name: python-%{module} |
ab760d3b | 5 | Version: 0.9.5.1 |
6 | Release: 1 | |
326d111c AF |
7 | License: LGPL v2.1 |
8 | Group: Libraries/Python | |
ab760d3b | 9 | Source0: http://cheeseshop.python.org/packages/source/c/cssutils/%{module}-%{version}.zip |
10 | # Source0-md5: b5ee33892918c6589017cfb318db8190 | |
326d111c AF |
11 | URL: http://cthedot.de/cssutils/ |
12 | BuildRequires: python-devel >= 1:2.5 | |
52e73fa6 | 13 | BuildRequires: python-setuptools |
ce56d868 | 14 | BuildRequires: rpm-pythonprov |
326d111c AF |
15 | BuildRequires: rpmbuild(macros) >= 1.174 |
16 | %pyrequires_eq python-modules | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | A Python package to parse and build CSS Cascading Style Sheets. Partly | |
ce56d868 JB |
21 | implements the DOM Level 2 Stylesheets and DOM Level 2 CSS interfaces. |
22 | ||
fc31ca58 | 23 | %description -l pl.UTF-8 |
ce56d868 | 24 | Pakiet Pythona do analizy i tworzenia CSS (Cascading Style Sheets). |
fc31ca58 | 25 | Częściowo implementuje interfejsy DOM Level 2 Stylesheets oraz DOM |
ce56d868 | 26 | Level 2 CSS. |
326d111c AF |
27 | |
28 | %prep | |
ab760d3b | 29 | %setup -q -n %{module}-%{version} |
326d111c AF |
30 | |
31 | %build | |
32 | python setup.py build | |
33 | ||
34 | %install | |
35 | rm -rf $RPM_BUILD_ROOT | |
36 | ||
37 | python setup.py install \ | |
38 | --single-version-externally-managed \ | |
39 | --optimize=2 \ | |
40 | --root $RPM_BUILD_ROOT | |
41 | ||
42 | %clean | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %files | |
46 | %defattr(644,root,root,755) | |
47 | %doc README.txt | |
ce56d868 | 48 | %attr(755,root,root) %{_bindir}/cssparse |
326d111c AF |
49 | %dir %{py_sitescriptdir}/cssutils |
50 | %dir %{py_sitescriptdir}/cssutils/css | |
51 | %dir %{py_sitescriptdir}/cssutils/stylesheets | |
326d111c AF |
52 | %attr(755,root,root) %{py_sitescriptdir}/cssutils/*.py[co] |
53 | %attr(755,root,root) %{py_sitescriptdir}/cssutils/css/*.py[co] | |
54 | %attr(755,root,root) %{py_sitescriptdir}/cssutils/stylesheets/*.py[co] | |
326d111c | 55 | %{py_sitescriptdir}/*.egg-info |