[packages/python-chameleon] new, version 2.11

glen glen at pld-linux.org
Sun Jan 27 19:46:39 CET 2013


commit e1a0a64d5259241f827499cf1c2b87f336fd0c27
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Jan 27 20:46:06 2013 +0200

    new, version 2.11
    
    based on template .spec

 python-chameleon.spec | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)
---
diff --git a/python-chameleon.spec b/python-chameleon.spec
new file mode 100644
index 0000000..dce6000
--- /dev/null
+++ b/python-chameleon.spec
@@ -0,0 +1,56 @@
+#
+# Conditional build:
+%bcond_without	tests	# do not perform "make test"
+
+%define 	module	chameleon
+Summary:	Fast HTML/XML Template Compiler
+Name:		python-%{module}
+Version:	2.11
+Release:	1
+License:	BSD-derived (http://www.repoze.org/LICENSE.txt)
+Group:		Libraries/Python
+Source0:	http://pypi.python.org/packages/source/C/Chameleon/Chameleon-%{version}.tar.gz
+# Source0-md5:	df72458bf3dd26a744dcff5ad555c34b
+URL:		http://pypi.python.org/pypi/Chameleon
+BuildRequires:	python-distribute
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.219
+Requires:	python-modules
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Chameleon is an HTML/XML template engine for Python. It uses the page
+templates language.
+
+%prep
+%setup -q -n Chameleon-%{version}
+
+%build
+%{__python} setup.py build
+
+%{?with_tests:%{__python} setup.py test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+	--skip-build \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/tests
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
+%dir %{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/%{module}/*.py[co]
+%{py_sitescriptdir}/%{module}/zpt
+%{py_sitescriptdir}/Chameleon-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-chameleon.git/commitdiff/e1a0a64d5259241f827499cf1c2b87f336fd0c27



More information about the pld-cvs-commit mailing list