diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9e5293b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/sphinx-math-dollar-*.tar.gz diff --git a/python-sphinx-math-dollar.rpmlintrc b/python-sphinx-math-dollar.rpmlintrc new file mode 100644 index 0000000..98a5f72 --- /dev/null +++ b/python-sphinx-math-dollar.rpmlintrc @@ -0,0 +1,5 @@ +# THIS FILE IS FOR WHITELISTING RPMLINT ERRORS AND WARNINGS IN TASKOTRON +# https://fedoraproject.org/wiki/Taskotron/Tasks/dist.rpmlint#Whitelisting_errors + +# The objects.inv file is not text +addFilter(r'W: file-not-utf8 .*objects.inv') diff --git a/python-sphinx-math-dollar.spec b/python-sphinx-math-dollar.spec new file mode 100644 index 0000000..f810e4d --- /dev/null +++ b/python-sphinx-math-dollar.spec @@ -0,0 +1,68 @@ +%global srcname sphinx-math-dollar + +Name: python-%{srcname} +Version: 1.1.1 +Release: 1%{?dist} +Summary: Sphinx extension to enable LaTeX math with $$ + +License: MIT +URL: https://www.sympy.org/%{srcname}/ +Source0: https://github.com/sympy/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python3-devel +BuildRequires: python3dist(pytest-doctestplus) +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(sphinx) +BuildRequires: python3dist(sphinx-testing) + +%global _desc %{expand: +sphinx-math-dollar is a Sphinx extension to let you write LaTeX math +using $$.} + +%description +%_desc + +%package -n python3-%{srcname} +Summary: Sphinx extension to enable LaTeX math with $$ +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} +%_desc + +%package doc +Summary: Documentation for %{srcname} + +%description doc +Documentation for %{srcname}. + +%prep +%autosetup -n %{srcname}-%{version} + +%build +%py3_build + +# Build the documentation +make -C docs html +rst2html --no-datestamp CHANGELOG.rst CHANGELOG.html +rst2html --no-datestamp README.rst README.html +rm -f docs/_build/html/.{buildinfo,nojekyll} + +%install +%py3_install + +%check +pytest + +%files -n python3-%{srcname} +%doc CHANGELOG.html README.html +%license LICENSE +%{python3_sitelib}/sphinx_math_dollar* + +%files doc +%doc docs/_build/html +%license LICENSE + +%changelog +* Thu Jan 2 2020 Jerry James - 1.1.1-1 +- Initial RPM diff --git a/sources b/sources new file mode 100644 index 0000000..6e516a0 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (sphinx-math-dollar-1.1.1.tar.gz) = d422ab6b0b7a93326a2941b1da9b0bb160c3377b34c4247b1454038ab9dc96d9880eb06d8a561a8c642db8b15c92155f6aed1174736398d8ea611a1595dfbc18