]> git.pld-linux.org Git - packages/python3-sphinx_argparse.git/blob - python3-sphinx_argparse.spec
- python-sphinx_argparse.spec updated to 0.4.0 for python 3.7+
[packages/python3-sphinx_argparse.git] / python3-sphinx_argparse.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # unit tests
4
5 Summary:        Sphinx extension that automatically documents argparse commands and options
6 Summary(pl.UTF-8):      Rozszerzenie Sphinksa automatycznie dokumentujÄ…ce polecenia i opcje argparse
7 Name:           python3-sphinx_argparse
8 Version:        0.4.0
9 Release:        1
10 License:        MIT
11 Group:          Libraries/Python
12 #Source0Download: https://pypi.org/simple/sphinx-argparse/
13 Source0:        https://files.pythonhosted.org/packages/source/s/sphinx-argparse/sphinx_argparse-%{version}.tar.gz
14 # Source0-md5:  db32f8c3208cf136b29268d1bdf61f71
15 URL:            https://pypi.org/project/sphinx-argparse/
16 BuildRequires:  python3-modules >= 1:3.7
17 BuildRequires:  python3-setuptools
18 %if %{with tests}
19 BuildRequires:  python3-Sphinx >= 1.2.0
20 BuildRequires:  python3-pytest
21 %endif
22 BuildRequires:  rpm-pythonprov
23 BuildRequires:  rpmbuild(macros) >= 1.714
24 Requires:       python3-modules >= 1:3.7
25 Conflicts:      python3-commonmark < 0.5.6
26 BuildArch:      noarch
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 Sphinx extension that automatically documents argparse commands and
31 options.
32
33 %description -l pl.UTF-8
34 Rozszerzenie Sphinksa automatycznie dokumentujÄ…ce polecenia i opcje
35 argparse.
36
37 %prep
38 %setup -q -n sphinx_argparse-%{version}
39
40 %build
41 %py3_build
42
43 %if %{with tests}
44 %{__python3} -m pytest test
45 %endif
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49
50 %py3_install
51
52 %{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/test
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc LICENSE README.md
60 %{py3_sitescriptdir}/sphinxarg
61 %{py3_sitescriptdir}/sphinx_argparse-%{version}-py*.egg-info
This page took 0.045814 seconds and 3 git commands to generate.