python-iniparse/python-iniparse.spec

111 lines
3.2 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:14:59 -04:00
#spec for tarball
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: python-iniparse
2020-07-29 20:57:29 +08:00
Version: 0.5
Release: 1
2019-09-30 11:14:59 -04:00
Summary: Python Module for Accessing and Modifying Configuration Data in INI files
License: MIT and PSF
2020-07-29 20:57:29 +08:00
URL: https://github.com/candlepin/python-iniparse
Source0: https://files.pythonhosted.org/packages/source/i/iniparse/iniparse-%{version}.tar.gz
2019-09-30 11:14:59 -04:00
BuildArch: noarch
%description
iniparse is an INI parser for Python which is API compatible
with the standard library's ConfigParser, preserves structure of INI
files (order of sections & options, indentation, comments, and blank
lines are preserved when data is updated), and is more convenient to
use.
%package -n python3-iniparse
Summary: Python 3 version of python-iniparse
%{?python_provide:%python_provide python3-iniparse}
BuildRequires: python3-devel python3-setuptools python3-six python3-test
Requires: python3-six
%description -n python3-iniparse
This package is the python3 version of python-iniparse.
%package_help
%prep
%autosetup -n iniparse-%{version} -p1
%build
%py3_build
%install
%py3_install
%check
2020-07-29 20:57:29 +08:00
export PYTHONPATH=%{buildroot}%{python3_sitelib}
2019-09-30 11:14:59 -04:00
%{__python3} runtests.py
%files -n python3-iniparse
%defattr(-,root,root,-)
%license LICENSE LICENSE-PSF
%{python3_sitelib}/iniparse
%{python3_sitelib}/iniparse-%{version}-py*.egg-info
%files help
2020-07-29 20:57:29 +08:00
%doc Changelog html/
2019-09-30 11:14:59 -04:00
%exclude %{_docdir}/iniparse-%{version}/
%changelog
2020-07-29 20:57:29 +08:00
* Wed Jul 29 2020 tianwei<tianwei12@huawei.com> - 0.5-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:update release to 0.5
2019-09-30 11:14:59 -04:00
* Fri Sep 27 2019 shenyangyang<shenyangyang4@huawei.com> - 0.4-36
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:modify license
* Sat Sep 21 2019 shenyangyang<shenyangyang4@huawei.com> - 0.4-35
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:revise patch
* Thu Sep 12 2019 shenyangyang<shenyangyang4@huawei.com> - 0.4-34
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:revise the comments of patch
* Wed Sep 11 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.4-33
- revise spec
* Sat Jun 12 2010 Paramjit Oberoi <param@cs.wisc.edu> - 0.4-1
- Release 0.4
* Sat Apr 17 2010 Paramjit Oberoi <param@cs.wisc.edu> - 0.3.2-1
- Release 0.3.2
* Mon Mar 2 2009 Paramjit Oberoi <param@cs.wisc.edu> - 0.3.1-1
- Release 0.3.1
* Fri Feb 27 2009 Paramjit Oberoi <param@cs.wisc.edu> - 0.3.0-1
- Release 0.3.0
* Sat Dec 6 2008 Paramjit Oberoi <param@cs.wisc.edu> - 0.2.4-1
- Release 0.2.4
- added egg-info file to %%files
* Tue Dec 11 2007 Paramjit Oberoi <param@cs.wisc.edu> - 0.2.3-1
- Release 0.2.3
* Mon Sep 24 2007 Paramjit Oberoi <param@cs.wisc.edu> - 0.2.2-1
- Release 0.2.2
* Tue Aug 7 2007 Paramjit Oberoi <param@cs.wisc.edu> - 0.2.1-1
- Release 0.2.1
* Fri Jul 27 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2-3
- relocated doc to %{_docdir}/python-iniparse-%{version}
* Thu Jul 26 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2-2
- changed name from iniparse to python-iniparse
* Tue Jul 17 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.2-1
- Release 0.2
- Added html/* to %%doc
* Fri Jul 13 2007 Tim Lauridsen <timlau@fedoraproject.org> - 0.1-1
- Initial build.