]> git.pld-linux.org Git - packages/python3-sphinx_copybutton.git/blame - python3-sphinx_copybutton.spec
rebuild with tests and docs
[packages/python3-sphinx_copybutton.git] / python3-sphinx_copybutton.spec
CommitLineData
02fe3579
JB
1#
2# Conditional build:
3%bcond_with doc # Sphinx documentation (some files missing in sdist)
4
5Summary: Add a copy button to each of your code cells
6Summary(pl.UTF-8): Dodanie przycisku do kopiowania do każdej komórki z kodem
7Name: python3-sphinx_copybutton
8Version: 0.5.0
bbc9241f 9Release: 5
02fe3579
JB
10License: MIT
11Group: Libraries/Python
12#Source0Download: https://pypi.org/simple/sphinx-copybutton/
13Source0: https://files.pythonhosted.org/packages/source/s/sphinx-copybutton/sphinx-copybutton-%{version}.tar.gz
14# Source0-md5: 223f26b9ba5397e5554075bc540a3b46
15URL: https://pypi.org/project/sphinx-copybutton/
16BuildRequires: python3-modules >= 1:3.6
17BuildRequires: python3-setuptools
18BuildRequires: rpm-pythonprov
19BuildRequires: rpmbuild(macros) >= 1.714
20%if %{with doc}
21BuildRequires: python3-ipython
22BuildRequires: python3-myst_nb
23BuildRequires: python3-sphinx_book_theme
24BuildRequires: sphinx-pdg-3 >= 1.8
25%endif
26Requires: python3-modules >= 1:3.6
27BuildArch: noarch
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31A small Sphinx extension to add a "copy" button to code blocks.
32
33%description -l pl.UTF-8
34Małe rozszerzenie Sphinksa dodające przycisk kopiujący do fragmentów
35kodu.
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
49rm -rf $RPM_BUILD_ROOT
50
51%py3_install
52
53%clean
54rm -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.094131 seconds and 4 git commands to generate.