From d05f5f6c6a4b7d582c69f51aeda851496895b7f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= Date: Mon, 1 Sep 2025 10:06:18 +0200 Subject: [PATCH] RHEL: Import from Fedora --- .fmf/version | 1 + .gitignore | 4 +++ changelog | 53 ++++++++++++++++++++++++++++++++ plans.fmf | 11 +++++++ python-iniconfig.spec | 71 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 6 files changed, 141 insertions(+) create mode 100644 .fmf/version create mode 100644 changelog create mode 100644 plans.fmf create mode 100644 python-iniconfig.spec create mode 100644 sources diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/.gitignore b/.gitignore index e69de29..0031ab4 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,4 @@ +/iniconfig-*.tar.gz +/iniconfig-*/ +/results_python-iniconfig/ +*.rpm diff --git a/changelog b/changelog new file mode 100644 index 0000000..3f2f4f5 --- /dev/null +++ b/changelog @@ -0,0 +1,53 @@ +* Fri Jan 26 2024 Fedora Release Engineering - 1.1.1-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 1.1.1-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 1.1.1-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Fri Jun 16 2023 Python Maint - 1.1.1-13 +- Rebuilt for Python 3.12 + +* Tue Jun 13 2023 Python Maint - 1.1.1-12 +- Bootstrap for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 1.1.1-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Thu Dec 08 2022 Lumír Balhar - 1.1.1-10 +- Fix build with pytest 7.2 and tox 4 + +* Fri Jul 22 2022 Fedora Release Engineering - 1.1.1-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 1.1.1-8 +- Rebuilt for Python 3.11 + +* Mon Jun 13 2022 Python Maint - 1.1.1-7 +- Bootstrap for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 1.1.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 1.1.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri Jun 04 2021 Python Maint - 1.1.1-4 +- Rebuilt for Python 3.10 + +* Wed Jun 02 2021 Python Maint - 1.1.1-3 +- Bootstrap for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 1.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Thu Oct 15 2020 Tomas Hrnciar - 1.1.1-1 +- Update to 1.1.1 (#1888157) + +* Wed Jul 29 2020 Fedora Release Engineering - 1.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jul 13 2020 Miro Hrončok - 1.0.0-1 +- Initial package (#1856421) diff --git a/plans.fmf b/plans.fmf new file mode 100644 index 0000000..365da97 --- /dev/null +++ b/plans.fmf @@ -0,0 +1,11 @@ +discover: + - name: Smoke-tests + how: shell + tests: + - name: python-import-test + test: python3 -c 'import iniconfig' + require: + - python3-iniconfig + duration: 1m +execute: + how: tmt diff --git a/python-iniconfig.spec b/python-iniconfig.spec new file mode 100644 index 0000000..cfca1ee --- /dev/null +++ b/python-iniconfig.spec @@ -0,0 +1,71 @@ +Name: python-iniconfig +Version: 2.1.0 +Release: %autorelease +Summary: Brain-dead simple parsing of ini files +# SPDX +License: MIT +URL: http://github.com/RonnyPfannschmidt/iniconfig +BuildArch: noarch +BuildRequires: python3-devel + +# pytest 6+ needs this and this uses pytest for tests +%bcond_without tests + +%if %{with tests} +# We BR pytest manually to avoid a dependency on tox in ELN/RHEL +BuildRequires: python3-pytest +%endif + +Source: %{url}/archive/v%{version}/iniconfig-%{version}.tar.gz + +%global _description %{expand: +iniconfig is a small and simple INI-file parser module +having a unique set of features: + +* tested against Python2.4 across to Python3.2, Jython, PyPy +* maintains order of sections and entries +* supports multi-line values with or without line-continuations +* supports "#" comments everywhere +* raises errors with proper line-numbers +* no bells and whistles like automatic substitutions +* iniconfig raises an Error if two sections have the same name.} +%description %_description + + +%package -n python3-iniconfig +Summary: %{summary} +%description -n python3-iniconfig %_description + + +%prep +%autosetup -n iniconfig-%{version} + + +%generate_buildrequires +export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} +%pyproject_buildrequires + + +%build +export SETUPTOOLS_SCM_PRETEND_VERSION=%{version} +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files -l iniconfig + + +%check +%pyproject_check_import +%if %{with tests} +%pytest -v +%endif + + +%files -n python3-iniconfig -f %{pyproject_files} +%doc README.rst + + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..d7ca827 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (iniconfig-2.1.0.tar.gz) = 2f973195ca65a3274961b32d1d478fef4e7beca7b9be27b7e88956d61b50eab4f8b10d491427aff23e973cb94cbcfe7dcc25e6767364a6ed52b3b81219549a20