%global python3_pkgversion 3.11 Name: python-pytest-jupyter Version: 0.10.1 Release: 2.ac17.py3.11%{?dist} Summary: A pytest plugin for testing Jupyter libraries and extensions # BSD for pytest-jupyter itself and # MIT is for bundled parts of tornasync package License: BSD-3-Clause AND MIT URL: https://jupyter.org Source: %{pypi_source pytest_jupyter} BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel %global _description %{expand: A set of pytest plugins for Jupyter libraries and extensions.} %description %_description %package -n python%{python3_pkgversion}-pytest-jupyter Summary: %{summary} %description -n python%{python3_pkgversion}-pytest-jupyter %_description %prep %autosetup -p1 -n pytest_jupyter-%{version} %generate_buildrequires %pyproject_buildrequires -x client %build %pyproject_wheel %install %pyproject_install %pyproject_save_files pytest_jupyter %check # No real tests now as there is a circular dependency # between pytest_jupyter and jupyter_server. # %%pytest %pyproject_check_import for b in $(find %{buildroot}%{_bindir}/ -type f) ; do mv "$b" $(sed -re "s|(.*)$|\1-%{python3_pkgversion}|"<<<"$b"); done for m in $(find %{buildroot}%{_mandir}/ -type f) ; do mv "$m" $(sed -re "s|(.*).([1-8])(.*)$|\1-%{python3_pkgversion}.\2\3|"<<<"$m"); done for m in $(find %{buildroot}%{_datadir}/locale/* -type f) ; do mv "$m" $(sed -re "s|(.*).mo$|\1-%{python3_pkgversion}.mo|"<<<"$m"); done for l in $(find %{buildroot}/usr/lib64/lib* -type f -o -type l) ; do mv "$l" $(sed -re "s|(.*).so(.*)$|\1-py%{python3_pkgversion}.so\2|"<<<"$l"); done for p in $(find %{buildroot}/usr/lib64/pkgconfig/* -type f) ; do mv "$p" $(sed -re "s|(.*).pc$|\1-py%{python3_pkgversion}.pc|"<<<"$p"); done %files -n python%{python3_pkgversion}-pytest-jupyter -f %{pyproject_files} %doc README.md %pyproject_extras_subpkg -n python3-pytest-jupyter server %pyproject_extras_subpkg -n python3-pytest-jupyter client %changelog * Fri May 24 2024 Ding-Yi Chen - 0.10.1-2.ac17.py3.11 - Cut corner packaging