|
Fabio Alessandro Locati |
69725a4 |
%global pypi_name configobj
|
|
Fabio Alessandro Locati |
69725a4 |
|
|
Fabio Alessandro Locati |
69725a4 |
Name: python-%{pypi_name}
|
|
Fabio Alessandro Locati |
69725a4 |
Version: 5.0.6
|
|
Fabio Alessandro Locati |
69725a4 |
Release: 1%{?dist}
|
|
|
28ee02e |
Summary: Config file reading, writing, and validation
|
|
|
28ee02e |
|
|
|
28ee02e |
Group: System Environment/Libraries
|
|
|
28ee02e |
License: BSD
|
|
Luke Macken |
df536bf |
URL: http://configobj.readthedocs.org/
|
|
Fabio Alessandro Locati |
69725a4 |
Source0: https://pypi.python.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
Fabio Alessandro Locati |
69725a4 |
Source1: https://raw.githubusercontent.com/DiffSK/configobj/master/LICENSE
|
|
Luke Macken |
df536bf |
# to get tests
|
|
Luke Macken |
df536bf |
# git clone https://github.com/DiffSK/configobj.git && cd configobj
|
|
Luke Macken |
df536bf |
# git checkout v5.0.5
|
|
Luke Macken |
df536bf |
# tar -czf configobj-5.0.5-tests.tar.gz tests/ test_configobj.py
|
|
Fabio Alessandro Locati |
69725a4 |
#Source1: configobj-%{version}-tests.tar.gz
|
|
|
28ee02e |
BuildArch: noarch
|
|
|
28ee02e |
|
|
Fabio Alessandro Locati |
69725a4 |
BuildRequires: python2-devel
|
|
Fabio Alessandro Locati |
69725a4 |
BuildRequires: python-setuptools
|
|
Fabio Alessandro Locati |
69725a4 |
BuildRequires: python3-devel
|
|
Fabio Alessandro Locati |
69725a4 |
BuildRequires: python3-setuptools
|
|
Fabio Alessandro Locati |
69725a4 |
#BuildRequires: python3-pytest
|
|
|
28ee02e |
|
|
|
28ee02e |
%description
|
|
|
28ee02e |
ConfigObj is a simple but powerful config file reader and writer: an ini file
|
|
|
28ee02e |
round tripper. Its main feature is that it is very easy to use, with a
|
|
|
28ee02e |
straightforward programmer's interface and a simple syntax for config files.
|
|
|
28ee02e |
It has lots of other features though:
|
|
|
28ee02e |
* Nested sections (subsections), to any level
|
|
|
28ee02e |
* List values
|
|
|
28ee02e |
* Multiple line values
|
|
|
28ee02e |
* String interpolation (substitution)
|
|
|
28ee02e |
* Integrated with a powerful validation system
|
|
|
28ee02e |
o including automatic type checking/conversion
|
|
|
28ee02e |
o repeated sections
|
|
|
28ee02e |
o and allowing default values
|
|
|
28ee02e |
* All comments in the file are preserved
|
|
|
28ee02e |
* The order of keys/sections is preserved
|
|
|
28ee02e |
* No external dependencies
|
|
|
28ee02e |
* Full Unicode support
|
|
|
28ee02e |
* A powerful unrepr mode for storing basic datatypes
|
|
|
28ee02e |
|
|
Fabio Alessandro Locati |
69725a4 |
%package -n python2-%{pypi_name}
|
|
Fabio Alessandro Locati |
69725a4 |
Summary: Config file reading, writing and validation
|
|
Fabio Alessandro Locati |
69725a4 |
%{?python_provide:%python_provide python2-%{pypi_name}}
|
|
Fabio Alessandro Locati |
69725a4 |
|
|
Fabio Alessandro Locati |
69725a4 |
Requires: python-six
|
|
Fabio Alessandro Locati |
69725a4 |
%description -n python2-%{pypi_name}
|
|
Fabio Alessandro Locati |
69725a4 |
ConfigObj is a simple but powerful config file reader and writer: an ini file
|
|
Fabio Alessandro Locati |
69725a4 |
round tripper. Its main feature is that it is very easy to use, with a
|
|
Fabio Alessandro Locati |
69725a4 |
straightforward programmer's interface and a simple syntax for config files.
|
|
Fabio Alessandro Locati |
69725a4 |
It has lots of other features though:
|
|
Fabio Alessandro Locati |
69725a4 |
* Nested sections (subsections), to any level
|
|
Fabio Alessandro Locati |
69725a4 |
* List values
|
|
Fabio Alessandro Locati |
69725a4 |
* Multiple line values
|
|
Fabio Alessandro Locati |
69725a4 |
* String interpolation (substitution)
|
|
Fabio Alessandro Locati |
69725a4 |
* Integrated with a powerful validation system
|
|
Fabio Alessandro Locati |
69725a4 |
o including automatic type checking/conversion
|
|
Fabio Alessandro Locati |
69725a4 |
o repeated sections
|
|
Fabio Alessandro Locati |
69725a4 |
o and allowing default values
|
|
Fabio Alessandro Locati |
69725a4 |
* All comments in the file are preserved
|
|
Fabio Alessandro Locati |
69725a4 |
* The order of keys/sections is preserved
|
|
Fabio Alessandro Locati |
69725a4 |
* No external dependencies
|
|
Fabio Alessandro Locati |
69725a4 |
* Full Unicode support
|
|
Fabio Alessandro Locati |
69725a4 |
* A powerful unrepr mode for storing basic datatypes
|
|
Fabio Alessandro Locati |
69725a4 |
|
|
Luke Macken |
df536bf |
%package -n python3-configobj
|
|
Luke Macken |
df536bf |
Summary: Config file reading, writing, and validation for Python 3
|
|
Fabio Alessandro Locati |
69725a4 |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
Luke Macken |
df536bf |
|
|
Luke Macken |
df536bf |
Requires: python3-six
|
|
Luke Macken |
df536bf |
%description -n python3-configobj
|
|
Luke Macken |
df536bf |
ConfigObj is a simple but powerful config file reader and writer: an ini file
|
|
Luke Macken |
df536bf |
round tripper. Its main feature is that it is very easy to use, with a
|
|
Luke Macken |
df536bf |
straightforward programmer's interface and a simple syntax for config files.
|
|
Luke Macken |
df536bf |
It has lots of other features though:
|
|
Luke Macken |
df536bf |
* Nested sections (subsections), to any level
|
|
Luke Macken |
df536bf |
* List values
|
|
Luke Macken |
df536bf |
* Multiple line values
|
|
Luke Macken |
df536bf |
* String interpolation (substitution)
|
|
Luke Macken |
df536bf |
* Integrated with a powerful validation system
|
|
Luke Macken |
df536bf |
o including automatic type checking/conversion
|
|
Luke Macken |
df536bf |
o repeated sections
|
|
Luke Macken |
df536bf |
o and allowing default values
|
|
Luke Macken |
df536bf |
* All comments in the file are preserved
|
|
Luke Macken |
df536bf |
* The order of keys/sections is preserved
|
|
Luke Macken |
df536bf |
* No external dependencies
|
|
Luke Macken |
df536bf |
* Full Unicode support
|
|
Luke Macken |
df536bf |
* A powerful unrepr mode for storing basic datatypes
|
|
Luke Macken |
df536bf |
|
|
|
28ee02e |
%prep
|
|
Fabio Alessandro Locati |
97559c4 |
%autosetup -n %{pypi_name}-%{version}
|
|
Fabio Alessandro Locati |
69725a4 |
cp %{SOURCE1} .
|
|
|
5d10010 |
|
|
|
28ee02e |
%build
|
|
Fabio Alessandro Locati |
1bd9c0d |
%py2_build
|
|
Fabio Alessandro Locati |
1bd9c0d |
%py3_build
|
|
|
28ee02e |
|
|
|
28ee02e |
%install
|
|
Fabio Alessandro Locati |
1bd9c0d |
%py3_install
|
|
Fabio Alessandro Locati |
1bd9c0d |
%py2_install
|
|
Luke Macken |
df536bf |
|
|
Fabio Alessandro Locati |
69725a4 |
#%check
|
|
Luke Macken |
df536bf |
# this needs to be set for tests.test_configobj.test_options_deprecation
|
|
Fabio Alessandro Locati |
69725a4 |
#export PYTHONWARNINGS=always
|
|
Fabio Alessandro Locati |
69725a4 |
#
|
|
Fabio Alessandro Locati |
69725a4 |
#tar -xzf %{SOURCE1}
|
|
Fabio Alessandro Locati |
69725a4 |
#%{__python} test_configobj.py
|
|
Fabio Alessandro Locati |
69725a4 |
#py.test tests
|
|
Fabio Alessandro Locati |
69725a4 |
#
|
|
Fabio Alessandro Locati |
69725a4 |
#%if 0%{?with_python3}
|
|
Fabio Alessandro Locati |
69725a4 |
#pushd %{py3dir}
|
|
Fabio Alessandro Locati |
69725a4 |
#tar -xzf %{SOURCE1}
|
|
Fabio Alessandro Locati |
69725a4 |
#%{__python3} test_configobj.py
|
|
Fabio Alessandro Locati |
69725a4 |
#py.test-%{python3_version} tests
|
|
Fabio Alessandro Locati |
69725a4 |
#popd
|
|
Fabio Alessandro Locati |
69725a4 |
#%endif
|
|
|
28ee02e |
|
|
Fabio Alessandro Locati |
1bd9c0d |
%files -n python2-%{pypi_name}
|
|
Fabio Alessandro Locati |
1bd9c0d |
%{!?_licensedir:%global license %doc}
|
|
Fabio Alessandro Locati |
1bd9c0d |
%doc
|
|
Fabio Alessandro Locati |
69725a4 |
%license LICENSE
|
|
Fabio Alessandro Locati |
1bd9c0d |
%{python2_sitelib}/*
|
|
Fabio Alessandro Locati |
1bd9c0d |
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
|
28ee02e |
|
|
Fabio Alessandro Locati |
1bd9c0d |
%files -n python3-%{pypi_name}
|
|
Fabio Alessandro Locati |
1bd9c0d |
%doc
|
|
Fabio Alessandro Locati |
69725a4 |
%license LICENSE
|
|
Luke Macken |
df536bf |
%{python3_sitelib}/*
|
|
Fabio Alessandro Locati |
1bd9c0d |
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
|
|
Luke Macken |
df536bf |
|
|
|
28ee02e |
%changelog
|
|
Fabio Alessandro Locati |
69725a4 |
* Wed Jan 06 2016 Fabio Alessandro Locati <fabio@locati.cc> - 5.0.6-1
|
|
Fabio Alessandro Locati |
69725a4 |
- Align to current upstream
|
|
Fabio Alessandro Locati |
69725a4 |
|
|
|
7bef8cf |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0.5-4
|
|
|
7bef8cf |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
7bef8cf |
|
|
|
5db5290 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0.5-3
|
|
|
5db5290 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
5db5290 |
|
|
|
5d10010 |
* Thu Jul 31 2014 Tom Callaway <spot@fedoraproject.org> - 5.0.5-2
|
|
|
5d10010 |
- fix license handling
|
|
|
5d10010 |
|
|
Luke Macken |
df536bf |
* Thu Jun 26 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 5.0.5-1
|
|
Luke Macken |
df536bf |
- Updated to 5.0.5 (new upstream "with the blessing of original creator")
|
|
Luke Macken |
df536bf |
- Introduced python3-configobj subpackage
|
|
Luke Macken |
df536bf |
- Changed upstream url to documentation written by new upstream
|
|
Luke Macken |
df536bf |
|
|
|
b1099e5 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.7.2-8
|
|
|
b1099e5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
b1099e5 |
|
|
|
5eaf13c |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.7.2-7
|
|
|
5eaf13c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
5eaf13c |
|
|
|
6840188 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.7.2-6
|
|
|
6840188 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
6840188 |
|
|
|
5840edc |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.7.2-5
|
|
|
5840edc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
5840edc |
|
|
|
7b18d08 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.7.2-4
|
|
|
7b18d08 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
7b18d08 |
|
|
|
8078e25 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.7.2-3
|
|
|
8078e25 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
8078e25 |
|
|
|
d64d3bc |
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 4.7.2-2
|
|
|
d64d3bc |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
d64d3bc |
|
|
|
27dad12 |
* Thu Jun 17 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 4.7.2-1
|
|
|
27dad12 |
- Fix traceback when doing from validate import *
|
|
|
27dad12 |
- Upstream bugfix release
|
|
|
27dad12 |
|
|
|
6f7f935 |
* Wed Jan 20 2010 Luke Macken <lmacken@redhat.com> - 4.7.0-2
|
|
|
6f7f935 |
- Merge a bunch of changes from Gareth Armstrong <gareth.armstrong@hp.com>
|
|
|
6f7f935 |
- The src zip file should come either from http://www.voidspace.org.uk/
|
|
|
6f7f935 |
downloads/ or http://code.google.com/p/configobj/ as the PyPI tarball is
|
|
|
6f7f935 |
not complete. No docs and no test code.
|
|
|
6f7f935 |
- Added docs
|
|
|
6f7f935 |
- Remove BR on python-setuptools-devel
|
|
|
6f7f935 |
|
|
|
a72990e |
* Sun Jan 10 2010 Luke Macken <lmacken@redhat.com> - 4.7.0-1
|
|
|
a72990e |
- Update to 4.7.0
|
|
|
a72990e |
|
|
|
00e6bac |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.6.0-2
|
|
|
00e6bac |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
00e6bac |
|
|
Yaakov Meir Nemoy |
cd095e7 |
* Thu May 7 2009 Yaakov M. Nemoy <ynemoy@fedoraproject.org> - 4.6.0-1
|
|
Yaakov Meir Nemoy |
cd095e7 |
- updated to latest upstream
|
|
Yaakov Meir Nemoy |
cd095e7 |
|
|
|
455b24b |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.5.3-5
|
|
|
455b24b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
455b24b |
|
|
|
78d4214 |
* Mon Feb 09 2009 Luke Macken <lmacken@redhat.com> - 4.5.3-4
|
|
|
78d4214 |
- Conditionally include the egg-info, when available (#478417)
|
|
|
78d4214 |
|
|
|
5a42fe6 |
* Mon Dec 1 2008 Toshio Kuratomi <toshio@fedoraproject.org> - 4.5.3-3
|
|
|
5a42fe6 |
- Upload Source file so this actually builds.
|
|
|
5a42fe6 |
|
|
|
95e88cc |
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 4.5.3-2
|
|
|
95e88cc |
- Rebuild for Python 2.6
|
|
|
95e88cc |
|
|
|
f30419e |
* Sat Jun 28 2008 Luke Macken <lmacken@redhat.com> - 4.5.3-1
|
|
|
f30419e |
- Update to 4.5.3
|
|
|
f30419e |
|
|
|
f66c247 |
* Thu Feb 28 2008 Luke Macken <lmacken@redhat.com> - 4.5.2-1
|
|
|
f66c247 |
- Update to 4.5.2
|
|
|
f66c247 |
|
|
|
f4e14fb |
* Sun Sep 2 2007 Luke Macken <lmacken@redhat.com> - 4.4.0-2
|
|
|
f4e14fb |
- Update for python-setuptools changes in rawhide
|
|
|
f4e14fb |
|
|
|
820e03d |
* Sat Mar 3 2007 Luke Macken <lmacken@redhat.com> - 4.4.0-1
|
|
|
820e03d |
- 4.4.0
|
|
|
820e03d |
|
|
|
681f54b |
* Sat Dec 9 2006 Luke Macken <lmacken@redhat.com> - 4.3.2-6
|
|
|
681f54b |
- Rebuild for python 2.5
|
|
|
681f54b |
|
|
|
96ce0c3 |
* Sun Sep 3 2006 Luke Macken <lmacken@redhat.com> - 4.3.2-5
|
|
|
96ce0c3 |
- Fix dist tag
|
|
|
96ce0c3 |
|
|
|
3ece588 |
* Sun Sep 3 2006 Luke Macken <lmacken@redhat.com> - 4.3.2-4
|
|
|
3ece588 |
- Rebuild for FC6
|
|
|
3ece588 |
|
|
|
3cbb368 |
* Mon Aug 14 2006 Luke Macken <lmacken@redhat.com> - 4.3.2-3
|
|
|
3cbb368 |
- Include pyo files
|
|
|
3cbb368 |
|
|
|
28ee02e |
* Tue Jul 18 2006 Luke Macken <lmacken@redhat.com> - 4.3.2-2
|
|
|
28ee02e |
- Fix typo in the url
|
|
|
28ee02e |
|
|
|
28ee02e |
* Mon Jul 10 2006 Luke Macken <lmacken@redhat.com> - 4.3.2-1
|
|
|
28ee02e |
- Initial package
|