Hello community,

here is the log from the commit of package python-textile for 
openSUSE:Leap:15.2 checked in at 2020-05-23 16:08:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-textile (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-textile.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-textile"

Sat May 23 16:08:42 2020 rev:18 rq:808385 version:4.0.1

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python-textile/python-textile.changes  
2020-03-02 13:23:57.130469321 +0100
+++ 
/work/SRC/openSUSE:Leap:15.2/.python-textile.new.2738/python-textile.changes    
    2020-05-23 16:08:45.609225456 +0200
@@ -1,0 +2,12 @@
+Mon May 18 13:23:16 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Do not pull pytest-cov and pytest-runner nedlessly
+- Fix the %fdupes call
+
+-------------------------------------------------------------------
+Mon May 18 09:12:28 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+- install license
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-textile.spec ++++++
--- /var/tmp/diff_new_pack.3sLE3C/_old  2020-05-23 16:08:46.897228218 +0200
+++ /var/tmp/diff_new_pack.3sLE3C/_new  2020-05-23 16:08:46.901228227 +0200
@@ -17,30 +17,26 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%bcond_without test
 %define skip_python2 1
 Name:           python-textile
 Version:        4.0.1
 Release:        0
 Summary:        Textile processing for python
 License:        BSD-3-Clause
-Group:          Development/Languages/Python
-URL:            http://github.com/textile/python-textile
+URL:            https://github.com/textile/python-textile
 Source:         
https://files.pythonhosted.org/packages/source/t/textile/textile-%{version}.tar.gz
-Requires:       python-Pillow
-Requires:       python-html5lib >= 1.0.1
-Requires:       python-six
-Recommends:     python-regex
-BuildRequires:  %{python_module setuptools}
-%if %{with test}
 BuildRequires:  %{python_module html5lib >= 1.0.1}
-BuildRequires:  %{python_module pytest-cov}
-BuildRequires:  %{python_module pytest-runner}
+BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module regex >= 1.0}
-%endif
+BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-
+Requires:       python-Pillow
+Requires:       python-html5lib >= 1.0.1
+Requires:       python-six
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+Recommends:     python-regex
 %python_subpackages
 
 %description
@@ -53,22 +49,29 @@
 
 %prep
 %setup -q -n textile-%{version}
+sed -i -e '/pytest-runner/d' setup.py
 
 %build
 %python_build
 
-%if %{with test}
 %check
-%python_exec setup.py test
-%endif
+rm pytest.ini
+%pytest
 
 %install
 %python_install
-%fdupes %buildroot
+%python_clone -a %{buildroot}%{_bindir}/pytextile
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
+
+%post
+%python_install_alternative pytextile
+
+%postun
+%python_uninstall_alternative pytextile
 
 %files %{python_files}
-%defattr(-,root,root,-)
+%license LICENSE.txt
 %{python_sitelib}/*
-%python3_only %{_bindir}/pytextile
+%python_alternative %{_bindir}/pytextile
 
 %changelog


Reply via email to