rpms/python-cherrytemplate/devel python-cherrytemplate-missing-test-files.patch, NONE, 1.1 python-cherrytemplate.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Ignacio Vazquez-Abrams (ivazquez) fedora-extras-commits at redhat.com
Wed Apr 6 09:58:30 UTC 2005


Author: ivazquez

Update of /cvs/extras/rpms/python-cherrytemplate/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv26747/devel

Modified Files:
	.cvsignore sources 
Added Files:
	python-cherrytemplate-missing-test-files.patch 
	python-cherrytemplate.spec 
Log Message:
auto-import python-cherrytemplate-1.0.0-1 on branch devel from python-cherrytemplate-1.0.0-1.src.rpm

python-cherrytemplate-missing-test-files.patch:

--- NEW FILE python-cherrytemplate-missing-test-files.patch ---
diff -urN cherrytemplate/unittest-old/testTags.html cherrytemplate/unittest/testTags.html
--- cherrytemplate/unittest-old/testTags.html	1970-01-01 01:00:00.000000000 +0100
+++ cherrytemplate/unittest/testTags.html	2005-03-20 21:04:29.382795160 +0100
@@ -0,0 +1,39 @@
+<py-eval="str(2*2)">
+<py-eval="name">
+<py-exec="a=2"><u py-eval="str(a)"></u>
+<py-code="
+    a+=1
+    a+=2
+"><py-eval="str(a)">
+<py-code="
+a+=1
+a+=2
+"><py-eval="str(a)">
+<py-code="
+    a+=1
+    a+=2
+"><py-eval="str(a)">
+<py-if="1==1">ok</py-if>
+<py-if="1==0">not ok</py-if>
+<py-else>ok</py-else>
+<py-for="a,b in [(0,0), (1,1), (0,1)]">
+    <div py-eval="str(a+b)"></div>
+</py-for>
+<py-for="i, _index in enumerate(range(3))">
+    <py-for="j in range(2)">
+        <py-eval="'%s,%s' % (i,j)">
+    </py-for>
+</py-for>
+\""" \""" '''
+<py-code="
+    a = "OK"
+    yield a
+">
+<py-exec="a = 'OK1 \\"OK2\\" OK3'">
+<py-eval="a">
+<py-eval="'py-eval 1'"/>
+<py-eval="'py-eval 2'" />
+<py-code="
+    a = 'py-code 1'
+    yield a
+"/>
diff -urN cherrytemplate/unittest-old/testTags.result cherrytemplate/unittest/testTags.result
--- cherrytemplate/unittest-old/testTags.result	1970-01-01 01:00:00.000000000 +0100
+++ cherrytemplate/unittest/testTags.result	2005-03-20 21:04:29.391793792 +0100
@@ -0,0 +1,41 @@
+4
+world
+<u>2</u>
+5
+8
+11
+ok
+ok
+
+    0
+
+    2
+
+    1
+
+
+    
+        0,0
+    
+        0,1
+    
+
+    
+        1,0
+    
+        1,1
+    
+
+    
+        2,0
+    
+        2,1
+    
+
+\""" \""" '''
+OK
+
+OK1 \"OK2\" OK3
+py-eval 1
+py-eval 2
+py-code 1
diff -urN cherrytemplate/unittest-old/t.html cherrytemplate/unittest/t.html
--- cherrytemplate/unittest-old/t.html	1970-01-01 01:00:00.000000000 +0100
+++ cherrytemplate/unittest/t.html	2005-03-20 21:05:14.534930992 +0100
@@ -0,0 +1 @@
+€£<py-eval="'€£'">


--- NEW FILE python-cherrytemplate.spec ---
%define pyver %(%{__python} -c "from distutils.sysconfig import get_python_version; print get_python_version()")
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:           python-cherrytemplate
Version:        1.0.0
Release:        1
Summary:        An easy and powerful templating module for Python
Group:          Development/Libraries
License:        BSD
URL:            http://cherrytemplate.python-hosting.com/
Source0:        http://dl.sf.net/cherrypy/CherryTemplate-1.0.0.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Patch0:         python-cherrytemplate-missing-test-files.patch 

BuildArch:      noarch
Requires:       python-abi = %{pyver}

%description
CherryTemplate is an easy and powerful templating module for Python. 

%prep
%setup -q -n CherryTemplate-%{version}
%patch0


%build
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build

%install
rm -rf $RPM_BUILD_ROOT
cp -R cherrytemplate/unittest .
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT --prefix=%{_prefix}

%check
cd unittest
PYTHONPATH=.. %{__python} unittest.py

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc ChangeLog.txt README.txt
%dir %{python_sitelib}/cherrytemplate
%dir %{python_sitelib}/cherrytemplate/unittest
%{python_sitelib}/cherrytemplate/*.py
%{python_sitelib}/cherrytemplate/*.pyc
%ghost %{python_sitelib}/cherrytemplate/*.pyo
%{python_sitelib}/cherrytemplate/unittest/*.py
%{python_sitelib}/cherrytemplate/unittest/*.pyc
%ghost %{python_sitelib}/cherrytemplate/unittest/*.pyo

%changelog
* Wed Mar 23 2005 Gijs Hollestelle <gijs[AT]gewis.nl> 1.0.0-1
- Initial Fedora Package


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/python-cherrytemplate/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	6 Apr 2005 09:57:18 -0000	1.1
+++ .cvsignore	6 Apr 2005 09:58:28 -0000	1.2
@@ -0,0 +1 @@
+CherryTemplate-1.0.0.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/python-cherrytemplate/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	6 Apr 2005 09:57:18 -0000	1.1
+++ sources	6 Apr 2005 09:58:28 -0000	1.2
@@ -0,0 +1 @@
+eac64303fbadff0e7af942ef7028d48e  CherryTemplate-1.0.0.tar.gz




More information about the fedora-extras-commits mailing list