## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global srcname mplcursors %bcond_without doc Name: python-%{srcname} Version: 0.6 Release: %autorelease Summary: Interactive data selection cursors for Matplotlib License: MIT URL: https://github.com/anntzer/mplcursors Source0: %pypi_source mplcursors BuildArch: noarch # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} BuildRequires: python3-devel BuildRequires: python3dist(pytest) %description mplcursors – Interactive data selection cursors for Matplotlib %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} mplcursors – Interactive data selection cursors for Matplotlib %if %{with doc} %package -n python-%{srcname}-doc Summary: mplcursors documentation %description -n python-%{srcname}-doc Documentation for mplcursors %endif %prep %autosetup -n %{srcname}-%{version} -p1 %generate_buildrequires %pyproject_buildrequires %{?with_doc:-x docs} %build %pyproject_wheel %if %{with doc} # generate html docs PYTHONPATH="$PWD/build/lib" sphinx-build-3 doc/source html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %endif %install %pyproject_install %pyproject_save_files %{srcname} %check %{pytest} %files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE.txt %doc README.rst examples/README.txt %{python3_sitelib}/%{srcname}.pth %if %{with doc} %files -n python-%{srcname}-doc %doc html %license LICENSE.txt %endif %changelog ## START: Generated by rpmautospec * Thu Oct 31 2024 Elliott Sales de Andrade - 0.6-1 - Update to latest version (#2322755) * Fri Jul 19 2024 Fedora Release Engineering - 0.5.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Jun 09 2024 Python Maint - 0.5.3-5 - Rebuilt for Python 3.13 * Mon Apr 15 2024 Tomáš Hrnčiar - 0.5.3-4 - Backport upstream patch needed for compatibility with pytest 8 * Fri Jan 26 2024 Fedora Release Engineering - 0.5.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 0.5.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 12 2024 Elliott Sales de Andrade - 0.5.3-1 - Update to latest version (#2257973) * Thu Sep 14 2023 Elliott Sales de Andrade - 0.5.2-8 - Fix tests with Matplotlib 3.8.0 * Fri Jul 21 2023 Fedora Release Engineering - 0.5.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jul 07 2023 Elliott Sales de Andrade - 0.5.2-6 - Fix invalid escape sequence errors on Python 3.12 * Thu Jun 29 2023 Python Maint - 0.5.2-5 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 0.5.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Mon Dec 19 2022 Elliott Sales de Andrade - 0.5.2-3 - Drop support for i686 * Sun Dec 18 2022 Elliott Sales de Andrade - 0.5.2-2 - Remove workaround for old pip in F35 * Mon Oct 17 2022 Elliott Sales de Andrade - 0.5.2-1 - Update to latest version (#2130370) * Mon Aug 22 2022 Elliott Sales de Andrade - 0.5.1-5 - Fix compatibility with Matplotlib 3.6 * Fri Jul 22 2022 Fedora Release Engineering - 0.5.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 0.5.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sat Nov 20 2021 Elliott Sales de Andrade - 0.5.1-2 - Force in-tree build for older pip * Sat Nov 20 2021 Elliott Sales de Andrade - 0.5.1-1 - Update to latest version (#2020854) * Sat Nov 20 2021 Elliott Sales de Andrade - 0.4-8 - Switch to latest Python macros * Wed Sep 01 2021 Elliott Sales de Andrade - 0.4-5 - Backport fix for Matplotlib 3.5.0b1 * Fri Jul 23 2021 Fedora Release Engineering - 0.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.4-3 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Dec 12 2020 Elliott Sales de Andrade - 0.4-1 - Update to latest version (#1906201) * Sun Aug 02 2020 Elliott Sales de Andrade - 0.3-5 - Backport fixes to work with Matplotlib 3.3 * Sat Aug 01 2020 Fedora Release Engineering - 0.3-5 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.3-3 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Sep 17 2019 Elliott Sales de Andrade - 0.3-1 - Update to latest version * Mon Aug 19 2019 Miro Hrončok - 0.2.1-4 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Sep 25 2018 Elliott Sales de Andrade - 0.2.1-1 - Update to latest version * Fri Aug 17 2018 Elliott Sales de Andrade - 0.2-2 - Remove vendored source code * Fri Aug 17 2018 Elliott Sales de Andrade - 0.2-1 - Initial package. ## END: Generated by rpmautospec