[packages/python-sphinxcontrib-dotnetdomain] - new
qboosh
qboosh at pld-linux.org
Fri Oct 31 21:59:50 CET 2025
commit 23a7a6540c78ed9ac3a5f182b93c02844a84a738
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Oct 31 21:59:42 2025 +0100
- new
python-sphinxcontrib-dotnetdomain.spec | 107 +++++++++++++++++++++++++++++++++
1 file changed, 107 insertions(+)
---
diff --git a/python-sphinxcontrib-dotnetdomain.spec b/python-sphinxcontrib-dotnetdomain.spec
new file mode 100644
index 0000000..809189e
--- /dev/null
+++ b/python-sphinxcontrib-dotnetdomain.spec
@@ -0,0 +1,107 @@
+#
+# Conditional build:
+%bcond_with tests # unit tests (not in sdist)
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+Summary: Sphinx extension to add .NET domain
+Summary(pl.UTF-8): Rozszerzenie Sphinksa dodające domenę .NET
+Name: python-sphinxcontrib-dotnetdomain
+Version: 0.4
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/sphinxcontrib-dotnetdomain/
+Source0: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-dotnetdomain/sphinxcontrib-dotnetdomain-%{version}.tar.gz
+# Source0-md5: 9d3c2d1b8debceffc17da75409bb1e14
+URL: https://pypi.org/project/sphinxcontrib-dotnetdomain/
+%if %{with python2}
+BuildRequires: python-modules >= 1:2.7
+BuildRequires: python-setuptools
+%if %{with tests}
+BuildRequires: python-Sphinx >= 0.6
+BuildRequires: python-mock
+BuildRequires: python-nose
+%endif
+%endif
+%if %{with python3}
+BuildRequires: python3-modules >= 1:3.2
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-Sphinx >= 0.6
+BuildRequires: python3-mock
+BuildRequires: python3-nose
+%endif
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python-modules >= 1:2.7
+Requires: python-sphinxcontrib
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Sphinx domain to support .NET languages.
+
+%description -l pl.UTF-8
+Domena Sphinksa do obsługi języków .NET.
+
+%package -n python3-sphinxcontrib-dotnetdomain
+Summary: Sphinx extension to add .NET domain
+Summary(pl.UTF-8): Rozszerzenie Sphinksa dodające domenę .NET
+Group: Libraries/Python
+Requires: python3-modules >= 1:3.2
+Requires: python3-sphinxcontrib
+
+%description -n python3-sphinxcontrib-dotnetdomain
+Sphinx domain to support .NET languages.
+
+%description -n python3-sphinxcontrib-dotnetdomain -l pl.UTF-8
+Domena Sphinksa do obsługi języków .NET.
+
+%prep
+%setup -q -n sphinxcontrib-dotnetdomain-%{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}/sphinxcontrib/dotnetdomain.py[co]
+%{py_sitescriptdir}/sphinxcontrib_dotnetdomain-%{version}-py*.egg-info
+%{py_sitescriptdir}/sphinxcontrib_dotnetdomain-%{version}-py*-nspkg.pth
+%endif
+
+%if %{with python3}
+%files -n python3-sphinxcontrib-dotnetdomain
+%defattr(644,root,root,755)
+%doc README.rst
+%{py3_sitescriptdir}/sphinxcontrib/dotnetdomain.py
+%{py3_sitescriptdir}/sphinxcontrib/__pycache__/dotnetdomain.cpython-*.py[co]
+%{py3_sitescriptdir}/sphinxcontrib_dotnetdomain-%{version}-py*.egg-info
+%{py3_sitescriptdir}/sphinxcontrib_dotnetdomain-%{version}-py*-nspkg.pth
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-sphinxcontrib-dotnetdomain.git/commitdiff/23a7a6540c78ed9ac3a5f182b93c02844a84a738
More information about the pld-cvs-commit
mailing list