Apply python3 build 64/229564/1 accepted/tizen/base/20200403.032813 submit/tizen_base/20200402.010649
authorHyunjee Kim <hj0426.kim@samsung.com>
Thu, 2 Apr 2020 03:27:54 +0000 (12:27 +0900)
committerHyunjee Kim <hj0426.kim@samsung.com>
Thu, 2 Apr 2020 03:28:16 +0000 (12:28 +0900)
Change-Id: Ie3e4334614d13b5254ea3b11ab9725f996935883
Signed-off-by: Hyunjee Kim <hj0426.kim@samsung.com>
packaging/python3-markdown.manifest [new file with mode: 0644]
packaging/python3-markdown.spec [new file with mode: 0644]

diff --git a/packaging/python3-markdown.manifest b/packaging/python3-markdown.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-markdown.spec b/packaging/python3-markdown.spec
new file mode 100644 (file)
index 0000000..9cd8055
--- /dev/null
@@ -0,0 +1,51 @@
+%define srcname Markdown
+
+Name:           python3-markdown
+Version:        3.1.1
+Release:        1
+Summary:        Markdown implementation in Python3
+Group:          Development/Languages
+License:        BSD
+URL:            http://www.freewisdom.org/projects/python-markdown/
+Source0:        http://pypi.python.org/packages/source/M/%{srcname}/%{srcname}-%{version}.tar.gz
+Source1001:     python3-markdown.manifest
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch:      noarch
+BuildRequires:  python3-devel
+BuildRequires:  python3-setuptools
+%if 0%{?rhel}
+BuildRequires:  python3-elementtree
+Requires:       python3-elementtree
+%endif
+
+
+%description
+This is a Python3 implementation of John Gruber's Markdown. It is
+almost completely compliant with the reference implementation, though
+there are a few known issues.
+
+
+%prep
+%setup -q -n %{srcname}-%{version}
+
+# remove shebangs
+find markdown -type f -name '*.py' \
+  -exec sed -i -e '/^#!/{1D}' {} \;
+
+
+%build
+cp %{SOURCE1001} .
+%{_bindir}/python3 setup.py build
+
+
+%install
+rm -rf %{buildroot}
+%{_bindir}/python3 setup.py install -O1 --skip-build --root %{buildroot} --prefix %{_prefix}
+
+
+%files
+%manifest %{name}.manifest
+%{python3_sitelib}/*
+%{_bindir}/markdown_py
+
+