[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 |
---|
[8896] | 4 | Version: 5.0.5 |
---|
| 5 | Release: 1%{?_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 |
---|
[8896] | 11 | Source0: http://dl.sf.net/configobj/configobj-%{version}.tar.gz |
---|
[521] | 12 | |
---|
| 13 | BuildRequires: python-devel, python-setuptools |
---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 15 | BuildArch: noarch |
---|
| 16 | |
---|
[8158] | 17 | Vendor: Project Vine |
---|
| 18 | Distribution: Vine Linux |
---|
[521] | 19 | |
---|
| 20 | %description |
---|
| 21 | ConfigObj is a simple but powerful config file reader and writer: an ini file |
---|
| 22 | round tripper. Its main feature is that it is very easy to use, with a |
---|
| 23 | straightforward programmer's interface and a simple syntax for config files. |
---|
| 24 | It has lots of other features though: |
---|
| 25 | * Nested sections (subsections), to any level |
---|
| 26 | * List values |
---|
| 27 | * Multiple line values |
---|
| 28 | * String interpolation (substitution) |
---|
| 29 | * Integrated with a powerful validation system |
---|
| 30 | o including automatic type checking/conversion |
---|
| 31 | o repeated sections |
---|
| 32 | o and allowing default values |
---|
| 33 | * All comments in the file are preserved |
---|
| 34 | * The order of keys/sections is preserved |
---|
| 35 | * No external dependencies |
---|
| 36 | * Full Unicode support |
---|
| 37 | * A powerful unrepr mode for storing basic datatypes |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | %prep |
---|
| 41 | %setup -q -n configobj-%{version} |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | %build |
---|
| 45 | %{__python} setup.py build |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | %install |
---|
| 49 | rm -rf $RPM_BUILD_ROOT |
---|
| 50 | %{__python} setup.py install -O1 --skip-build --root=$RPM_BUILD_ROOT |
---|
| 51 | |
---|
| 52 | |
---|
| 53 | %clean |
---|
| 54 | rm -rf $RPM_BUILD_ROOT |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | %files |
---|
| 58 | %defattr(-,root,root,-) |
---|
[8896] | 59 | #%doc docs |
---|
[521] | 60 | %{python_sitelib}/*.py |
---|
| 61 | %{python_sitelib}/*.pyc |
---|
| 62 | %{python_sitelib}/*.pyo |
---|
| 63 | %{python_sitelib}/configobj-*.egg-info |
---|
| 64 | |
---|
| 65 | %changelog |
---|
[8896] | 66 | * Fri Aug 08 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> 5.0.5-1 |
---|
| 67 | - new upstream release |
---|
| 68 | - changed archive type to tar.gz |
---|
| 69 | |
---|
[8158] | 70 | * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.5.3-4 |
---|
| 71 | - rebuild with VineSeed environment |
---|
| 72 | |
---|
[5701] | 73 | * Sat Feb 18 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.5.3-3 |
---|
| 74 | - rebuild with python-2.7.2 |
---|
| 75 | |
---|
[521] | 76 | * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 4.5.3-2 |
---|
| 77 | - rebuilt with python-2.6.4 |
---|
| 78 | |
---|
| 79 | * Wed Dec 24 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 4.5.3-1 |
---|
| 80 | - initial build for Vine Linux based on fedora package |
---|
| 81 | |
---|
| 82 | * Mon Dec 1 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 4.5.3-3 |
---|
| 83 | - Upload Source file so this actually builds. |
---|
| 84 | |
---|
| 85 | * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 4.5.3-2 |
---|
| 86 | - Rebuild for Python 2.6 |
---|
| 87 | |
---|
| 88 | * Sat Jun 28 2008 Luke Macken <lmacken@redhat.com> - 4.5.3-1 |
---|
| 89 | - Update to 4.5.3 |
---|
| 90 | |
---|
| 91 | * Thu Feb 28 2008 Luke Macken <lmacken@redhat.com> - 4.5.2-1 |
---|
| 92 | - Update to 4.5.2 |
---|
| 93 | |
---|
| 94 | * Sun Sep 2 2007 Luke Macken <lmacken@redhat.com> - 4.4.0-2 |
---|
| 95 | - Update for python-setuptools changes in rawhide |
---|
| 96 | |
---|
| 97 | * Sat Mar 3 2007 Luke Macken <lmacken@redhat.com> - 4.4.0-1 |
---|
| 98 | - 4.4.0 |
---|
| 99 | |
---|
| 100 | * Sat Dec 9 2006 Luke Macken <lmacken@redhat.com> - 4.3.2-6 |
---|
| 101 | - Rebuild for python 2.5 |
---|
| 102 | |
---|
| 103 | * Sun Sep 3 2006 Luke Macken <lmacken@redhat.com> - 4.3.2-5 |
---|
| 104 | - Fix dist tag |
---|
| 105 | |
---|
| 106 | * Sun Sep 3 2006 Luke Macken <lmacken@redhat.com> - 4.3.2-4 |
---|
| 107 | - Rebuild for FC6 |
---|
| 108 | |
---|
| 109 | * Mon Aug 14 2006 Luke Macken <lmacken@redhat.com> - 4.3.2-3 |
---|
| 110 | - Include pyo files |
---|
| 111 | |
---|
| 112 | * Tue Jul 18 2006 Luke Macken <lmacken@redhat.com> - 4.3.2-2 |
---|
| 113 | - Fix typo in the url |
---|
| 114 | |
---|
| 115 | * Mon Jul 10 2006 Luke Macken <lmacken@redhat.com> - 4.3.2-1 |
---|
| 116 | - Initial package |
---|