]> git.pld-linux.org Git - packages/python3-sphinx_copybutton.git/blob - python3-sphinx_copybutton.spec
1a57fb2ebdb97d3d283a854145b4e1f717aeb92e
[packages/python3-sphinx_copybutton.git] / python3-sphinx_copybutton.spec
1 #
2 # Conditional build:
3 %bcond_with     doc     # Sphinx documentation (some files missing in sdist)
4
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
8 Version:        0.5.0
9 Release:        2
10 License:        MIT
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
20 %if %{with doc}
21 BuildRequires:  python3-ipython
22 BuildRequires:  python3-myst_nb
23 BuildRequires:  python3-sphinx_book_theme
24 BuildRequires:  sphinx-pdg-3 >= 1.8
25 %endif
26 Requires:       python3-modules >= 1:3.6
27 BuildArch:      noarch
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 A small Sphinx extension to add a "copy" button to code blocks.
32
33 %description -l pl.UTF-8
34 Małe rozszerzenie Sphinksa dodające przycisk kopiujący do fragmentów
35 kodu.
36
37 %prep
38 %setup -q -n sphinx-copybutton-%{version}
39
40 %build
41 %py3_build
42
43 %if %{with doc}
44 %{__make} -C docs html \
45         SPHINXBUILD=sphinx-build-3
46 %endif
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %py3_install
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %files
57 %defattr(644,root,root,755)
58 %doc README.md
59 %{py3_sitescriptdir}/sphinx_copybutton
60 %{py3_sitescriptdir}/sphinx_copybutton-%{version}-py*.egg-info
This page took 0.074058 seconds and 2 git commands to generate.