[packages/sphinxygen] - new

qboosh qboosh at pld-linux.org
Mon Apr 3 20:32:53 CEST 2023


commit bf712ac430797febbf8b91c1476ffb8eed7f8b4c
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Apr 3 20:35:13 2023 +0200

    - new

 sphinxygen.spec | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
---
diff --git a/sphinxygen.spec b/sphinxygen.spec
new file mode 100644
index 0000000..ec5d25c
--- /dev/null
+++ b/sphinxygen.spec
@@ -0,0 +1,61 @@
+#
+# Conditional build:
+%bcond_with	tests	# testing (missing test data in sdist)
+
+Summary:	A script to generate Sphinx ReST from Doxygen XML
+Summary(pl.UTF-8):	Skrypt do generowania sphinxowego ReSTa z XML-a Doxygena
+Name:		sphinxygen
+Version:	1.0.2
+Release:	1
+License:	ISC
+Group:		Development/Tools
+Source0:	http://download.drobilla.net/%{name}-%{version}.tar.gz
+# Source0-md5:	4fc85c9ca5876c0f6ca3d112d9cf34cf
+URL:		https://gitlab.com/drobilla/sphinxygen
+BuildRequires:	python3-modules >= 1:3.6
+BuildRequires:	python3-setuptools >= 1:61.2
+%if %{with tests}
+BuildRequires:	python3-html5lib
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Sphinxygen is a Python module/script that generates Sphinx markup to
+describe a C API, from an XML description extracted by Doxygen.
+
+%description -l pl.UTF-8
+Sphinxygen to moduł/skrypt Pythona, generujący znaczniki Sphinksa do
+opisu API w języku C z opisu XML wydobytego przez Doxygena.
+
+%prep
+%setup -q
+
+# stub for setuptools
+cat >setup.py <<EOF
+from setuptools import setup
+setup()
+EOF
+
+%build
+%py3_build
+
+%if %{with tests}
+%{__python3} -m unittest discover -s test
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE NEWS README.md
+%attr(755,root,root) %{_bindir}/sphinxygen
+%{py3_sitescriptdir}/sphinxygen
+%{py3_sitescriptdir}/sphinxygen-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/sphinxygen.git/commitdiff/bf712ac430797febbf8b91c1476ffb8eed7f8b4c



More information about the pld-cvs-commit mailing list