3 %bcond_with doc # Sphinx documentation (some files missing in sdist)
5 Summary: Add a copy button to each of your code cells
6 Summary(pl.UTF-8): Dodanie przycisku do kopiowania do każdej komórki z kodem
7 Name: python3-sphinx_copybutton
11 Group: Libraries/Python
12 #Source0Download: https://pypi.org/simple/sphinx-copybutton/
13 Source0: https://files.pythonhosted.org/packages/source/s/sphinx-copybutton/sphinx-copybutton-%{version}.tar.gz
14 # Source0-md5: 223f26b9ba5397e5554075bc540a3b46
15 URL: https://pypi.org/project/sphinx-copybutton/
16 BuildRequires: python3-modules >= 1:3.6
17 BuildRequires: python3-setuptools
18 BuildRequires: rpm-pythonprov
19 BuildRequires: rpmbuild(macros) >= 1.714
21 BuildRequires: python3-ipython
22 BuildRequires: python3-myst_nb
23 BuildRequires: python3-sphinx_book_theme
24 BuildRequires: sphinx-pdg-3 >= 1.8
26 Requires: python3-modules >= 1:3.6
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 A small Sphinx extension to add a "copy" button to code blocks.
33 %description -l pl.UTF-8
34 Małe rozszerzenie Sphinksa dodające przycisk kopiujący do fragmentów
38 %setup -q -n sphinx-copybutton-%{version}
44 %{__make} -C docs html \
45 SPHINXBUILD=sphinx-build-3
49 rm -rf $RPM_BUILD_ROOT
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
59 %{py3_sitescriptdir}/sphinx_copybutton
60 %{py3_sitescriptdir}/sphinx_copybutton-%{version}-py*.egg-info