Bump to python3 MarkupSafe-2.1.1 03/277903/1 accepted/tizen_7.0_base accepted/tizen_7.0_base_hotfix sandbox/dh0128.kwak/python3-MarkupSafe-2.1.1-20220715 tizen_7.0_base tizen_7.0_base_hotfix accepted/tizen/7.0/base/20221116.025807 accepted/tizen/7.0/base/hotfix/20221116.055215 accepted/tizen/base/20220725.042843 accepted/tizen/base/20221115.103644 submit/tizen_base/20220715.063140 tizen_7.0_m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Fri, 15 Jul 2022 02:03:56 +0000 (11:03 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Fri, 15 Jul 2022 02:03:56 +0000 (11:03 +0900)
Change-Id: I481840139007886a1fcb92d37a84d0158ab3f642

packaging/python3-MarkupSafe.manifest [new file with mode: 0644]
packaging/python3-MarkupSafe.spec [new file with mode: 0644]

diff --git a/packaging/python3-MarkupSafe.manifest b/packaging/python3-MarkupSafe.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/python3-MarkupSafe.spec b/packaging/python3-MarkupSafe.spec
new file mode 100644 (file)
index 0000000..9d33185
--- /dev/null
@@ -0,0 +1,45 @@
+Name:           python3-MarkupSafe
+Version:        2.1.1
+Release:        0
+Summary:        Implements a XML/HTML/XHTML Markup safe string for Python
+License:        BSD-3-Clause
+Group:          Development/Languages/Python
+Url:            https://palletsprojects.com/p/markupsafe/
+Source:         %{name}-%{version}.tar.gz
+Source1001:     %{name}.manifest
+
+BuildRequires:  python3-devel
+BuildRequires:  python3-setuptools
+
+Provides:       python3-markupsafe = %{version}
+Obsoletes:      python3-markupsafe < %{version}
+
+%description
+Implements a unicode subclass that supports HTML strings. This can be used to
+safely encode strings for dynamically generated web pages.
+
+%prep
+%setup -q -n %{name}-%{version}
+
+%build
+cp %{SOURCE1001} .
+export CFLAGS="%{optflags}"
+%{_bindir}/python3 setup.py build
+
+%install
+%{_bindir}/python3 setup.py install --prefix=%{_prefix} --install-lib=%{python3_sitelib} --root=%{buildroot}
+
+# Move library
+%ifarch x86_64 aarch64
+mkdir -p %{buildroot}%{_libdir}/python%{python3_version}/site-packages/markupsafe
+mv %{buildroot}%{python3_sitelib}/markupsafe/_speedups*.so %{buildroot}%{_libdir}/python%{python3_version}/site-packages/markupsafe
+%endif
+
+%remove_docs
+
+%files
+%manifest %{name}.manifest
+%license LICENSE.rst
+%{python3_sitelib}/markupsafe/
+%{python3_sitelib}/MarkupSafe-%{version}-py*.egg-info
+%{_libdir}/python%{python3_version}/site-packages/markupsafe/