python-elementtree-vl.spec 3.7 KB

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