[521] | 1 | %define python_sitearch %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(1)') |
---|
| 2 | %define python_sitelib %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib()') |
---|
| 3 | |
---|
| 4 | %define real_name elementtree |
---|
| 5 | |
---|
| 6 | Summary: Fast XML parser and writer |
---|
| 7 | Name: python-elementtree |
---|
| 8 | %define real_version 1.2.6-20050316 |
---|
| 9 | %define real_version_celementtree 1.0.2-20050302 |
---|
| 10 | Version: 1.2.6 |
---|
[8158] | 11 | Release: 5%{?_dist_release} |
---|
[521] | 12 | License: PSF |
---|
| 13 | Group: Development/Libraries |
---|
| 14 | URL: http://effbot.org/zone/element-index.htm |
---|
| 15 | |
---|
| 16 | Source0: http://effbot.org/downloads/elementtree-%{real_version}.tar.gz |
---|
| 17 | Source1: http://effbot.org/downloads/cElementTree-%{real_version_celementtree}.tar.gz |
---|
| 18 | Source2: cElementTree-system-expat-setup.py |
---|
| 19 | |
---|
| 20 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 21 | BuildRequires: expat-devel, python-devel |
---|
| 22 | Provides: cElementTree.so |
---|
| 23 | |
---|
[8158] | 24 | Vendor: Project Vine |
---|
| 25 | Distribution: Vine Linux |
---|
| 26 | |
---|
[521] | 27 | %description |
---|
| 28 | The Element type is a simple but flexible container object, designed |
---|
| 29 | to store hierarchical data structures, such as simplified XML |
---|
| 30 | infosets, in memory. The element type can be described as a cross |
---|
| 31 | between a Python list and a Python dictionary. |
---|
| 32 | |
---|
| 33 | This package also includes the C implementation, %{real_version_celementtree}. |
---|
| 34 | |
---|
| 35 | %prep |
---|
| 36 | %setup -a1 -n %{real_name}-%{real_version} |
---|
| 37 | pushd cElementTree-%{real_version_celementtree} |
---|
| 38 | %{__mv} -f setup.py setup.py-orig |
---|
| 39 | %{__cp} -f %{SOURCE2} setup.py |
---|
| 40 | %{__mv} -f CHANGES ../CHANGES-cElementTree |
---|
| 41 | %{__mv} -f README ../README-cElementTree |
---|
| 42 | popd |
---|
| 43 | |
---|
| 44 | %build |
---|
| 45 | %{__python} setup.py build |
---|
| 46 | pushd cElementTree-%{real_version_celementtree} |
---|
| 47 | CFLAGS="%{optflags}" %{__python} setup.py build |
---|
| 48 | popd |
---|
| 49 | |
---|
| 50 | %install |
---|
| 51 | %{__rm} -rf %{buildroot} |
---|
| 52 | %{__python} setup.py install -O1 --skip-build --root="%{buildroot}" --prefix="%{_prefix}" |
---|
| 53 | pushd cElementTree-%{real_version_celementtree} |
---|
| 54 | %{__python} setup.py install -O1 --skip-build --root="%{buildroot}" --prefix="%{_prefix}" |
---|
| 55 | popd |
---|
| 56 | |
---|
| 57 | %clean |
---|
| 58 | %{__rm} -rf %{buildroot} |
---|
| 59 | |
---|
| 60 | %files |
---|
| 61 | %defattr(-, root, root, 0755) |
---|
| 62 | %doc CHANGES* README* benchmark.py docs/ samples/ |
---|
| 63 | %{python_sitelib}/elementtree/ |
---|
| 64 | %{python_sitearch}/*.so |
---|
| 65 | |
---|
| 66 | %changelog |
---|
[8158] | 67 | * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.6-5 |
---|
| 68 | - rebuild with VineSeed environment |
---|
| 69 | |
---|
[5701] | 70 | * Sat Feb 18 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.6-4 |
---|
| 71 | - rebuild with python-2.7.2 |
---|
| 72 | |
---|
[521] | 73 | * Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 1.2.6-3 |
---|
| 74 | - rebuild with python-2.6 |
---|
| 75 | |
---|
| 76 | * Mon Jul 21 2008 Shu KONNO <owa@bg.wakwak.com> 1.2.6-2 |
---|
| 77 | - rebuilt with python-2.5.2 |
---|
| 78 | |
---|
| 79 | * Mon Apr 28 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.6-1 |
---|
| 80 | - initial build for Vine Linux |
---|
| 81 | |
---|
| 82 | * Sun Aug 13 2006 Dag Wieers <dag@wieers.com> - 1.2.6-7 #4303 |
---|
| 83 | - Provide cElementtree.so because external packages (vzyum) require it. |
---|
| 84 | |
---|
| 85 | * Fri Jan 27 2006 Dag Wieers <dag@wieers.com> - 1.2.6-6 |
---|
| 86 | - Removed python-abi since older releases do not provide it. |
---|
| 87 | |
---|
| 88 | * Thu Jan 05 2006 Dag Wieers <dag@wieers.com> - 1.2.6-5 |
---|
| 89 | - Obsoleted python-celementtree. |
---|
| 90 | |
---|
| 91 | * Tue Jul 26 2005 Jeff Pitman <symbiont+pyvault@berlios.de> 1.2.6-4.1 |
---|
| 92 | - pyvaultize |
---|
| 93 | |
---|
| 94 | * Mon Apr 4 2005 Jeremy Katz <katzj@redhat.com> - 1.2.6-4 |
---|
| 95 | - rebuild for core |
---|
| 96 | - use %%setup -q -a 1 instead of unzipping source1 |
---|
| 97 | |
---|
[8158] | 98 | * Wed Mar 30 2005 Konstantin Ryabitsev <icon@linux.duke.edu> - 1.2.6-3 |
---|
[521] | 99 | - Use python_sitearch for the C library. |
---|
| 100 | |
---|
| 101 | * Tue Mar 29 2005 Konstantin Ryabitsev <icon@linux.duke.edu> - 1.2.6-2 |
---|
| 102 | - Use python_sitelib |
---|
| 103 | - Own the elementtree dir in site-packages |
---|
| 104 | - BuildRequire python-devel |
---|
| 105 | - Do not namely require expat |
---|
| 106 | - Do not use INSTALLED_FILES (safer) |
---|
| 107 | - Use ghosting for .pyo |
---|
| 108 | |
---|
| 109 | * Thu Mar 17 2005 Konstantin Ryabitsev <icon@linux.duke.edu> - 1.2.6-1 |
---|
| 110 | - Version 1.2.6 of ElementTree. |
---|
| 111 | |
---|
| 112 | * Thu Mar 10 2005 Konstantin Ryabitsev <icon@linux.duke.edu> - 1.2.5-1 |
---|
| 113 | - Rename as python-elementtree. |
---|
| 114 | |
---|
| 115 | * Sat Mar 5 2005 Konstantin Ryabitsev <icon@linux.duke.edu> - 1.2.5-1 |
---|
| 116 | - Initial RPM release. |
---|