Add python3-MarkupSafe 46/207446/1 accepted/tizen/unified/20190613.235808 submit/tizen/20190613.065910
authorDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 5 Jun 2019 03:38:19 +0000 (12:38 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 5 Jun 2019 03:38:19 +0000 (12:38 +0900)
Change-Id: Ib01c71e3c8f2d519fb407a2d861a9031ed6631c0
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
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..329d2a0
--- /dev/null
@@ -0,0 +1,66 @@
+#
+# spec file for package python-MarkupSafe
+#
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+#
+# All modifications and additions to the file contributed by third parties
+# remain the property of their copyright owners, unless otherwise agreed
+# upon. The license for this file, and modifications and additions to the
+# file, is the same license as for the pristine package itself (unless the
+# license for the pristine package is not an Open Source License, in which
+# case the license is the MIT License). An "Open Source License" is a
+# license that conforms to the Open Source Definition (Version 1.9)
+# published by the Open Source Initiative.
+
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
+#
+
+Name:           python3-MarkupSafe
+Version:        1.0
+Release:        0
+Url:            http://dev.pocoo.org/
+Summary:        Implements a XML/HTML/XHTML Markup safe string for Python
+License:        BSD-3-Clause
+Group:          Development/Languages/Python
+Source:         https://pypi.io/packages/source/M/MarkupSafe/MarkupSafe-%{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 MarkupSafe-%{version}
+
+%build
+cp %{SOURCE1001} .
+export CFLAGS="%{optflags}"
+python3 setup.py build
+
+%install
+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
+%defattr(-,root,root,-)
+%license LICENSE
+%{python3_sitelib}/markupsafe/
+%{python3_sitelib}/MarkupSafe-%{version}-py*.egg-info
+%{_libdir}/python%{python3_version}/site-packages/markupsafe/
+
+%changelog
+