commit 6c3b921dcac9da9ffb2df4eab1e8cf165da3dfe7
Author: Jakub Bogusz <[email protected]>
Date:   Sat Sep 21 21:32:08 2019 +0200

    - updated to 0.4.3

 python-sphinx_rtd_theme.spec | 25 +++++++++++++++++++++----
 1 file changed, 21 insertions(+), 4 deletions(-)
---
diff --git a/python-sphinx_rtd_theme.spec b/python-sphinx_rtd_theme.spec
index f324032..61f58db 100644
--- a/python-sphinx_rtd_theme.spec
+++ b/python-sphinx_rtd_theme.spec
@@ -2,28 +2,37 @@
 # Conditional build:
 %bcond_without python2 # CPython 2.x module
 %bcond_without python3 # CPython 3.x module
+%bcond_without tests   # unit tests
 
 %define        module  sphinx_rtd_theme
 Summary:       ReadTheDocs.org theme for Sphinx
 Summary(pl.UTF-8):     Motyw ReadTheDocs.org dla Sphinksa
 Name:          python-%{module}
-Version:       0.4.0
+Version:       0.4.3
 Release:       1
 License:       MIT
 Group:         Libraries/Python
 #Source0Download: https://pypi.org/simple/sphinx_rtd_theme/
 Source0:       
https://files.pythonhosted.org/packages/source/s/sphinx_rtd_theme/%{module}-%{version}.tar.gz
-# Source0-md5: 2393b28863f9576ca7074d764cb2f0e3
+# Source0-md5: 6c50f30bc39046f497d336039a0c13fa
 URL:           https://github.com/snide/sphinx_rtd_theme/
 BuildRequires: rpm-pythonprov
 BuildRequires: rpmbuild(macros) >= 1.714
 %if %{with python2}
 BuildRequires: python-modules >= 1:2.7
 BuildRequires: python-setuptools
+%if %{with tests}
+BuildRequires: python-pytest
+BuildRequires: python-readthedocs-sphinx-ext
+%endif
 %endif
 %if %{with python3}
 BuildRequires: python3-modules >= 1:3.3
 BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-pytest
+BuildRequires: python3-readthedocs-sphinx-ext
+%endif
 %endif
 Requires:      python-modules >= 1:2.7
 BuildArch:     noarch
@@ -54,11 +63,19 @@ wykonany przez readthedocs.org.
 
 %build
 %if %{with python2}
-%py_build %{?with_tests:test}
+%py_build
+
+%if %{with tests}
+%{__python} -m pytest tests
+%endif
 %endif
 
 %if %{with python3}
-%py3_build %{?with_tests:test}
+%py3_build
+
+%if %{with tests}
+%{__python3} -m pytest tests
+%endif
 %endif
 
 %install
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-sphinx_rtd_theme.git/commitdiff/6c3b921dcac9da9ffb2df4eab1e8cf165da3dfe7

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to