Hello community,

here is the log from the commit of package python-diff_match_patch for 
openSUSE:Factory checked in at 2019-03-19 10:00:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-diff_match_patch (Old)
 and      /work/SRC/openSUSE:Factory/.python-diff_match_patch.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-diff_match_patch"

Tue Mar 19 10:00:22 2019 rev:2 rq:686040 version:20181111

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-diff_match_patch/python-diff_match_patch.changes
  2016-09-21 18:49:30.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-diff_match_patch.new.28833/python-diff_match_patch.changes
       2019-03-19 10:00:41.859934451 +0100
@@ -1,0 +2,13 @@
+Mon Mar 18 11:01:51 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Fix the fdupes call
+- Run the tests
+
+-------------------------------------------------------------------
+Fri Mar 15 18:33:15 UTC 2019 - Luiz Fernando Ranghetti <[email protected]>
+
+- updated to version 20181111
+       (unofficial, no changelog available)
+- update URLs, change source from zip to tar.gz and make it singlespec
+
+-------------------------------------------------------------------

Old:
----
  diff_match_patch_20121119.zip
  setup.py

New:
----
  diff-match-patch-20181111.tar.gz

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

Other differences:
------------------
++++++ python-diff_match_patch.spec ++++++
--- /var/tmp/diff_new_pack.18DpMv/_old  2019-03-19 10:00:43.471932770 +0100
+++ /var/tmp/diff_new_pack.18DpMv/_new  2019-03-19 10:00:43.491932749 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-diff_match_patch
 #
-# Copyright (c) 2016 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
@@ -12,55 +12,42 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:           python-diff_match_patch
-Version:        20121119
+Version:        20181111
 Release:        0
 Summary:        Python Diff, Match and Patch library for Plain Text
 License:        Apache-2.0
 Group:          Development/Libraries/Python
-Url:            http://code.google.com/p/google-diff-match-patch/
-Source:         diff_match_patch_%{version}.zip
-Source1:        setup.py
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
-BuildRequires:  unzip
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} <= 1110
-%{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print(get_python_lib())")}
-%{py_requires}
-%else
+URL:            https://github.com/diff-match-patch-python/diff-match-patch
+Source:         
https://files.pythonhosted.org/packages/source/d/diff-match-patch/diff-match-patch-%{version}.tar.gz
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
 BuildArch:      noarch
-%endif
+%python_subpackages
 
 %description
-Google's Diff Match and Patch libraries offer robust algorithms to perform the 
operations required for synchronizing plain text.
-
-   1. Diff:
-          * Compare two blocks of plain text and efficiently return a list of 
differences.
-   2. Match:
-          * Given a search string, find its best fuzzy match in a block of 
plain text. Weighted for both accuracy and location.
-   3. Patch:
-          * Apply a list of patches onto plain text. Use best-effort to apply 
patch even when the underlying text doesn't match.
+Repackaging of Google's Diff Match and Patch libraries. Offers robust 
algorithms
+to perform the operations required for synchronizing plain text
 
 %prep
-%setup -n diff_match_patch_%{version}
-cp %{S:1} .
-#fix python2.4 hardcoded - use /usr/bin/env python2
-sed -i 's/\/usr\/bin\/python2.4/\/usr\/bin\/env python2/' 
python2/diff_match_patch.py
+
+%setup -q -n diff-match-patch-%{version}
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --root=%{buildroot}
+%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
+
+%check
+%python_exec -m unittest -v diff_match_patch.tests
 
-%files
-%defattr(-, root, root, 0755)
-%doc README.txt COPYING
+%files %{python_files}
 %{python_sitelib}/diff_match_patch
 %{python_sitelib}/diff_match_patch-%{version}-py%{py_ver}.egg-info
 


Reply via email to