[packages/python-docrepr] - new
qboosh
qboosh at pld-linux.org
Sat Apr 18 15:09:31 CEST 2020
commit cb9df0006652625f5f61d64244a39d2cc0921930
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Apr 18 15:09:32 2020 +0200
- new
python-docrepr.spec | 99 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 99 insertions(+)
---
diff --git a/python-docrepr.spec b/python-docrepr.spec
new file mode 100644
index 0000000..7aa327b
--- /dev/null
+++ b/python-docrepr.spec
@@ -0,0 +1,99 @@
+#
+# Conditional build:
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+Summary: Rendering Python docstrings in HTML
+Summary(pl.UTF-8): Obrazowanie pythonowych docstringów w HTML-u
+Name: python-docrepr
+Version: 0.1.1
+Release: 1
+License: BSD
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/docrepr/
+Source0: https://files.pythonhosted.org/packages/source/d/docrepr/docrepr-%{version}.tar.gz
+# Source0-md5: e2d1b964a9f63518dcbd1d31b7273104
+URL: https://pypi.org/project/docrepr/
+%if %{with python2}
+BuildRequires: python-modules >= 1:2.5
+BuildRequires: python-setuptools
+%endif
+%if %{with python3}
+BuildRequires: python3-modules >= 1:3.2
+BuildRequires: python3-setuptools
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python-modules >= 1:2.5
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+docrepr renders Python docstrings in HTML. It is based on the
+sphinxify module developed by Tim Dumol for the Sage Notebook and the
+utils.inspector developed for their Spyder IDE.
+
+%description -l pl.UTF-8
+docrepr obrazuje pythonowe docstringi w HTML-u. Jest oparty na module
+sphinxify, stworzonym przez Tima Dumola dla Sage Nootebooka oraz
+utils.inspector, powstałego dla ich Spyder IDE.
+
+%package -n python3-docrepr
+Summary: Rendering Python docstrings in HTML
+Summary(pl.UTF-8): Obrazowanie pythonowych docstringów w HTML-u
+Group: Libraries/Python
+Requires: python3-modules >= 1:3.2
+
+%description -n python3-docrepr
+docrepr renders Python docstrings in HTML. It is based on the
+sphinxify module developed by Tim Dumol for the Sage Notebook and the
+utils.inspector developed for their Spyder IDE.
+
+%description -n python3-docrepr -l pl.UTF-8
+docrepr obrazuje pythonowe docstringi w HTML-u. Jest oparty na module
+sphinxify, stworzonym przez Tima Dumola dla Sage Nootebooka oraz
+utils.inspector, powstałego dla ich Spyder IDE.
+
+%prep
+%setup -q -n docrepr-%{version}
+
+%build
+%if %{with python2}
+%py_build
+%endif
+
+%if %{with python3}
+%py3_build
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
+
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%{py_sitescriptdir}/docrepr
+%{py_sitescriptdir}/docrepr-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-docrepr
+%defattr(644,root,root,755)
+%doc README.md
+%{py3_sitescriptdir}/docrepr
+%{py3_sitescriptdir}/docrepr-%{version}-py*.egg-info
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-docrepr.git/commitdiff/cb9df0006652625f5f61d64244a39d2cc0921930
More information about the pld-cvs-commit
mailing list