15
0

Accepting request 505951 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/505951
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-CommonMark?expand=0&rev=3
This commit is contained in:
2017-06-24 06:34:46 +00:00
committed by Git OBS Bridge
2 changed files with 22 additions and 27 deletions

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Wed Jun 21 22:11:08 UTC 2017 - dimstar@opensuse.org
- Fix typo in Requires (pyython3 -> python3).
-------------------------------------------------------------------
Fri Jun 9 13:22:57 UTC 2017 - jengelh@inai.de
- A roadmap does not belong into the description.
- Resolve typographicly wrong apostrophe.
-------------------------------------------------------------------
Sat May 6 03:31:54 UTC 2017 - toddrme2178@gmail.com

View File

@@ -26,11 +26,11 @@ License: BSD-3-Clause
Group: Development/Languages/Python
Url: https://pypi.python.org/pypi/CommonMark
Source: https://files.pythonhosted.org/packages/source/C/CommonMark/CommonMark-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module future}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: %{python_module future}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
Requires: python-future
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
@@ -46,41 +46,27 @@ Obsoletes: python3-commonmark < %{version}
%python_subpackages
%description
Pure Python port of jgms stmd.js, a Markdown parser and renderer for the
CommonMark specification, using only native modules. Once both this project and
the CommonMark specification are stable we will release the first 1.0 version
and attempt to keep up to date with changes in stmd.js.
We are currently at the same development stage (actually a bit ahead because we
have implemented HTML entity conversion and href URL escaping) as stmd.js. Since
Python versions pre-3.4 use outdated (i.e. not HTML5 spec) entity conversion,
Ive converted the 3.4 implementation into a single file, entitytrans.py which
so far seems to work (all tests pass on 2.7, 3.3, and 3.4).
Pure Python port of jgm's stmd.js, a Markdown parser and renderer for the
CommonMark specification, using only native modules.
%package -n %{name}-doc
Summary: Documentation for CommonMark
Group: Documentation/HTML
Provides: %{python_module CommonMark-doc = %{version}}
%description -n %{name}-doc
Documentation for Pure Python port of jgms stmd.js, a Markdown parser and
Documentation for Pure Python port of jgm's stmd.js, a Markdown parser and
renderer for the CommonMark specification, using only native modules.
%package -n cmark-python
Summary: CommonMark parsing and rendering program in python
Requires: pyython3-CommonMark = %{version}
Group: Development/Languages/Python
Requires: python3-CommonMark = %{version}
Conflicts: cmark
%description -n cmark-python
Pure Python port of jgms stmd.js, a Markdown parser and renderer for the
CommonMark specification, using only native modules. Once both this project and
the CommonMark specification are stable we will release the first 1.0 version
and attempt to keep up to date with changes in stmd.js.
We are currently at the same development stage (actually a bit ahead because we
have implemented HTML entity conversion and href URL escaping) as stmd.js. Since
Python versions pre-3.4 use outdated (i.e. not HTML5 spec) entity conversion,
Ive converted the 3.4 implementation into a single file, entitytrans.py which
so far seems to work (all tests pass on 2.7, 3.3, and 3.4).
Pure Python port of jgm's stmd.js, a Markdown parser and renderer for the
CommonMark specification, using only native modules.
This package provides the "cmark" executable, to avoid conflicts with other
implementations.
@@ -101,14 +87,12 @@ find CommonMark -name "*.py" | xargs sed -i '1 {/^#!/ d}'
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# Test broken due to encoding issue
# %check
# export LANG=en_US.UTF-8
# export PYTHONPATH=%{buildroot}%{python_sitelib}
# python setup.py test
%files %{python_files}
%defattr(-,root,root,-)
%doc README.rst LICENSE