|
|
03459d |
Name: python-iniconfig
|
|
|
03459d |
Version: 1.1.1
|
|
|
03459d |
Release: 2%{?dist}
|
|
|
03459d |
Summary: Brain-dead simple parsing of ini files
|
|
|
03459d |
License: MIT
|
|
|
03459d |
URL: http://github.com/RonnyPfannschmidt/iniconfig
|
|
|
03459d |
|
|
|
03459d |
BuildArch: noarch
|
|
|
03459d |
# Exclude i686 arch. Due to a modularity issue it's being added to the
|
|
|
03459d |
# x86_64 compose of CRB, but we don't want to ship it at all.
|
|
|
03459d |
# See: https://projects.engineering.redhat.com/browse/RCM-72605
|
|
|
03459d |
ExcludeArch: i686
|
|
|
03459d |
|
|
|
03459d |
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
03459d |
BuildRequires: python%{python3_pkgversion}-rpm-macros
|
|
|
03459d |
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
03459d |
BuildRequires: python%{python3_pkgversion}-wheel
|
|
|
03459d |
|
|
|
03459d |
Source0: %{pypi_source iniconfig}
|
|
|
03459d |
|
|
|
03459d |
# pytest 6+ needs this and this uses pytest for tests
|
|
|
03459d |
%bcond_without tests
|
|
|
03459d |
|
|
|
03459d |
%if %{with tests}
|
|
|
03459d |
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
03459d |
%endif
|
|
|
03459d |
|
|
|
03459d |
%global _description %{expand:
|
|
|
03459d |
iniconfig is a small and simple INI-file parser module
|
|
|
03459d |
having a unique set of features:
|
|
|
03459d |
|
|
|
03459d |
* tested against Python2.4 across to Python3.2, Jython, PyPy
|
|
|
03459d |
* maintains order of sections and entries
|
|
|
03459d |
* supports multi-line values with or without line-continuations
|
|
|
03459d |
* supports "#" comments everywhere
|
|
|
03459d |
* raises errors with proper line-numbers
|
|
|
03459d |
* no bells and whistles like automatic substitutions
|
|
|
03459d |
* iniconfig raises an Error if two sections have the same name.}
|
|
|
03459d |
%description %_description
|
|
|
03459d |
|
|
|
03459d |
|
|
|
03459d |
%package -n python%{python3_pkgversion}-iniconfig
|
|
|
03459d |
Summary: %{summary}
|
|
|
03459d |
%description -n python%{python3_pkgversion}-iniconfig %_description
|
|
|
03459d |
|
|
|
03459d |
|
|
|
03459d |
%prep
|
|
|
03459d |
%autosetup -n iniconfig-%{version}
|
|
|
03459d |
|
|
|
03459d |
# Remove dependency of setuptools-scm
|
|
|
03459d |
sed -i "s/ *use_scm_version=.*,/version='%{version}',/" setup.py
|
|
|
03459d |
|
|
|
03459d |
|
|
|
03459d |
%build
|
|
|
03459d |
%py3_build
|
|
|
03459d |
|
|
|
03459d |
|
|
|
03459d |
%install
|
|
|
03459d |
%py3_install
|
|
|
03459d |
|
|
|
03459d |
|
|
|
03459d |
%if %{with tests}
|
|
|
03459d |
%check
|
|
|
03459d |
%pytest
|
|
|
03459d |
%endif
|
|
|
03459d |
|
|
|
03459d |
|
|
|
03459d |
%files -n python%{python3_pkgversion}-iniconfig
|
|
|
03459d |
%doc README.txt
|
|
|
03459d |
%license LICENSE
|
|
|
03459d |
%{python3_sitelib}/iniconfig-%{version}-py%{python3_version}.egg-info/
|
|
|
03459d |
%{python3_sitelib}/iniconfig/
|
|
|
03459d |
|
|
|
03459d |
|
|
|
03459d |
%changelog
|
|
|
03459d |
* Wed Jan 13 2021 Tomas Orsava <torsava@redhat.com> - 1.1.1-2
|
|
|
03459d |
- Convert from Fedora to the python39 module in RHEL8
|
|
|
03459d |
- Revert usage of pyproject-rpm-macros
|
|
|
03459d |
- Remove dependency on setuptools_scm
|
|
|
03459d |
- Resolves: rhbz#1877430
|
|
|
03459d |
|
|
|
03459d |
* Thu Oct 15 2020 Tomas Hrnciar <thrnciar@redhat.com> - 1.1.1-1
|
|
|
03459d |
- Update to 1.1.1 (#1888157)
|
|
|
03459d |
|
|
|
03459d |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
|
|
|
03459d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
03459d |
|
|
|
03459d |
* Mon Jul 13 2020 Miro HronĨok <mhroncok@redhat.com> - 1.0.0-1
|
|
|
03459d |
- Initial package (#1856421)
|