[packages/python3-sphinx_math_dollar] - python-sphinx_math_dollar.spec updated to 1.2.1 for python 3.6+
qboosh
qboosh at pld-linux.org
Sat Jan 14 09:16:24 CET 2023
commit 6475b245b25650490267da3edfcd932087db1a70
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Jan 14 09:17:20 2023 +0100
- python-sphinx_math_dollar.spec updated to 1.2.1 for python 3.6+
python-sphinx_math_dollar.spec | 115 ----------------------------------------
python3-sphinx_math_dollar.spec | 69 ++++++++++++++++++++++++
2 files changed, 69 insertions(+), 115 deletions(-)
---
diff --git a/python-sphinx_math_dollar.spec b/python-sphinx_math_dollar.spec
deleted file mode 100644
index 9173d16..0000000
--- a/python-sphinx_math_dollar.spec
+++ /dev/null
@@ -1,115 +0,0 @@
-#
-# Conditional build:
-%bcond_with tests # unit tests (missing test-build data?)
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-
-Summary: Sphinx extension to let you write LaTeX math using $$
-Summary(pl.UTF-8): Rozszerzenie Sphinksa pozwalające pisać wzory matematyczne w LaTeXu przy użyciu $$
-Name: python-sphinx_math_dollar
-# keep 1.2 here for python2 support
-Version: 1.2
-Release: 3
-License: MIT
-Group: Libraries/Python
-#Source0Download: https://pypi.org/simple/sphinx-math-dollar/
-Source0: https://files.pythonhosted.org/packages/source/s/sphinx-math-dollar/sphinx-math-dollar-%{version}.tar.gz
-# Source0-md5: 60fe316279834d8cba3a88711ede8731
-URL: https://pypi.org/project/sphinx-math-dollar/
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.5
-BuildRequires: python-setuptools
-%if %{with tests}
-BuildRequires: python-Sphinx
-BuildRequires: python-pytest
-BuildRequires: python-sphinx_testing
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.2
-BuildRequires: python3-setuptools
-%if %{with tests}
-BuildRequires: python3-Sphinx
-BuildRequires: python3-pytest
-BuildRequires: python3-sphinx_testing
-%endif
-%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
-sphinx-math-dollar is a Sphinx extension to let you write LaTeX math
-using $$.
-
-%description -l pl.UTF-8
-sphinx-math-dollar to rozszerzenie Sphinksa pozwalające pisać wzory
-matematyczne w LaTeXu przy użyciu $$.
-
-%package -n python3-sphinx_math_dollar
-Summary: Sphinx extension to let you write LaTeX math using $$
-Summary(pl.UTF-8): Rozszerzenie Sphinksa pozwalające pisać wzory matematyczne w LaTeXu przy użyciu $$
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.2
-
-%description -n python3-sphinx_math_dollar
-sphinx-math-dollar is a Sphinx extension to let you write LaTeX math
-using $$.
-
-%description -n python3-sphinx_math_dollar -l pl.UTF-8
-sphinx-math-dollar to rozszerzenie Sphinksa pozwalające pisać wzory
-matematyczne w LaTeXu przy użyciu $$.
-
-%prep
-%setup -q -n sphinx-math-dollar-%{version}
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-%{__python} -m pytest sphinx_math_dollar/tests
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-%{__python3} -m pytest sphinx_math_dollar/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 LICENSE README.rst
-%{py_sitescriptdir}/sphinx_math_dollar
-%{py_sitescriptdir}/sphinx_math_dollar-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-sphinx_math_dollar
-%defattr(644,root,root,755)
-%doc LICENSE README.rst
-%{py3_sitescriptdir}/sphinx_math_dollar
-%{py3_sitescriptdir}/sphinx_math_dollar-%{version}-py*.egg-info
-%endif
diff --git a/python3-sphinx_math_dollar.spec b/python3-sphinx_math_dollar.spec
new file mode 100644
index 0000000..5443cc5
--- /dev/null
+++ b/python3-sphinx_math_dollar.spec
@@ -0,0 +1,69 @@
+#
+# Conditional build:
+%bcond_with doc # Sphinx documentation (missing index)
+%bcond_with tests # unit tests (missing app fixture?)
+
+Summary: Sphinx extension to let you write LaTeX math using $$
+Summary(pl.UTF-8): Rozszerzenie Sphinksa pozwalające pisać wzory matematyczne w LaTeXu przy użyciu $$
+Name: python3-sphinx_math_dollar
+Version: 1.2.1
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/sphinx-math-dollar/
+Source0: https://files.pythonhosted.org/packages/source/s/sphinx-math-dollar/sphinx-math-dollar-%{version}.tar.gz
+# Source0-md5: 3b3b0e7b4692213cd5656ecaecedc527
+URL: https://pypi.org/project/sphinx-math-dollar/
+BuildRequires: python3-modules >= 1:3.6
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-Sphinx
+BuildRequires: python3-pytest
+%endif
+%if %{with doc}
+BuildRequires: sphinx-pdg-3
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python3-modules >= 1:3.6
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+sphinx-math-dollar is a Sphinx extension to let you write LaTeX math
+using $$.
+
+%description -l pl.UTF-8
+sphinx-math-dollar to rozszerzenie Sphinksa pozwalające pisać wzory
+matematyczne w LaTeXu przy użyciu $$.
+
+%prep
+%setup -q -n sphinx-math-dollar-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(pwd) \
+%{__python3} -m pytest sphinx_math_dollar/tests
+%endif
+
+%if %{with doc}
+PYTHONPATH=$(pwd) \
+sphinx-build-3 -b html docs docs/_build/html
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.rst
+%{py3_sitescriptdir}/sphinx_math_dollar
+%{py3_sitescriptdir}/sphinx_math_dollar-%{version}-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-sphinx_math_dollar.git/commitdiff/6475b245b25650490267da3edfcd932087db1a70
More information about the pld-cvs-commit
mailing list