CI: Adjust a couple of specs to allow Python 3.11 builds on RHEL 9
This allows running CI tests as:
./mocktest.sh python-isort --define 'python3_pkgversion 3.11'
Which only makes sense in RHEL, and hence is not done here.
The purpose of this change in Fedora is to make the test spec files identical to c9s,
for easier future synchronization.
Related c9s commit:
e8933acb12
This commit is contained in:
parent
d14a2dbc54
commit
4f16920edb
@ -9,7 +9,7 @@ License: MIT
|
|||||||
URL: https://github.com/timothycrosley/%{modname}
|
URL: https://github.com/timothycrosley/%{modname}
|
||||||
Source0: %{url}/archive/%{version}-2/%{modname}-%{version}-2.tar.gz
|
Source0: %{url}/archive/%{version}-2/%{modname}-%{version}-2.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
BuildRequires: pyproject-rpm-macros
|
BuildRequires: pyproject-rpm-macros
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -17,10 +17,13 @@ This package contains executables.
|
|||||||
Building this tests that executables are not listed when +auto is not used
|
Building this tests that executables are not listed when +auto is not used
|
||||||
with %%pyproject_save_files.
|
with %%pyproject_save_files.
|
||||||
|
|
||||||
%package -n python3-%{modname}
|
This package also uses %%{python3_pkgversion} in name and has a very limited
|
||||||
|
set of dependencies -- allows to set a different value for it in the CI.
|
||||||
|
|
||||||
|
%package -n python%{python3_pkgversion}-%{modname}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
|
|
||||||
%description -n python3-%{modname}
|
%description -n python%{python3_pkgversion}-%{modname}
|
||||||
%{summary}.
|
%{summary}.
|
||||||
|
|
||||||
|
|
||||||
@ -50,7 +53,7 @@ test -d %{buildroot}%{python3_sitelib}/%{modname}-%{version}.dist-info/
|
|||||||
grep -F %{_bindir}/%{modname} %{pyproject_files} && exit 1 || true
|
grep -F %{_bindir}/%{modname} %{pyproject_files} && exit 1 || true
|
||||||
|
|
||||||
|
|
||||||
%files -n python3-%{modname} -f %{pyproject_files}
|
%files -n python%{python3_pkgversion}-%{modname} -f %{pyproject_files}
|
||||||
%doc README.rst *.md
|
%doc README.rst *.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{_bindir}/%{modname}
|
%{_bindir}/%{modname}
|
||||||
|
@ -8,11 +8,11 @@ URL: https://github.com/lepture/mistune
|
|||||||
Source0: %{url}/archive/v%{version}.tar.gz
|
Source0: %{url}/archive/v%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
BuildRequires: pyproject-rpm-macros
|
BuildRequires: pyproject-rpm-macros
|
||||||
|
|
||||||
# optional dependency, listed explicitly to have the extension module:
|
# optional dependency, listed explicitly to have the extension module:
|
||||||
BuildRequires: python3-Cython
|
BuildRequires: python%{python3_pkgversion}-Cython
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains an extension module. Does not contain pyproject.toml.
|
This package contains an extension module. Does not contain pyproject.toml.
|
||||||
@ -22,11 +22,13 @@ Building this tests:
|
|||||||
- default build backend without pyproject.toml
|
- default build backend without pyproject.toml
|
||||||
Check %%pyproject_check_import basic functionality.
|
Check %%pyproject_check_import basic functionality.
|
||||||
|
|
||||||
|
This package also uses %%{python3_pkgversion} in name and has a very limited
|
||||||
|
set of dependencies -- allows to set a different value for it in the CI.
|
||||||
|
|
||||||
%package -n python3-mistune
|
%package -n python%{python3_pkgversion}-mistune
|
||||||
Summary: %summary
|
Summary: %summary
|
||||||
|
|
||||||
%description -n python3-mistune
|
%description -n python%{python3_pkgversion}-mistune
|
||||||
%{summary}
|
%{summary}
|
||||||
|
|
||||||
|
|
||||||
@ -57,6 +59,6 @@ test -f %{buildroot}%{python3_sitearch}/mistune.py
|
|||||||
test -f %{buildroot}%{python3_sitearch}/mistune.cpython-*.so
|
test -f %{buildroot}%{python3_sitearch}/mistune.cpython-*.so
|
||||||
|
|
||||||
|
|
||||||
%files -n python3-mistune -f %{pyproject_files}
|
%files -n python%{python3_pkgversion}-mistune -f %{pyproject_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
Loading…
Reference in New Issue
Block a user