From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH] python3-docutils: New package. Date: Fri, 06 Jan 2023 08:18:23 +0100 Message-ID: <20230106071823.1962-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8336147392077007011==" List-Id: --===============8336147392077007011== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Stefan Schantl --- python3-docutils/python3-docutils.nm | 57 ++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 python3-docutils/python3-docutils.nm diff --git a/python3-docutils/python3-docutils.nm b/python3-docutils/python3-= docutils.nm new file mode 100644 index 000000000..86edd1120 --- /dev/null +++ b/python3-docutils/python3-docutils.nm @@ -0,0 +1,57 @@ +############################################################################= ### +# IPFire.org - An Open Source Firewall Solution = # +# Copyright (C) - IPFire Development Team = # +############################################################################= ### + +name =3D python3-docutils +version =3D 0.19 +release =3D 1 +thisapp =3D docutils-%{version} +arch =3D noarch + +groups =3D System/Tools +url =3D https://docutils.sourceforge.net +license =3D Public Domain and BSD and Python and GPLv3+ +summary =3D System for processing plaintext documentation + +description + The Docutils project specifies a plaintext markup language, reStructuredTex= t, + which is easy to read and quick to write. The project includes a python + library to parse rST files and transform them into other useful formats such + as HTML, XML, and TeX as well as commandline tools that give the enduser + access to this functionality. +end + +source_dl =3D https://sourceforge.net/projects/docutils/files/docutils/%{ve= rsion}/ + +build + requires + python3-devel >=3D 3.4 + python3-setuptools + end + + build + # Remove shebang from library files + sed -i -e '/#! *\/usr\/bin\/.*/{1D}' $(grep -Erl '^#!.+python' docutils) + + %{python3} setup.py build + end + + test + export PYTHONPATH=3D%{buildroot}%{python3_sitelib} + %{python3} test/alltests.py + end + + install + %{python3} setup.py install --root=3D%{BUILDROOT} \ + =09 + end +end + +packages + package %{name} + + package %{name}-debuginfo + template DEBUGINFO + end +end --=20 2.30.2 --===============8336147392077007011==--