## START: Set by rpmautospec ## (rpmautospec version 0.2.5) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec # Unset -s on python shebang - ensure that extensions installed with pip # to user locations are seen and properly loaded %global py3_shebang_flags %(echo %py3_shebang_flags | sed s/s//) %global srcname jupyter-console %global srcname_ jupyter_console Name: python-%{srcname} Version: 6.4.3 Release: %autorelease Summary: Jupyter terminal console License: BSD URL: https://jupyter.org Source0: %pypi_source %{srcname_} BuildArch: noarch BuildRequires: python3-devel %description An IPython-like terminal frontend for Jupyter kernels in any language. %package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3dist(pillow) BuildRequires: python3dist(pytest) BuildRequires: python3dist(pyzmq) %description -n python3-%{srcname} An IPython-like terminal frontend for Jupyter kernels in any language. %package -n python-%{srcname}-doc Summary: jupyter-console documentation BuildArch: noarch BuildRequires: make BuildRequires: python3dist(sphinx) BuildRequires: python3dist(sphinx-rtd-theme) BuildRequires: python3dist(sphinxcontrib-github-alt) %description -n python-%{srcname}-doc Documentation for jupyter-console %prep %autosetup -n %{srcname_}-%{version} -p1 # setuptools is used, but only implicitly through pip, not explicitly. sed -i 's/distutils.core/setuptools/g' setup.py %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel # generate html docs %make_build -C docs html PYTHONPATH="%{pyproject_build_lib}" mv docs/_build/html . # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %install %pyproject_install %pyproject_save_files %{srcname_} %check %{pytest} -ra # assert we can start the console ad run a simple command export PATH=%{buildroot}%{_bindir}:$PATH export PYTHONPATH=%{buildroot}%{python3_sitelib} echo 'exit()' | jupyter-console --simple-prompt %files -n python3-%{srcname} -f %{pyproject_files} %doc README.md %{_bindir}/%{srcname} %files -n python-%{srcname}-doc %doc html %license LICENSE %changelog * Wed Mar 23 2022 Miro Hrončok 6.4.3-2 - Prepare spec for multiple flags in %py3_shebang_flags * Thu Mar 10 2022 Elliott Sales de Andrade 6.4.3-1 - Update to latest version (#2061127) * Sun Mar 06 2022 Elliott Sales de Andrade 6.4.2-2 - Fix doc builds * Sun Mar 06 2022 Elliott Sales de Andrade 6.4.2-1 - Update to latest version (#2061127) * Sun Mar 06 2022 Elliott Sales de Andrade 6.4.0-12 - Switch to latest Python macros * Tue Jan 25 2022 Miro Hrončok - 6.4.0-8 - Further compatibility with jupyter-client 7 * Fri Jan 21 2022 Fedora Release Engineering - 6.4.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Nov 29 2021 Karolina Surma - 0.6.4-6 - Remove -s from Python shebang in `jupyter-console` to let Jupyter see pip installed extensions * Tue Aug 31 2021 Lumír Balhar - 0.6.4-5 - Fix compatibility with jupyter-client 7 * Fri Jul 23 2021 Fedora Release Engineering - 6.4.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jul 02 2021 Miro Hrončok - 6.4.0-3 - Support Python 3.10 - Generate the documentation completely - Fixes: rhbz#1978009 * Fri Jun 04 2021 Python Maint - 6.4.0-2 - Rebuilt for Python 3.10 * Tue Mar 23 2021 Elliott Sales de Andrade - 6.4.0-1 - Update to latest version (#1942249) * Sun Mar 21 2021 Elliott Sales de Andrade - 6.3.0-1 - Update to latest version (#1939562) * Wed Jan 27 2021 Fedora Release Engineering - 6.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Aug 28 2020 Elliott Sales de Andrade - 6.2.0-1 - Update to latest version (#1873638) * Wed Jul 29 2020 Fedora Release Engineering - 6.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Elliott Sales de Andrade - 6.1.0-3 - Backport Python 3.9 fix * Tue May 26 2020 Miro Hrončok - 6.1.0-3 - Rebuilt for Python 3.9 * Sat May 16 2020 Itamar Reis Peixoto - 6.1.0-2 - Change spec to build with prompt_toolkit 3.0.5 * Tue Jan 28 2020 Elliott Sales de Andrade - 6.1.0-1 - Update to latest version * Thu Oct 03 2019 Miro Hrončok - 6.0.0-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 6.0.0-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 6.0.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu May 09 2019 Elliott Sales de Andrade - 6.0.0-1 - Initial package.