diff --git a/plan.fmf b/plan.fmf index ccb6027..1b4e82e 100644 --- a/plan.fmf +++ b/plan.fmf @@ -106,6 +106,9 @@ discover: - name: isort_c9s path: /tests test: NAME="CentOS Stream" VERSION_ID=9 ./mocktest.sh python-isort + - name: isort_c10s + path: /tests + test: NAME="CentOS Stream" VERSION_ID=10 ./mocktest.sh python-isort prepare: - name: Install dependencies how: install diff --git a/tests/python-isort.spec b/tests/python-isort.spec index 82956c4..0b300a1 100644 --- a/tests/python-isort.spec +++ b/tests/python-isort.spec @@ -37,6 +37,15 @@ Summary: %{summary} %package -n python%{python3_pkgversion}-%{modname} Summary: %{summary} +%description -n python%{python3_pkgversion}-%{modname} +%{summary}. +%endif + +%if 0%{?rhel} == 9 || 0%{?rhel} == 10 +%global python3_pkgversion 3.13 +%package -n python%{python3_pkgversion}-%{modname} +Summary: %{summary} + %description -n python%{python3_pkgversion}-%{modname} %{summary}. @@ -55,6 +64,10 @@ Summary: %{summary} %pyproject_buildrequires %global python3_pkgversion 3.12 %pyproject_buildrequires +%endif +%if 0%{?rhel} == 9 || 0%{?rhel} == 10 +%global python3_pkgversion 3.13 +%pyproject_buildrequires %global python3_pkgversion 3 %endif @@ -67,6 +80,10 @@ Summary: %{summary} %pyproject_wheel %global python3_pkgversion 3.12 %pyproject_wheel +%endif +%if 0%{?rhel} == 9 || 0%{?rhel} == 10 +%global python3_pkgversion 3.13 +%pyproject_wheel %global python3_pkgversion 3 %endif @@ -79,6 +96,11 @@ Summary: %{summary} %global python3_pkgversion 3.12 %pyproject_install %pyproject_save_files -l isort +%endif +%if 0%{?rhel} == 9 || 0%{?rhel} == 10 +%global python3_pkgversion 3.13 +%pyproject_install +%pyproject_save_files -l isort %global python3_pkgversion 3 %endif # we keep this one last so /usr/bin/isort is installed with python3 shebang @@ -107,6 +129,13 @@ diff %{pyproject_files} <(grep -F python3.11/site-packages %{pyproject_files}) test -d %{buildroot}%{_usr}/lib/python3.12/site-packages/%{modname}/ test -d %{buildroot}%{_usr}/lib/python3.12/site-packages/%{modname}-%{version}.dist-info/ diff %{pyproject_files} <(grep -F python3.12/site-packages %{pyproject_files}) +%endif + +%if 0%{?rhel} == 9 || 0%{?rhel} == 10 +%global python3_pkgversion 3.13 +test -d %{buildroot}%{_usr}/lib/python3.13/site-packages/%{modname}/ +test -d %{buildroot}%{_usr}/lib/python3.13/site-packages/%{modname}-%{version}.dist-info/ +diff %{pyproject_files} <(grep -F python3.13/site-packages %{pyproject_files}) %global python3_pkgversion 3 %endif @@ -121,5 +150,10 @@ diff %{pyproject_files} <(grep -F python3.12/site-packages %{pyproject_files}) %global python3_pkgversion 3.12 %files -n python%{python3_pkgversion}-%{modname} -f %{pyproject_files} %doc README.rst *.md +%endif +%if 0%{?rhel} == 9 || 0%{?rhel} == 10 +%global python3_pkgversion 3.13 +%files -n python%{python3_pkgversion}-%{modname} -f %{pyproject_files} +%doc README.rst *.md %global python3_pkgversion 3 %endif