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