Hello community,
here is the log from the commit of package python-smartypants for
openSUSE:Leap:15.2 checked in at 2020-03-02 13:22:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-smartypants (Old)
and /work/SRC/openSUSE:Leap:15.2/.python-smartypants.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-smartypants"
Mon Mar 2 13:22:55 2020 rev:4 rq:777149 version:2.0.1
Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-smartypants/python-smartypants.changes
2020-01-15 15:53:03.839584857 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.python-smartypants.new.26092/python-smartypants.changes
2020-03-02 13:22:56.322348418 +0100
@@ -1,0 +2,7 @@
+Tue May 7 15:40:36 UTC 2019 - John Vandenberg <[email protected]>
+
+- Activate test suite
+- Update Summary and Description
+- Add %doc
+
+-------------------------------------------------------------------
Old:
----
COPYING
smartypants-2.0.1-py2.py3-none-any.whl
New:
----
smartypants-2.0.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-smartypants.spec ++++++
--- /var/tmp/diff_new_pack.56q3LA/_old 2020-03-02 13:22:56.866349499 +0100
+++ /var/tmp/diff_new_pack.56q3LA/_new 2020-03-02 13:22:56.886349540 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-smartypants
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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
@@ -20,13 +20,14 @@
Name: python-smartypants
Version: 2.0.1
Release: 0
-Summary: A smart-quotes plugin for SmartyPants
+Summary: Python fork of perl SmartyPants
License: BSD-3-Clause
Group: Development/Languages/Python
Url: https://github.com/leohemsted/smartypants.py
-Source0:
https://files.pythonhosted.org/packages/py2.py3/s/smartypants/smartypants-%{version}-py2.py3-none-any.whl
-Source10:
https://raw.githubusercontent.com/leohemsted/smartypants.py/v%{version}/COPYING
-BuildRequires: %{python_module pip}
+Source:
https://github.com/leohemsted/smartypants.py/archive/v%{version}.tar.gz#/smartypants-%{version}.tar.gz
+BuildRequires: %{python_module docutils}
+BuildRequires: %{python_module pygments}
+BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
@@ -36,27 +37,21 @@
%python_subpackages
%description
-This module encapsulates Chad Miller's SmartyPants module so that
-it's available on PyPI. For more information, consult
-
-* http://web.chad.org/projects/smartypants.py/
-* http://daringfireball.net/projects/smartypants/
+smartypants is a Python implementation of the perl SmartyPants,
+which translates plain ASCII punctuation characters into smart
+typographic punctuation HTML entities.
%prep
-%setup -T -c -n smartypants-%{version}
-cp %{SOURCE10} .
+%setup -q -n smartypants.py-%{version}
%build
-# Not needed
+%python_build
%install
-%{python_expand pip%{$python_bin_suffix} install --root %{buildroot} %{SOURCE0}
-sed -i -e '/^#!\//, 1d' %{buildroot}%{$python_sitelib}/smartypants.py
-$python -m compileall -d %{$python_sitelib}
%{buildroot}%{$python_sitelib}/smartypants.py
-$python -O -m compileall -d %{$python_sitelib}
%{buildroot}%{$python_sitelib}/smartypants.py
+%python_install
+%{python_expand sed -i '1{/^#!/d}'
%{buildroot}%{$python_sitelib}/smartypants.py
%fdupes %{buildroot}%{$python_sitelib}
}
-
%python_clone -a %{buildroot}%{_bindir}/smartypants
%post
@@ -66,10 +61,11 @@
%python_uninstall_alternative smartypants
%check
-# todo
+%python_exec setup.py test
%files %{python_files}
%license COPYING
+%doc README.rst docs/*.rst
%python_alternative %{_bindir}/smartypants
%{python_sitelib}/*