]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
python3-docutils: New package.
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 6 Jan 2023 07:18:23 +0000 (08:18 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 7 Jan 2023 12:02:26 +0000 (12:02 +0000)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
python3-docutils/python3-docutils.nm [new file with mode: 0644]

diff --git a/python3-docutils/python3-docutils.nm b/python3-docutils/python3-docutils.nm
new file mode 100644 (file)
index 0000000..86edd11
--- /dev/null
@@ -0,0 +1,57 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = python3-docutils
+version    = 0.19
+release    = 1
+thisapp    = docutils-%{version}
+arch       = noarch
+
+groups     = System/Tools
+url        = https://docutils.sourceforge.net
+license    = Public Domain and BSD and Python and GPLv3+
+summary    = System for processing plaintext documentation
+
+description
+       The Docutils project specifies a plaintext markup language, reStructuredText,
+       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  = https://sourceforge.net/projects/docutils/files/docutils/%{version}/
+
+build
+       requires
+               python3-devel >= 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=%{buildroot}%{python3_sitelib}
+               %{python3} test/alltests.py
+       end
+
+       install
+               %{python3} setup.py install --root=%{BUILDROOT} \
+                       
+       end
+end
+
+packages
+       package %{name}
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end