3 %bcond_without tests # do not perform "make test"
5 %define module chameleon
6 Summary: Fast HTML/XML Template Compiler
10 License: BSD-derived (http://www.repoze.org/LICENSE.txt)
11 Group: Libraries/Python
12 Source0: http://pypi.python.org/packages/source/C/Chameleon/Chameleon-%{version}.tar.gz
13 # Source0-md5: df72458bf3dd26a744dcff5ad555c34b
14 URL: http://pypi.python.org/pypi/Chameleon
15 BuildRequires: python-distribute
16 BuildRequires: rpm-pythonprov
17 BuildRequires: rpmbuild(macros) >= 1.710
18 Requires: python-modules
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Chameleon is an HTML/XML template engine for Python. It uses the page
27 %setup -q -n Chameleon-%{version}
32 %{?with_tests:%{__python} setup.py test}
35 rm -rf $RPM_BUILD_ROOT
38 %{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/tests
40 %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
41 %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
45 rm -rf $RPM_BUILD_ROOT
48 %defattr(644,root,root,755)
49 %doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
50 %dir %{py_sitescriptdir}/%{module}
51 %{py_sitescriptdir}/%{module}/*.py[co]
52 %{py_sitescriptdir}/%{module}/zpt
53 %{py_sitescriptdir}/Chameleon-%{version}-py*.egg-info