[packages/python-sphinx-prompt] - new
qboosh
qboosh at pld-linux.org
Sun Jul 22 14:39:39 CEST 2018
commit 898e70b3353f5734bd4eccb5ddccc1895d537423
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Jul 22 14:41:28 2018 +0200
- new
python-sphinx-prompt.spec | 91 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 91 insertions(+)
---
diff --git a/python-sphinx-prompt.spec b/python-sphinx-prompt.spec
new file mode 100644
index 0000000..ac1365a
--- /dev/null
+++ b/python-sphinx-prompt.spec
@@ -0,0 +1,91 @@
+#
+# Conditional build:
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+Summary: Sphinx directive to add unselectable prompt
+Summary(pl.UTF-8): Dyrektywa Sphinksa do dodawania pytań bez możliwości wyboru
+Name: python-sphinx-prompt
+Version: 1.0.0
+Release: 1
+License: BSD
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/sphinx-prompt/
+Source0: https://files.pythonhosted.org/packages/source/s/sphinx-prompt/sphinx-prompt-%{version}.tar.gz
+# Source0-md5: ab7844a8d9338528e85a0b1f6ecf565d
+URL: http://github.com/sbrunner/sphinx-prompt
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+%if %{with python2}
+BuildRequires: python-modules >= 2
+BuildRequires: python-setuptools
+%endif
+%if %{with python3}
+BuildRequires: python3-modules >= 1:3.2
+BuildRequires: python3-setuptools
+%endif
+Requires: python-modules >= 2
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Sphinx directive to add unselectable prompt.
+
+%description -l pl.UTF-8
+Dyrektywa Sphinksa do dodawania pytań bez możliwości wyboru.
+
+%package -n python3-sphinx-prompt
+Summary: Sphinx directive to add unselectable prompt
+Summary(pl.UTF-8): Dyrektywa Sphinksa do dodawania pytań bez możliwości wyboru
+Group: Libraries/Python
+Requires: python3-modules >= 1:3.2
+
+%description -n python3-sphinx-prompt
+Sphinx directive to add unselectable prompt.
+
+%description -n python3-sphinx-prompt -l pl.UTF-8
+Dyrektywa Sphinksa do dodawania pytań bez możliwości wyboru.
+
+%prep
+%setup -q -n sphinx-prompt-%{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.rst
+%{py_sitescriptdir}/sphinx-prompt
+%{py_sitescriptdir}/sphinx_prompt-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-sphinx-prompt
+%defattr(644,root,root,755)
+%doc README.rst
+%{py3_sitescriptdir}/sphinx-prompt
+%{py3_sitescriptdir}/sphinx_prompt-%{version}-py*.egg-info
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-sphinx-prompt.git/commitdiff/898e70b3353f5734bd4eccb5ddccc1895d537423
More information about the pld-cvs-commit
mailing list