3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
6 Summary: Rendering Python docstrings in HTML
7 Summary(pl.UTF-8): Obrazowanie pythonowych docstringów w HTML-u
12 Group: Libraries/Python
13 #Source0Download: https://pypi.org/simple/docrepr/
14 Source0: https://files.pythonhosted.org/packages/source/d/docrepr/docrepr-%{version}.tar.gz
15 # Source0-md5: e2d1b964a9f63518dcbd1d31b7273104
16 URL: https://pypi.org/project/docrepr/
18 BuildRequires: python-modules >= 1:2.5
19 BuildRequires: python-setuptools
22 BuildRequires: python3-modules >= 1:3.2
23 BuildRequires: python3-setuptools
25 BuildRequires: rpm-pythonprov
26 BuildRequires: rpmbuild(macros) >= 1.714
27 Requires: python-modules >= 1:2.5
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 docrepr renders Python docstrings in HTML. It is based on the
33 sphinxify module developed by Tim Dumol for the Sage Notebook and the
34 utils.inspector developed for their Spyder IDE.
36 %description -l pl.UTF-8
37 docrepr obrazuje pythonowe docstringi w HTML-u. Jest oparty na module
38 sphinxify, stworzonym przez Tima Dumola dla Sage Nootebooka oraz
39 utils.inspector, powstałego dla ich Spyder IDE.
41 %package -n python3-docrepr
42 Summary: Rendering Python docstrings in HTML
43 Summary(pl.UTF-8): Obrazowanie pythonowych docstringów w HTML-u
44 Group: Libraries/Python
45 Requires: python3-modules >= 1:3.2
47 %description -n python3-docrepr
48 docrepr renders Python docstrings in HTML. It is based on the
49 sphinxify module developed by Tim Dumol for the Sage Notebook and the
50 utils.inspector developed for their Spyder IDE.
52 %description -n python3-docrepr -l pl.UTF-8
53 docrepr obrazuje pythonowe docstringi w HTML-u. Jest oparty na module
54 sphinxify, stworzonym przez Tima Dumola dla Sage Nootebooka oraz
55 utils.inspector, powstałego dla ich Spyder IDE.
58 %setup -q -n docrepr-%{version}
70 rm -rf $RPM_BUILD_ROOT
83 rm -rf $RPM_BUILD_ROOT
87 %defattr(644,root,root,755)
89 %{py_sitescriptdir}/docrepr
90 %{py_sitescriptdir}/docrepr-%{version}-py*.egg-info
94 %files -n python3-docrepr
95 %defattr(644,root,root,755)
97 %{py3_sitescriptdir}/docrepr
98 %{py3_sitescriptdir}/docrepr-%{version}-py*.egg-info