[packages/python-commonmark] new (version 0.7.5)

atler atler at pld-linux.org
Tue Sep 11 20:29:10 CEST 2018


commit bd206e44f1d635784044b6bf81169a9578b7ab6a
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue Sep 11 20:28:10 2018 +0200

    new (version 0.7.5)
    
    newer 0.8.x versions incompatible with recommonmark's HEAD

 python-commonmark.spec | 88 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 88 insertions(+)
---
diff --git a/python-commonmark.spec b/python-commonmark.spec
new file mode 100644
index 0000000..b695b80
--- /dev/null
+++ b/python-commonmark.spec
@@ -0,0 +1,88 @@
+# TODO:
+# - package %{_bindir}/cmark
+#
+# Conditional build:
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+Summary:	Python parser for the CommonMark Markdown spec
+Name:		python-commonmark
+Version:	0.7.5
+Release:	1
+License:	BSD
+Group:		Libraries/Python
+Source0:	https://files.pythonhosted.org/packages/77/16/44a297228a439484d049cdad818c7f6691c162b4cd741c619caeb208bb1e/CommonMark-%{version}.tar.gz
+# Source0-md5:	70cb4ade4b9d0370213be9816f99a21e
+URL:		https://github.com/rtfd/CommonMark-py
+%if %{with python2}
+BuildRequires:	python-modules >= 1:2.7
+BuildRequires:	python-setuptools
+%endif
+%if %{with python3}
+BuildRequires:	python3-modules >= 1:3.3
+BuildRequires:	python3-setuptools
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python-modules >= 1:2.7
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+CommonMark-py is a pure Python port of jgm’s commonmark.js, a Markdown
+parser and renderer for the CommonMark specification, using only
+native modules.
+
+%package -n python3-commonmark
+Summary:	Python parser for the CommonMark Markdown spec
+Group:		Libraries/Python
+Requires:	python3-modules >= 1:3.3
+
+%description -n python3-commonmark
+CommonMark-py is a pure Python port of jgm’s commonmark.js, a Markdown
+parser and renderer for the CommonMark specification, using only
+native modules.
+
+%prep
+%setup -q -n CommonMark-%{version}
+
+%build
+%if %{with python2}
+%py_build
+%endif
+
+%if %{with python3}
+%py3_build
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
+
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc README.rst
+%{py_sitescriptdir}/CommonMark
+%{py_sitescriptdir}/CommonMark-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-commonmark
+%defattr(644,root,root,755)
+%doc README.rst
+%{py3_sitescriptdir}/CommonMark
+%{py3_sitescriptdir}/CommonMark-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-commonmark.git/commitdiff/bd206e44f1d635784044b6bf81169a9578b7ab6a



More information about the pld-cvs-commit mailing list