commit 357806538ad612c0186c6062f04343a1e833fb40 Author: sigui Date: Thu Nov 28 16:34:32 2019 +0800 init python-configparser diff --git a/configparser-3.5.0b2.tar.gz b/configparser-3.5.0b2.tar.gz new file mode 100644 index 0000000..bce6cd7 Binary files /dev/null and b/configparser-3.5.0b2.tar.gz differ diff --git a/python-configparser.spec b/python-configparser.spec new file mode 100644 index 0000000..5c0346d --- /dev/null +++ b/python-configparser.spec @@ -0,0 +1,58 @@ +%global _description \ +The ancient ConfigParser module available in the standard library 2.x \ +has seen a major update in Python 3.2. This package is a backport of \ +those changes so that they can be used directly in Python 2.6 - 3.5. + +Name: python-configparser +Version: 3.5.0b2 +Release: 11 +Summary: Configuration file parser for python +License: MIT +URL: https://bitbucket.org/ambv/configparser +Source0: https://pypi.python.org/packages/source/c/configparser/configparser-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python2-devel python2-setuptools python3-devel python3-setuptools +Requires: python2-setuptools python3-setuptools + +%description %_description + +%package -n python2-configparser +Summary: Configuration file parser for python +%{?python_provide:%python_provide python2-configparser} + +%description -n python2-configparser %_description + +%package -n python3-configparser +Summary: Configuration file parser for python +%{?python_provide:%python_provide python3-configparser} + +%description -n python3-configparser %_description + +%prep +%autosetup -n configparser-%{version} -p1 +rm -rf *.egg-info + +%build +%{__python2} setup.py build +%{__python3} setup.py build + +%install +%{__python2} setup.py install --skip-build --root %{buildroot} +%{__python3} setup.py install --skip-build --root %{buildroot} + +%check +%{__python2} setup.py test +%{__python3} setup.py test + +%files -n python2-configparser +%doc README.rst +%{python2_sitelib}/* + +%files -n python3-configparser +%doc README.rst +%{python3_sitelib}/* + +%changelog +* Fri Nov 15 2019 sunguoshuai - 3.5.0b2-11 +- Package init