python-configobj-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
  2. Name: python-configobj
  3. Version: 4.5.3
  4. Release: 2%{?_dist_release}
  5. Summary: Config file reading, writing, and validation
  6. Summary(ja): 設定ファイルの読み込み、書き込み、及び評価用のPython ツール
  7. Group: System Environment/Libraries
  8. License: BSD
  9. URL: http://www.voidspace.org.uk/python/configobj.html
  10. Source0: http://dl.sf.net/configobj/configobj-%{version}.zip
  11. BuildRequires: python-devel, python-setuptools
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildArch: noarch
  14. %description
  15. ConfigObj is a simple but powerful config file reader and writer: an ini file
  16. round tripper. Its main feature is that it is very easy to use, with a
  17. straightforward programmer's interface and a simple syntax for config files.
  18. It has lots of other features though:
  19. * Nested sections (subsections), to any level
  20. * List values
  21. * Multiple line values
  22. * String interpolation (substitution)
  23. * Integrated with a powerful validation system
  24. o including automatic type checking/conversion
  25. o repeated sections
  26. o and allowing default values
  27. * All comments in the file are preserved
  28. * The order of keys/sections is preserved
  29. * No external dependencies
  30. * Full Unicode support
  31. * A powerful unrepr mode for storing basic datatypes
  32. %prep
  33. %setup -q -n configobj-%{version}
  34. %build
  35. %{__python} setup.py build
  36. %install
  37. rm -rf $RPM_BUILD_ROOT
  38. %{__python} setup.py install -O1 --skip-build --root=$RPM_BUILD_ROOT
  39. %clean
  40. rm -rf $RPM_BUILD_ROOT
  41. %files
  42. %defattr(-,root,root,-)
  43. %doc docs
  44. %{python_sitelib}/*.py
  45. %{python_sitelib}/*.pyc
  46. %{python_sitelib}/*.pyo
  47. %{python_sitelib}/configobj-*.egg-info
  48. %changelog
  49. * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 4.5.3-2
  50. - rebuilt with python-2.6.4
  51. * Wed Dec 24 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 4.5.3-1
  52. - initial build for Vine Linux based on fedora package
  53. * Mon Dec 1 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 4.5.3-3
  54. - Upload Source file so this actually builds.
  55. * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 4.5.3-2
  56. - Rebuild for Python 2.6
  57. * Sat Jun 28 2008 Luke Macken <lmacken@redhat.com> - 4.5.3-1
  58. - Update to 4.5.3
  59. * Thu Feb 28 2008 Luke Macken <lmacken@redhat.com> - 4.5.2-1
  60. - Update to 4.5.2
  61. * Sun Sep 2 2007 Luke Macken <lmacken@redhat.com> - 4.4.0-2
  62. - Update for python-setuptools changes in rawhide
  63. * Sat Mar 3 2007 Luke Macken <lmacken@redhat.com> - 4.4.0-1
  64. - 4.4.0
  65. * Sat Dec 9 2006 Luke Macken <lmacken@redhat.com> - 4.3.2-6
  66. - Rebuild for python 2.5
  67. * Sun Sep 3 2006 Luke Macken <lmacken@redhat.com> - 4.3.2-5
  68. - Fix dist tag
  69. * Sun Sep 3 2006 Luke Macken <lmacken@redhat.com> - 4.3.2-4
  70. - Rebuild for FC6
  71. * Mon Aug 14 2006 Luke Macken <lmacken@redhat.com> - 4.3.2-3
  72. - Include pyo files
  73. * Tue Jul 18 2006 Luke Macken <lmacken@redhat.com> - 4.3.2-2
  74. - Fix typo in the url
  75. * Mon Jul 10 2006 Luke Macken <lmacken@redhat.com> - 4.3.2-1
  76. - Initial package