]> git.pld-linux.org Git - packages/python3-numpydoc.git/blame - python3-numpydoc.spec
- update BRs
[packages/python3-numpydoc.git] / python3-numpydoc.spec
CommitLineData
c2447f6d
JB
1#
2# Conditional build:
3%bcond_without tests # unit tests
4%bcond_without python2 # CPython 2.x module
5%bcond_without python3 # CPython 3.x module
6
7Summary: Sphinx extension to support docstrings in Numpy format
8Summary(pl.UTF-8): Rozszerzenie Sphinksa do obsług docstringów w formacie Numpy
b2f23554 9Name: python3-numpydoc
87965f08 10Version: 1.1.0
c2447f6d
JB
11Release: 1
12License: BSD
13Group: Libraries/Python
14#Source0Download: https://pypi.org/simple/numpydoc/
15Source0: https://files.pythonhosted.org/packages/source/n/numpydoc/numpydoc-%{version}.tar.gz
87965f08 16# Source0-md5: 2f05c4592e007b7a1fa37ddcb7e0e91b
c2447f6d 17URL: https://pypi.org/project/numpydoc/
b2f23554 18BuildRequires: python3-modules >= 1:3.5
c2447f6d
JB
19BuildRequires: python3-setuptools
20%if %{with tests}
21BuildRequires: python3-Sphinx >= 1.6.5
22BuildRequires: python3-jinja2 >= 2.3
47687831
JR
23BuildRequires: python3-pluggy
24BuildRequires: python3-py
c2447f6d
JB
25BuildRequires: python3-pytest
26%endif
c2447f6d
JB
27BuildRequires: rpm-pythonprov
28BuildRequires: rpmbuild(macros) >= 1.714
b2f23554 29Requires: python3-modules >= 1:3.5
c2447f6d
JB
30BuildArch: noarch
31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33%description
34This package provides the numpydoc Sphinx extension for handling
35docstrings formatted according to the NumPy documentation format. The
36extension also adds the code description directives "np:function",
37"np-c:function", etc.
38
39%description -l pl.UTF-8
40Ten pakiet zawiera rozszerzenie Sphinksa do obsługi docstringów
41sformatowanych zgodnie z formatem dokumentacji NumPy. Rozszerzenie
42dodaje także dyrektywy opisu kodu "np:function", "np-c:function" itp.
43
c2447f6d
JB
44%prep
45%setup -q -n numpydoc-%{version}
46
47%build
c2447f6d
JB
48%py3_build
49
50%if %{with tests}
51%{__python3} -m pytest numpydoc/tests
52%endif
c2447f6d
JB
53
54%install
55rm -rf $RPM_BUILD_ROOT
56
c2447f6d 57%py3_install
bc69b252
JB
58
59%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/numpydoc/tests
c2447f6d
JB
60
61%clean
62rm -rf $RPM_BUILD_ROOT
63
64%if %{with python2}
65%files
66%defattr(644,root,root,755)
67%doc LICENSE.txt README.rst
c2447f6d
JB
68%{py3_sitescriptdir}/numpydoc
69%{py3_sitescriptdir}/numpydoc-%{version}-py*.egg-info
70%endif
This page took 0.076485 seconds and 4 git commands to generate.