Blame SPECS/python-iniconfig.spec

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