SPECS: python-cElementTree.spec - as i was blind enough to create ...

glen glen at pld-linux.org
Sun Oct 23 00:26:59 CEST 2005


Author: glen                         Date: Sat Oct 22 22:26:59 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- as i was blind enough to create another python-cElementTree.spec, then merged with one what i created

---- Files affected:
SPECS:
   python-cElementTree.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/python-cElementTree.spec
diff -u SPECS/python-cElementTree.spec:1.1 SPECS/python-cElementTree.spec:1.2
--- SPECS/python-cElementTree.spec:1.1	Wed Sep 28 22:10:58 2005
+++ SPECS/python-cElementTree.spec	Sun Oct 23 00:26:52 2005
@@ -1,47 +1,53 @@
 # $Revision$, $Date$
+# TODO
+# - use system expat
+#
 %define		module	cElementTree
-%define		date	20050302
-
+%define     _snap  20050302
 Summary:	A fast and pythonic XML parser
 Summary(pl):	Szybki pythonowy parser XML
 Name:		python-%{module}
 Version:	1.0.2
-Release:	0.%{date}.1
-License:	BSD
+Release:	0.%{_snap}.1
+License:	Python (MIT style)
 Group:		Development/Languages/Python
-Source0:	http://effbot.org/downloads/%{module}-%{version}-%{date}.tar.gz
+Source0:	http://effbot.org/downloads/%{module}-%{version}-%{_snap}.tar.gz
 # Source0-md5:	70372441ffa9e45233876b024bf66bbe
 URL:		http://effbot.org/zone/celementtree.htm
+#BuildRequires:	expat-devel
 BuildRequires:	python
 %pyrequires_eq	python-modules
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-A C implementation of the ElementTree API.
+The cElementTree module is a C implementation of the ElementTree API.
+On typical documents, it's 15-20 times faster than the Python version
+of ElementTree, and uses 2-5 times less memory.
 
 %description -l pl
 Implementacja C ElementTree API.
 
 %prep
-%setup -q -n %{module}-%{version}-%{date}
+%setup -q -n %{module}-%{version}-%{_snap}
 
 %build
-python setup.py build
+CFLAGS="%{rpmcflags}" %{__python} setup.py build
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-python setup.py install \
-	--root=$RPM_BUILD_ROOT \
-	--optimize=2
+%{__python} setup.py install \
+	--optimize=2 \
+	--skip-build \
+	--root=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc CHANGES README
-%attr(755,root,root) %{py_sitedir}/*.so
+%doc samples README CHANGES
+%attr(755,root,root) %{py_sitedir}/cElementTree.so
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -49,6 +55,8 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2005/10/22 22:26:52  glen
+- as i was blind enough to create another python-cElementTree.spec, then merged with one what i created
+
 Revision 1.1  2005/09/28 20:10:58  arekm
 - initial pld release
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/python-cElementTree.spec?r1=1.1&r2=1.2&f=u




More information about the pld-cvs-commit mailing list