Author: thl
Update of /cvs/free/rpms/compat-python24-elementtree/F-8
In directory se02.es.rpmfusion.net:/tmp/cvs-serv21732
Modified Files:
.cvsignore sources
Added Files:
cElementTree-system-expat-setup.py
compat-python24-elementtree.spec
Log Message:
initial import from livna
***** Error reading new file: [Errno 2] No such file or directory:
'cElementTree-system-expat-setup.py'
--- NEW FILE compat-python24-elementtree.spec ---
%define compat_python %{_bindir}/python2.4
%{!?python_sitelib: %define python_sitelib %(%{compat_python} -c "from
distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %define python_sitearch %(%{compat_python} -c "from
distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%define _upstream_nvr elementtree-1.2.6-20050316
%define _upstream_cnvr cElementTree-1.0.5-20051216
Name: compat-python24-elementtree
Version: 1.2.6
Release: 6%{?dist}
Summary: Fast XML parser and writer
Group: Development/Libraries
License: PSF
URL:
http://effbot.org/zone/element-index.htm
Source0:
http://effbot.org/downloads/%{_upstream_nvr}.zip
Source1:
http://effbot.org/downloads/%{_upstream_cnvr}.tar.gz
Source2: cElementTree-system-expat-setup.py
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: expat-devel, compat-python24-devel, compat-python24
Requires: python-abi = 2.4
%description
The Element type is a simple but flexible container object, designed
to store hierarchical data structures, such as simplified XML
infosets, in memory. The element type can be described as a cross
between a Python list and a Python dictionary.
This package also includes the C implementation, %{_upstream_cnvr}.
%prep
%setup -q -n %{_upstream_nvr} -a 1
## Take care of cElementTree
pushd %{_upstream_cnvr}
mv -f setup.py setup.py-orig
cp -f %{SOURCE2} setup.py
cp -f README ../README-cElementTree
cp -f CHANGES ../CHANGES-cElementTree
popd
%build
%{compat_python} setup.py build
pushd %{_upstream_cnvr}
CFLAGS="$RPM_OPT_FLAGS" %{compat_python} setup.py build
popd
%install
rm -rf $RPM_BUILD_ROOT
%{compat_python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
pushd %{_upstream_cnvr}
%{compat_python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
popd
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc docs samples README* CHANGES* benchmark.py
%dir %{python_sitelib}/elementtree
%{python_sitelib}/elementtree/*.py*
%{python_sitearch}/*.so
%changelog
* Sun Aug 10 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 1.2.6-6
- rebuild for RPM Fusion
* Mon Sep 3 2007 Jonathan Steffan <jon a fedoraunity.org> 1.2.6-5
- Initial RPM release
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/compat-python24-elementtree/F-8/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 22 Jul 2008 16:48:46 -0000 1.1
+++ .cvsignore 10 Aug 2008 10:14:22 -0000 1.2
@@ -0,0 +1,2 @@
+cElementTree-1.0.5-20051216.tar.gz
+elementtree-1.2.6-20050316.zip
Index: sources
===================================================================
RCS file: /cvs/free/rpms/compat-python24-elementtree/F-8/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 22 Jul 2008 16:48:46 -0000 1.1
+++ sources 10 Aug 2008 10:14:23 -0000 1.2
@@ -0,0 +1,2 @@
+b6896e742e39f594046b07e58f1d25fe cElementTree-1.0.5-20051216.tar.gz
+6751a9005efbd2c543ef32905d4a0acd elementtree-1.2.6-20050316.zip