commit b8d207611ab2b0f2f02ac65b9fc55dda88a5171d Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:14:48 2019 -0400 Package init diff --git a/python-configobj.spec b/python-configobj.spec new file mode 100644 index 0000000..6d217de --- /dev/null +++ b/python-configobj.spec @@ -0,0 +1,77 @@ +%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -Esc "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%{!?python3_sitelib: %global python3_sitelib %(%{__python3} -Esc "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} + +Name: python-configobj +Version: 5.0.6 +Release: 15 +Summary: ConfigObj is a simple but powerful config file reader and writer +License: BSD +URL: http://configobj.readthedocs.org/ +Source0: https://github.com/DiffSK/configobj/archive/v%{version}.tar.gz + +BuildRequires:python2-devel python2-pytest python2-setuptools python2-six +BuildRequires:python3-devel python3-pytest python3-setuptools python3-six git +BuildArch: noarch + +%description +ConfigObj is a simple but powerful config file reader and writer: +an ini file round tripper. Its main feature is that it is very easy to use, +with a straightforward programmer's interface and a simple syntax for config files. +It has lots of other features though : + * Nested sections (subsections), to any level + * List values + * Multiple line values + * String interpolation (substitution) + * Integrated with a powerful validation system + . including automatic type checking/conversion + . repeated sections + . and allowing default values + * When writing out config files, ConfigObj preserves all comments and the order of members and sections + * Many useful methods and options for working with configuration files (like the 'reload' method) + * Full Unicode support + +%package -n python2-configobj +Summary: config file reader and writer +Requires: python2-six +%{?python_provide:%python_provide python2-configobj} + +%description -n python2-configobj +config file reader and writer + +%package -n python3-configobj +Summary: config file reader and writer +Requires: python3-six +%{?python_provide:%python_provide python3-configobj} + +%description -n python3-configobj +config file reader and writer + +%prep +%autosetup -n configobj-%{version} -p1 -Sgit + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%check +export PYTHONWARNINGS=always +%{__python2} test_configobj.py +%{__python3} test_configobj.py + +%files -n python2-configobj +%doc README.md +%license LICENSE +%{python2_sitelib}/* + +%files -n python3-configobj +%doc README.md +%license LICENSE +%{python3_sitelib}/* + +%changelog +* Sat Sep 7 2019 wubo - 5.0.6-15 +- Package init diff --git a/v5.0.6.tar.gz b/v5.0.6.tar.gz new file mode 100644 index 0000000..a9f1642 Binary files /dev/null and b/v5.0.6.tar.gz differ