# DOCUMENTATION NOTE: We used to build the documentation, but then upstream # started depending on sphinx-book-theme, which we do not have in Fedora. # Packaging it would require adding about 3 dozen new packages to Fedora, which # is more work than I want to go to for this package, which I only need to # generate documentation for another package. %global srcname sphinx-copybutton Name: python-%{srcname} Version: 0.4.0 Release: 2%{?dist} Summary: Add a copy button to code cells in Sphinx docs License: MIT URL: https://sphinx-copybutton.readthedocs.io/en/latest/ Source0: %{pypi_source} BuildArch: noarch BuildRequires: make BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-ipython-sphinx BuildRequires: %{py3_dist setuptools} # This can be removed when F38 reaches EOL Obsoletes: %{name}-doc < 0.3.2 Provides: %{name}-doc = %{version}-%{release} %global _description %{expand: Sphinx-copybutton does one thing: add a little "copy" button to the right of your code blocks. If the code block overlaps to the right of the text area, you can just click the button to get the whole thing.} %description %_description %package -n python%{python3_pkgversion}-%{srcname} Summary: Add a copy button to code cells in Sphinx docs %description -n python%{python3_pkgversion}-%{srcname} %_description %prep %autosetup -n %{srcname}-%{version} %build %py3_build %install %py3_install %check %py3_check_import sphinx_copybutton %files -n python%{python3_pkgversion}-%{srcname} %doc README.md %license LICENSE %{python3_sitelib}/sphinx_copybutton* %changelog * Fri Jul 23 2021 Fedora Release Engineering - 0.4.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon Jul 5 2021 Jerry James - 0.4.0-1 - Version 0.4.0 * Thu Jul 1 2021 Jerry James - 0.3.3-1 - Version 0.3.3 - Drop -doc subpackage due to missing dependencies * Fri Jun 04 2021 Python Maint - 0.3.1-3 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Nov 2 2020 Jerry James - 0.3.1-1 - Version 0.3.1 * Mon Oct 5 2020 Jerry James - 0.3.0-4 - Explicitly BR setuptools * Mon Sep 21 2020 Jerry James - 0.3.0-3 - Remove pyproject and tox bits, not supported by this package (bz 1881047) * Wed Jul 29 2020 Fedora Release Engineering - 0.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Sat Jul 25 2020 Jerry James - 0.3.0-1 - Version 0.3.0 * Wed Jun 17 2020 Jerry James - 0.2.12-1 - Version 0.2.12 * Tue May 26 2020 Miro HronĨok - 0.2.11-2 - Rebuilt for Python 3.9 * Thu Apr 23 2020 Jerry James - 0.2.11-1 - Version 0.2.11 * Thu Apr 2 2020 Jerry James - 0.2.10-1 - Version 0.2.10 * Thu Jan 30 2020 Fedora Release Engineering - 0.2.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Dec 6 2019 Jerry James - 0.2.6-2 - Ship the LICENSE file with the -doc subpackage too * Thu Dec 5 2019 Jerry James - 0.2.6-1 - Initial RPM