diff --git a/2a4caf09e210554018bf0e928690d9617ff89e00.diff b/2a4caf09e210554018bf0e928690d9617ff89e00.diff deleted file mode 100644 index 789d46c..0000000 --- a/2a4caf09e210554018bf0e928690d9617ff89e00.diff +++ /dev/null @@ -1,47 +0,0 @@ -diff --git a/tests/test_iso-8859-15.po b/tests/test_iso-8859-15.po -index a26d7d6..da453ee 100644 ---- a/tests/test_iso-8859-15.po -+++ b/tests/test_iso-8859-15.po -@@ -3,7 +3,6 @@ msgid "" - msgstr "" - "Project-Id-Version: Vim(Français)\n" - "Report-Msgid-Bugs-To: \n" --"POT-Creation-Date: 2006-05-01 19:42+0200\n" - "PO-Revision-Date: 2006-05-02 14:15+0200\n" - "Last-Translator: David Blanchet \n" - "Language-Team: Adrien Beau \n" -diff --git a/tests/test_utf8.po b/tests/test_utf8.po -index 0ae3c0b..ebbda67 100644 ---- a/tests/test_utf8.po -+++ b/tests/test_utf8.po -@@ -6,7 +6,6 @@ msgid "" - msgstr "" - "Project-Id-Version: django\n" - "Report-Msgid-Bugs-To: \n" --"POT-Creation-Date: 2007-08-17 15:35-0400\n" - "PO-Revision-Date: 2007-07-14 13:00-0500\n" - "Last-Translator: Mario Gonzalez \n" - "Language-Team: Castellano \n" -diff --git a/tests/tests.py b/tests/tests.py -index 9d82461..d2f0f3a 100644 ---- a/tests/tests.py -+++ b/tests/tests.py -@@ -304,15 +304,15 @@ msgstr "" - - def test_linenum_1(self): - po = polib.pofile('tests/test_utf8.po') -- self.assertEqual(po[0].linenum, 18) -+ self.assertEqual(po[0].linenum, 17) - - def test_linenum_2(self): - po = polib.pofile('tests/test_utf8.po') -- self.assertEqual(po.find('XML text').linenum, 1799) -+ self.assertEqual(po.find('XML text').linenum, 1798) - - def test_linenum_3(self): - po = polib.pofile('tests/test_utf8.po') -- self.assertEqual(po[-1].linenum, 3478) -+ self.assertEqual(po[-1].linenum, 3477) - - def test_windows_path_occurrences(self): - po = polib.pofile('tests/test_weird_occurrences.po') diff --git a/polib-1.0.8.tar.gz b/polib-1.0.8.tar.gz deleted file mode 100644 index c59b2a3..0000000 --- a/polib-1.0.8.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5affe3d915eb5b4773f4ce164817e383eea0306115cdaf9b64008b3aea8202df -size 160670 diff --git a/polib-1.1.0.tar.gz b/polib-1.1.0.tar.gz new file mode 100644 index 0000000..1148ea4 --- /dev/null +++ b/polib-1.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fad87d13696127ffb27ea0882d6182f1a9cf8a5e2b37a587751166c51e5a332a +size 158484 diff --git a/python-polib.changes b/python-polib.changes index 14fba04..5348dc0 100644 --- a/python-polib.changes +++ b/python-polib.changes @@ -1,3 +1,20 @@ +------------------------------------------------------------------- +Thu Jan 25 15:43:04 UTC 2018 - tchvatal@suse.com + +- Version update to 1.1.0: + - Fixed entries sorting when generating mo file (Fixes #78) + - Fixed find method (Fixes #84) + - Refactored POEntry.__cmp__ method (this should fix issues #60, #65 and #79) + - Fixed duplicated entries when merging po file with pot file (fixes #68) + - Fixed "None" string being outputted when polib deals with syntax error in string (Fixes issue #66) + - Added a fuzzy property to entries (Fixes #76) + - Take into account the message context when comparing entries + - Leave occurence untouched if line number is not a number (fixes #80 and #90) + - Fixed test for mo files that was failing because since gettext version 0.19.8.1, msgfmt skips the "POT-Creation-Date" metadata entry (Fixes #86) + - Fixed major revision number comparison + - Dropped python 2.4 support +- Drop merged patch 2a4caf09e210554018bf0e928690d9617ff89e00.diff + ------------------------------------------------------------------- Mon Dec 4 08:41:02 UTC 2017 - mlin@suse.com diff --git a/python-polib.spec b/python-polib.spec index 14d8f83..6239eae 100644 --- a/python-polib.spec +++ b/python-polib.spec @@ -1,7 +1,7 @@ # # spec file for package python-polib # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2013 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -17,21 +17,15 @@ # -%bcond_without tests - %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-polib -Version: 1.0.8 +Version: 1.1.0 Release: 0 -Url: http://bitbucket.org/izi/polib/ Summary: A library to manipulate gettext files License: MIT Group: Development/Languages/Python +Url: http://bitbucket.org/izi/polib/ Source0: https://files.pythonhosted.org/packages/source/p/polib/polib-%{version}.tar.gz -# PATCH-FIX-UPSTREAM https://bitbucket.org/izi/polib/commits/2a4caf09e210554018bf0e928690d9617ff89e00 -Patch0: 2a4caf09e210554018bf0e928690d9617ff89e00.diff -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -68,13 +62,12 @@ This package contains documentation in HTML format. %prep %setup -q -n polib-%{version} -%patch0 -p1 %build %python_build pushd docs -make html +make %{?_smp_mflags} html rm _build/html/.buildinfo popd @@ -82,18 +75,14 @@ popd %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with tests} %check %python_exec tests/tests.py -%endif %files %{python_files} -%defattr(-,root,root) %doc LICENSE CHANGELOG README.rst %{python_sitelib}/* %files -n python-polib-doc -%defattr(-,root,root) %doc docs/_build/html %changelog