3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
6 Summary: Add a copy button to each of your code cells
7 Summary(pl.UTF-8): Dodanie przycisku do kopiowania do każdej komórki z kodem
8 Name: python-sphinx_copybutton
9 # keep 0.2.6 here for python2 support
13 Group: Libraries/Python
14 #Source0Download: https://pypi.org/simple/sphinx-copybutton/
15 Source0: https://files.pythonhosted.org/packages/source/s/sphinx-copybutton/sphinx-copybutton-%{version}.tar.gz
16 # Source0-md5: 0c3380264ff0b7543bdff0f0f154c87f
17 Patch0: %{name}-deps.patch
18 URL: https://pypi.org/project/sphinx-copybutton/
20 BuildRequires: python-modules >= 1:2.5
21 BuildRequires: python-setuptools
24 BuildRequires: python3-modules >= 1:3.2
25 BuildRequires: python3-setuptools
27 BuildRequires: rpm-pythonprov
28 BuildRequires: rpmbuild(macros) >= 1.714
29 Requires: python-modules >= 1:2.5
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 A small Sphinx extension to add a "copy" button to code blocks.
36 %description -l pl.UTF-8
37 Małe rozszerzenie Sphinksa dodające przycisk kopiujący do fragmentów
40 %package -n python3-sphinx_copybutton
41 Summary: Add a copy button to each of your code cells
42 Summary(pl.UTF-8): Dodanie przycisku do kopiowania do każdej komórki z kodem
43 Group: Libraries/Python
44 Requires: python3-modules >= 1:3.2
46 %description -n python3-sphinx_copybutton
47 A small Sphinx extension to add a "copy" button to code blocks.
49 %description -n python3-sphinx_copybutton -l pl.UTF-8
50 Małe rozszerzenie Sphinksa dodające przycisk kopiujący do fragmentów
54 %setup -q -n sphinx-copybutton-%{version}
67 rm -rf $RPM_BUILD_ROOT
80 rm -rf $RPM_BUILD_ROOT
84 %defattr(644,root,root,755)
86 %{py_sitescriptdir}/sphinx_copybutton
87 %{py_sitescriptdir}/sphinx_copybutton-%{version}-py*.egg-info
91 %files -n python3-sphinx_copybutton
92 %defattr(644,root,root,755)
94 %{py3_sitescriptdir}/sphinx_copybutton
95 %{py3_sitescriptdir}/sphinx_copybutton-%{version}-py*.egg-info