]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
python3-markupsafe: New package
authorStefan Schantl <stefan.schantl@ipfire.org>
Thu, 1 Dec 2022 08:00:32 +0000 (08:00 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 1 Dec 2022 08:00:32 +0000 (08:00 +0000)
This package is required for python3-jinja2.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
python3-markupsafe/python3-markupsafe.nm [new file with mode: 0644]

diff --git a/python3-markupsafe/python3-markupsafe.nm b/python3-markupsafe/python3-markupsafe.nm
new file mode 100644 (file)
index 0000000..41e4b0a
--- /dev/null
@@ -0,0 +1,47 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = python3-markupsafe
+version    = 2.1.1
+release    = 1
+
+groups     = Development/Tools
+url        = https://github.com/pallets/markupsafe
+license    = BSD
+summary    = Safely add untrusted strings to HTML/XML markup.
+
+description
+       MarkupSafe implements a text object that escapes characters so it is safe
+       to use in HTML and XML. Characters that have special meanings are replaced
+       so that they display as the actual characters. This mitigates injection
+       attacks, meaning untrusted user input can safely be displayed on a page.
+end
+
+source_dl  = https://github.com/pallets/markupsafe/archive/refs/tags/%{version}.tar.gz#/
+
+build
+       requires
+               python3-devel >= 3.4
+               python3-setuptools
+       end
+
+       DIR_APP = %{DIR_SRC}/markupsafe-%{version}
+
+       build
+               %{python3} setup.py build
+       end
+
+       install
+               %{python3} setup.py install --root=%{BUILDROOT} --skip-build
+       end
+end
+
+packages
+       package %{name}
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end