[packages/python-sphinx_testing] - new

qboosh qboosh at pld-linux.org
Fri Apr 10 18:30:16 CEST 2020


commit 9e074c8b877f91d704564e6c93885db524563676
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Apr 10 18:30:11 2020 +0200

    - new

 python-sphinx_testing.spec | 118 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 118 insertions(+)
---
diff --git a/python-sphinx_testing.spec b/python-sphinx_testing.spec
new file mode 100644
index 0000000..345bbd9
--- /dev/null
+++ b/python-sphinx_testing.spec
@@ -0,0 +1,118 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+Summary:	Testing utility classes and functions for Sphinx extensions
+Summary(pl.UTF-8):	Klasy i funkcje narzędziowe do testowania rozszerzeń Sphinksa
+Name:		python-sphinx_testing
+Version:	1.0.1
+Release:	1
+License:	BSD
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/sphinx-testing/
+Source0:	https://files.pythonhosted.org/packages/source/s/sphinx-testing/sphinx-testing-%{version}.tar.gz
+# Source0-md5:	0f60adab66d877ac8c2c23f78dc7ed32
+URL:		https://pypi.org/project/sphinx-testing/
+%if %{with python2}
+BuildRequires:	python-modules >= 1:2.6
+BuildRequires:	python-setuptools
+%if %{with tests}
+BuildRequires:	python-Sphinx < 2
+BuildRequires:	python-mock
+BuildRequires:	python-nose
+BuildRequires:	python-six
+%if "%{py_ver}" < "2.7"
+BuildRequires:	python-unittest2
+%endif
+%endif
+%endif
+%if %{with python3}
+BuildRequires:	python3-modules >= 1:3.4
+BuildRequires:	python3-setuptools
+%if %{with tests}
+BuildRequires:	python3-Sphinx
+BuildRequires:	python3-nose
+BuildRequires:	python3-six
+%endif
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python-modules >= 1:2.6
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+sphinx-testing provides testing utility classes and functions for
+Sphinx extensions.
+
+%description -l pl.UTF-8
+sphinx-testing udostępnia klasy i funkcje narzędziowe do testowania
+rozszerzeń Sphinksa.
+
+%package -n python3-sphinx_testing
+Summary:	Testing utility classes and functions for Sphinx extensions
+Summary(pl.UTF-8):	Klasy i funkcje narzędziowe do testowania rozszerzeń Sphinksa
+Group:		Libraries/Python
+Requires:	python3-modules >= 1:3.4
+
+%description -n python3-sphinx_testing
+sphinx-testing provides testing utility classes and functions for
+Sphinx extensions.
+
+%description -n python3-sphinx_testing -l pl.UTF-8
+sphinx-testing udostępnia klasy i funkcje narzędziowe do testowania
+rozszerzeń Sphinksa.
+
+%prep
+%setup -q -n sphinx-testing-%{version}
+
+%build
+%if %{with python2}
+%py_build
+
+%if %{with tests}
+%{__python} -m nose tests
+%endif
+%endif
+
+%if %{with python3}
+%py3_build
+
+%if %{with tests}
+%{__python3} -m nose tests
+%endif
+%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 AUTHORS CHANGES.rst LICENSE README.rst
+%{py_sitescriptdir}/sphinx_testing
+%{py_sitescriptdir}/sphinx_testing-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-sphinx_testing
+%defattr(644,root,root,755)
+%doc AUTHORS CHANGES.rst LICENSE README.rst
+%{py3_sitescriptdir}/sphinx_testing
+%{py3_sitescriptdir}/sphinx_testing-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-sphinx_testing.git/commitdiff/9e074c8b877f91d704564e6c93885db524563676



More information about the pld-cvs-commit mailing list