commit python-polib for openSUSE:Factory
Hello community, here is the log from the commit of package python-polib for openSUSE:Factory checked in at 2018-09-11 17:21:00 Comparing /work/SRC/openSUSE:Factory/python-polib (Old) and /work/SRC/openSUSE:Factory/.python-polib.new (New) Package is "python-polib" Tue Sep 11 17:21:00 2018 rev:22 rq:634946 version:1.1.0 Changes: --- /work/SRC/openSUSE:Factory/python-polib/python-polib.changes 2018-01-26 13:39:56.608050764 +0100 +++ /work/SRC/openSUSE:Factory/.python-polib.new/python-polib.changes 2018-09-11 17:21:08.491057139 +0200 @@ -1,0 +2,6 @@ +Mon Sep 10 11:44:59 UTC 2018 - Matěj Cepl + +- Add polib-1.1.0-fix-tests-big-endian.patch to overcome failing tests + on big-endian machines (https://bitbucket.org/izi/polib/issues/96) + +--- New: polib-1.1.0-fix-tests-big-endian.patch Other differences: -- ++ python-polib.spec ++ --- /var/tmp/diff_new_pack.JLLr4v/_old 2018-09-11 17:21:08.879056547 +0200 +++ /var/tmp/diff_new_pack.JLLr4v/_new 2018-09-11 17:21:08.883056541 +0200 @@ -24,10 +24,12 @@ Summary:A library to manipulate gettext files License:MIT Group: Development/Languages/Python -Url:http://bitbucket.org/izi/polib/ +URL:http://bitbucket.org/izi/polib/ Source0: https://files.pythonhosted.org/packages/source/p/polib/polib-%{version}.tar.gz +Patch0: polib-1.1.0-fix-tests-big-endian.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes +BuildRequires: gettext-runtime >= 0.19.8 BuildRequires: python-rpm-macros BuildRequires: python3-Sphinx BuildArch: noarch @@ -62,6 +64,7 @@ %prep %setup -q -n polib-%{version} +%autopatch -p1 %build %python_build @@ -79,7 +82,8 @@ %python_exec tests/tests.py %files %{python_files} -%doc LICENSE CHANGELOG README.rst +%license LICENSE +%doc CHANGELOG README.rst %{python_sitelib}/* %files -n python-polib-doc ++ polib-1.1.0-fix-tests-big-endian.patch ++ --- a/polib.py +++ b/polib.py @@ -592,7 +592,7 @@ class _BaseFile(list): offsets = koffsets + voffsets output = struct.pack( -"Iii", +" 1: # python 3.2 or superior -output += array.array("i", offsets).tobytes() +output += outarr.tobytes() else: -output += array.array("i", offsets).tostring() +output += outarr.tostring() output += ids output += strs return output
commit python-polib for openSUSE:Factory
Hello community, here is the log from the commit of package python-polib for openSUSE:Factory checked in at 2018-01-26 13:39:50 Comparing /work/SRC/openSUSE:Factory/python-polib (Old) and /work/SRC/openSUSE:Factory/.python-polib.new (New) Package is "python-polib" Fri Jan 26 13:39:50 2018 rev:21 rq:569563 version:1.1.0 Changes: --- /work/SRC/openSUSE:Factory/python-polib/python-polib.changes 2017-12-04 12:17:16.262640862 +0100 +++ /work/SRC/openSUSE:Factory/.python-polib.new/python-polib.changes 2018-01-26 13:39:56.608050764 +0100 @@ -1,0 +2,17 @@ +Thu Jan 25 15:43:04 UTC 2018 - tchva...@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 + +--- Old: 2a4caf09e210554018bf0e928690d9617ff89e00.diff polib-1.0.8.tar.gz New: polib-1.1.0.tar.gz Other differences: -- ++ python-polib.spec ++ --- /var/tmp/diff_new_pack.qGM2k5/_old 2018-01-26 13:39:57.588004996 +0100 +++ /var/tmp/diff_new_pack.qGM2k5/_new 2018-01-26 13:39:57.596004622 +0100 @@ -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 @@ %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 @@ %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 ++ polib-1.0.8.tar.gz -> polib-1.1.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polib-1.0.8/CHANGELOG new/polib-1.1.0/CHANGELOG --- old/polib-1.0.8/CHANGELOG 2016-11-21 14:30:52.0 +0100 +++ new/polib-1.1.0/CHANGELOG 2017-11-27 17:54:40.0 +0100 @@ -2,6 +2,20 @@ Changelog = +Version 1.1.0 (2017/11/27) +-- + - 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"
commit python-polib for openSUSE:Factory
Hello community, here is the log from the commit of package python-polib for openSUSE:Factory checked in at 2017-12-04 12:17:04 Comparing /work/SRC/openSUSE:Factory/python-polib (Old) and /work/SRC/openSUSE:Factory/.python-polib.new (New) Package is "python-polib" Mon Dec 4 12:17:04 2017 rev:20 rq:548032 version:1.0.8 Changes: --- /work/SRC/openSUSE:Factory/python-polib/python-polib.changes 2017-05-06 18:27:30.501371441 +0200 +++ /work/SRC/openSUSE:Factory/.python-polib.new/python-polib.changes 2017-12-04 12:17:16.262640862 +0100 @@ -1,0 +2,8 @@ +Mon Dec 4 08:41:02 UTC 2017 - m...@suse.com + +- Add upstream patch 2a4caf09e210554018bf0e928690d9617ff89e00.diff + * Fixed test for mo files that was failing because since gettext +version 0.19.8.1, msgfmt skips the "POT-Creation-Date" metadata +entry. + +--- New: 2a4caf09e210554018bf0e928690d9617ff89e00.diff Other differences: -- ++ python-polib.spec ++ --- /var/tmp/diff_new_pack.Osu0XW/_old 2017-12-04 12:17:16.882618352 +0100 +++ /var/tmp/diff_new_pack.Osu0XW/_new 2017-12-04 12:17:16.886618208 +0100 @@ -28,11 +28,13 @@ License:MIT Group: Development/Languages/Python 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: fdupes -BuildRequires: python-rpm-macros BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildRequires: python3-Sphinx BuildArch: noarch %python_subpackages @@ -66,6 +68,7 @@ %prep %setup -q -n polib-%{version} +%patch0 -p1 %build %python_build ++ 2a4caf09e210554018bf0e928690d9617ff89e00.diff ++ 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')
commit python-polib for openSUSE:Factory
Hello community, here is the log from the commit of package python-polib for openSUSE:Factory checked in at 2017-05-06 18:27:28 Comparing /work/SRC/openSUSE:Factory/python-polib (Old) and /work/SRC/openSUSE:Factory/.python-polib.new (New) Package is "python-polib" Sat May 6 18:27:28 2017 rev:19 rq:490075 version:1.0.8 Changes: --- /work/SRC/openSUSE:Factory/python-polib/python-polib.changes 2015-05-16 07:14:48.0 +0200 +++ /work/SRC/openSUSE:Factory/.python-polib.new/python-polib.changes 2017-05-06 18:27:30.501371441 +0200 @@ -1,0 +2,20 @@ +Sun Apr 23 20:18:09 UTC 2017 - toddrme2...@gmail.com + +- Update to version 1.0.8 + * Fixed issue #70 (occurrences parsing for windows pathes) + * Fixed issue #71 (tcomment and flags not saved for obsolete entries) + * Fixed issue #72 (wrong metadata ordering) + * Fixed issue #73 (can't always unpickle POFile) + * Use natural sorting for additional headers (metadata) + * Fixed typos in various documents +- Update to version 1.0.7 + * Fixed bad parsing of indented msgstr_plural + * Fixed ordering of "Language" metadata entry + * Removed space after "#" in header if comment line is empty (like gettext tools) + * Fixed typos / grammar errors (thanks Jakub Wilk) + * Take into account msgid_plural if needed when comparing entries (thanks Leonardo Constantino Oliveira) + * Fixed issue #63 (str() on a bytes instance when using python3) (thanks Jakub Wilk) +- Implement single-spec version +- Fix source url. + +--- Old: polib-1.0.6.tar.gz New: polib-1.0.8.tar.gz Other differences: -- ++ python-polib.spec ++ --- /var/tmp/diff_new_pack.d7eCJl/_old 2017-05-06 18:27:31.721199317 +0200 +++ /var/tmp/diff_new_pack.d7eCJl/_new 2017-05-06 18:27:31.725198752 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-polib # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2013 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -17,22 +17,25 @@ # +%bcond_without tests + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-polib -Version:1.0.6 +Version:1.0.8 Release:0 Url:http://bitbucket.org/izi/polib/ Summary:A library to manipulate gettext files License:MIT Group: Development/Languages/Python -Source0: https://pypi.python.org/packages/source/p/polib/polib-%{version}.tar.gz +Source0: https://files.pythonhosted.org/packages/source/p/polib/polib-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-Sphinx -BuildRequires: python-devel -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python3-Sphinx BuildArch: noarch -%endif +%python_subpackages %description polib allows you to manipulate, create, modify gettext catalogs (.pot, .po and @@ -44,12 +47,12 @@ functions 'pofile' and 'mofile', and the 4 core classes: POFile, MOFile, POEntry and MOEntry for creating new files/entries. -%package doc -Summary:A library to manipulate gettext files +%package -n python-polib-doc +Summary:A library to manipulate gettext files - documentation Group: Documentation/Other -Requires: %{name} = %{version} +Provides: %{python_module polib-doc = %{version}} -%description doc +%description -n python-polib-doc polib allows you to manipulate, create, modify gettext catalogs (.pot, .po and binary .mo files). You can load existing files, iterate through it's entries, add, modify entries, comments or metadata, etc... or create new po/pot files @@ -65,24 +68,28 @@ %setup -q -n polib-%{version} %build -python setup.py build +%python_build + pushd docs make html rm _build/html/.buildinfo popd %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%if %{with tests} %check -./runtests.sh +%python_exec tests/tests.py +%endif -%files +%files %{python_files} %defattr(-,root,root) %doc LICENSE CHANGELOG README.rst %{python_sitelib}/* -%files doc +%files -n python-polib-doc %defattr(-,root,root) %doc docs/_build/html ++ polib-1.0.6.tar.gz -> polib-1.0.8.tar.gz ++ diff -urN
commit python-polib for openSUSE:Factory
bina1YWf4rcsR.bin Description: Binary data
commit python-polib for openSUSE:Factory
Hello community, here is the log from the commit of package python-polib for openSUSE:Factory checked in at 2013-09-14 19:09:27 Comparing /work/SRC/openSUSE:Factory/python-polib (Old) and /work/SRC/openSUSE:Factory/.python-polib.new (New) Package is python-polib Changes: --- /work/SRC/openSUSE:Factory/python-polib/python-polib.changes 2013-02-13 14:39:12.0 +0100 +++ /work/SRC/openSUSE:Factory/.python-polib.new/python-polib.changes 2013-09-14 19:09:29.0 +0200 @@ -1,0 +2,6 @@ +Thu Sep 12 14:51:41 UTC 2013 - dval...@suse.com + +- Fixed issue #53 (bad magic number written on big endian platforms) + endian_magic.patch + +--- New: endian_magic.patch Other differences: -- ++ python-polib.spec ++ --- /var/tmp/diff_new_pack.4kuuVP/_old 2013-09-14 19:09:29.0 +0200 +++ /var/tmp/diff_new_pack.4kuuVP/_new 2013-09-14 19:09:29.0 +0200 @@ -25,6 +25,7 @@ License:MIT Group: Development/Languages/Python Source0: http://bitbucket.org/izi/polib/downloads/polib-%{version}.tar.gz +Patch0: endian_magic.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-Sphinx BuildRequires: python-devel @@ -63,6 +64,7 @@ %prep %setup -q -n polib-%{version} +%patch0 -p1 %build python setup.py build ++ endian_magic.patch ++ Index: polib-1.0.3/polib.py === --- polib-1.0.3.orig/polib.py +++ polib-1.0.3/polib.py @@ -536,16 +536,11 @@ class _BaseFile(list): koffsets += [l1, o1 + keystart] voffsets += [l2, o2 + valuestart] offsets = koffsets + voffsets -# check endianness for magic number -if struct.pack('@h', 1) == struct.pack('h', 1): -magic_number = MOFile.LITTLE_ENDIAN -else: -magic_number = MOFile.BIG_ENDIAN output = struct.pack( Iii, # Magic number -magic_number, +MOFile.MAGIC, # Version 0, # number of entries @@ -688,8 +683,8 @@ class MOFile(_BaseFile): This class inherits the :class:`~polib._BaseFile` class and, by extension, the python ``list`` type. -BIG_ENDIAN = 0xde120495 -LITTLE_ENDIAN = 0x950412de +MAGIC = 0x950412de +MAGIC_SWAPPED = 0xde120495 def __init__(self, *args, **kwargs): @@ -1432,7 +1427,8 @@ class _POFileParser(object): if self.current_state in ['MC', 'MS', 'MX']: self.instance.append(self.current_entry) self.current_entry = POEntry() -self.current_entry.flags += self.current_token[3:].split(', ') +self.current_entry.flags += [c.strip() for c in + self.current_token[3:].split(',')] return True def handle_pp(self): @@ -1564,9 +1560,9 @@ class _MOFileParser(object): # parse magic number magic_number = self._readbinary('I', 4) -if magic_number == MOFile.LITTLE_ENDIAN: +if magic_number == MOFile.MAGIC: ii = 'II' -elif magic_number == MOFile.BIG_ENDIAN: +elif magic_number == MOFile.MAGIC_SWAPPED: ii = 'II' else: raise IOError('Invalid mo file, magic number is incorrect !') -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit python-polib for openSUSE:Factory
Hello community, here is the log from the commit of package python-polib for openSUSE:Factory checked in at 2013-06-19 16:43:43 Comparing /work/SRC/openSUSE:Factory/python-polib (Old) and /work/SRC/openSUSE:Factory/.python-polib.new (New) Package is python-polib Changes: Old: python3-polib.changes python3-polib.spec Other differences: -- -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit python-polib for openSUSE:Factory
Hello community, here is the log from the commit of package python-polib for openSUSE:Factory checked in at 2013-02-13 14:39:11 Comparing /work/SRC/openSUSE:Factory/python-polib (Old) and /work/SRC/openSUSE:Factory/.python-polib.new (New) Package is python-polib, Maintainer is Changes: --- /work/SRC/openSUSE:Factory/python-polib/python-polib.changes 2013-02-11 11:12:27.0 +0100 +++ /work/SRC/openSUSE:Factory/.python-polib.new/python-polib.changes 2013-02-13 14:39:12.0 +0100 @@ -1,0 +2,7 @@ +Mon Feb 11 17:31:17 UTC 2013 - lazy.k...@opensuse.org + +- Correct RPM group. +- Use full URL as a source. +- Doesn't require fdupes. + +--- New Changes file: --- /dev/null 2013-02-09 11:18:20.872010756 +0100 +++ /work/SRC/openSUSE:Factory/.python-polib.new/python3-polib.changes 2013-02-13 14:39:12.0 +0100 @@ -0,0 +1,5 @@ +--- +Mon Feb 11 17:29:25 UTC 2013 - lazy.k...@opensuse.org + +- Initial package created - 1.0.3. + Old: polib-1.0.3.tar.bz2 New: polib-1.0.3.tar.gz python3-polib.changes python3-polib.spec Other differences: -- ++ python-polib.spec ++ --- /var/tmp/diff_new_pack.C36ouU/_old 2013-02-13 14:39:13.0 +0100 +++ /var/tmp/diff_new_pack.C36ouU/_new 2013-02-13 14:39:13.0 +0100 @@ -23,10 +23,9 @@ Url:http://bitbucket.org/izi/polib/ Summary:A library to manipulate gettext files License:MIT -Group: Productivity/Other -Source: polib-%{version}.tar.bz2 +Group: Development/Languages/Python +Source0: http://bitbucket.org/izi/polib/downloads/polib-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: fdupes BuildRequires: python-Sphinx BuildRequires: python-devel %if 0%{?suse_version} 0%{?suse_version} = 1110 @@ -47,7 +46,7 @@ %package doc Summary:A library to manipulate gettext files -Group: Productivity/Other +Group: Documentation/Other Requires: %{name} = %{version} %description doc @@ -60,6 +59,8 @@ functions 'pofile' and 'mofile', and the 4 core classes: POFile, MOFile, POEntry and MOEntry for creating new files/entries. +This package contains documentation in HTML format. + %prep %setup -q -n polib-%{version} @@ -72,7 +73,6 @@ %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} -%fdupes -s %{buildroot}/%{_prefix} %check ./runtests.sh ++ python3-polib.spec ++ # # spec file for package python3-polib # # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An Open Source License is a # 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/ # Name: python3-polib Version:1.0.3 Release:0 Summary:Library to Manipulate gettext Files (PO and MO Files) License:MIT Group: Development/Languages/Python Url:http://bitbucket.org/izi/polib/ Source0:http://bitbucket.org/izi/polib/downloads/polib-%{version}.tar.gz BuildRequires: python-Sphinx BuildRequires: python3-devel BuildRequires: python3-distribute BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %description polib is a library to manipulate, create, modify gettext files (pot, po and mo files). You can load existing files, iterate through it's entries, add, modify entries, comments or metadata, etc... or create new po files from scratch. %package doc Summary:Documentation for Library to Manipulate gettext Files Group: Documentation/Other Requires: %{name} = %{version} %description doc polib is a library to manipulate, create, modify gettext files (pot, po and mo files). You can load existing files, iterate through it's entries, add, modify entries, comments or metadata, etc... or create new po files from scratch. This package contains documentation in HTML format. %prep %setup -q -n polib-%{version} %build python3 setup.py build pushd docs make html rm _build/html/.buildinfo popd %install python3 setup.py install \ --prefix=%{_prefix} \
commit python-polib for openSUSE:Factory
Hello community, here is the log from the commit of package python-polib for openSUSE:Factory checked in at 2013-02-11 11:12:25 Comparing /work/SRC/openSUSE:Factory/python-polib (Old) and /work/SRC/openSUSE:Factory/.python-polib.new (New) Package is python-polib, Maintainer is Changes: --- /work/SRC/openSUSE:Factory/python-polib/python-polib.changes 2012-09-20 15:43:55.0 +0200 +++ /work/SRC/openSUSE:Factory/.python-polib.new/python-polib.changes 2013-02-11 11:12:27.0 +0100 @@ -1,0 +2,14 @@ +Sat Feb 9 18:47:20 UTC 2013 - p.drou...@gmail.com + +- Update to 1.0.3 + * Fixed issue #38: POFile.append() raised a duplicate exception when +you tried to add a new entry with the same msgid and a different msgctxt +(only when check_for_duplicates option is set to True) + * Fixed issue #39: Added __init__.py file for convenience + * Fixed issue #41: UnicodeDecodeError when running setup.py build on +python3 with C locale + * polib is now fully PEP8 compliant + * Small improvements: remove unused typ var, mproved Makefile, Make sure +BaseFile.__contains__ returns a boolean value + +--- Old: polib-1.0.1.tar.bz2 New: polib-1.0.3.tar.bz2 Other differences: -- ++ python-polib.spec ++ --- /var/tmp/diff_new_pack.i4Kq6P/_old 2013-02-11 11:12:40.0 +0100 +++ /var/tmp/diff_new_pack.i4Kq6P/_new 2013-02-11 11:12:40.0 +0100 @@ -1,8 +1,8 @@ # # spec file for package python-polib # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. -# Copyright (c) 2011 LISA GmbH, Bingen, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ Name: python-polib -Version:1.0.1 +Version:1.0.3 Release:0 Url:http://bitbucket.org/izi/polib/ Summary:A library to manipulate gettext files ++ polib-1.0.1.tar.bz2 - polib-1.0.3.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polib-1.0.1/CHANGELOG new/polib-1.0.3/CHANGELOG --- old/polib-1.0.1/CHANGELOG 2012-09-11 10:54:22.0 +0200 +++ new/polib-1.0.3/CHANGELOG 2013-02-09 13:27:04.0 +0100 @@ -2,6 +2,18 @@ Changelog = +Version 1.0.3 (2013/02/09) +-- + - Fixed issue #38: POFile.append() raised a duplicate exception when you tried to add a new entry with the same msgid and a different msgctxt (only when check_for_duplicates option is set to True) + - Fixed issue #39: Added __init__.py file for convenience + - Fixed issue #41: UnicodeDecodeError when running setup.py build on python3 with C locale + - polib is now fully PEP8 compliant + - Small improvements: remove unused typ var (thanks Rodrigo Silva), mproved Makefile, Make sure _BaseFile.__contains__ returns a boolean value + +Version 1.0.2 (2012/10/23) +-- + - allow empty comments, flags or occurences lines + Version 1.0.1 (2012/09/11) -- - speed up POFile.merge method (thanks @encukou) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polib-1.0.1/PKG-INFO new/polib-1.0.3/PKG-INFO --- old/polib-1.0.1/PKG-INFO2012-09-11 10:56:32.0 +0200 +++ new/polib-1.0.3/PKG-INFO2013-02-09 19:16:02.0 +0100 @@ -1,12 +1,12 @@ -Metadata-Version: 1.0 +Metadata-Version: 1.1 Name: polib -Version: 1.0.1 +Version: 1.0.3 Summary: A library to manipulate gettext files (po and mo files). Home-page: http://bitbucket.org/izi/polib/ Author: David Jean Louis Author-email: izimo...@gmail.com License: MIT -Download-URL: http://bitbucket.org/izi/polib/downloads/polib-1.0.1.tar.gz +Download-URL: http://bitbucket.org/izi/polib/downloads/polib-1.0.3.tar.gz Description: .. contents:: Table of Contents @@ -38,6 +38,18 @@ Changelog = +Version 1.0.3 (2013/02/09) +-- + - Fixed issue #38: POFile.append() raised a duplicate exception when you tried to add a new entry with the same msgid and a different msgctxt (only when check_for_duplicates option is set to True) + - Fixed issue #39: Added __init__.py file for convenience + - Fixed issue #41: UnicodeDecodeError when running setup.py build on python3 with C locale + - polib is now fully PEP8 compliant + - Small improvements: remove unused typ var
commit python-polib for openSUSE:Factory
Hello community, here is the log from the commit of package python-polib for openSUSE:Factory checked in at 2012-09-20 15:43:53 Comparing /work/SRC/openSUSE:Factory/python-polib (Old) and /work/SRC/openSUSE:Factory/.python-polib.new (New) Package is python-polib, Maintainer is Changes: --- /work/SRC/openSUSE:Factory/python-polib/python-polib.changes 2012-06-14 22:26:34.0 +0200 +++ /work/SRC/openSUSE:Factory/.python-polib.new/python-polib.changes 2012-09-20 15:43:55.0 +0200 @@ -1,0 +2,7 @@ +Wed Sep 12 03:36:04 UTC 2012 - os-...@jacraig.com + +- Update to 1.0.1: + * speed up POFile.merge method + * allow comments starting with two '#' characters + +--- Old: polib-1.0.0.tar.bz2 New: polib-1.0.1.tar.bz2 Other differences: -- ++ python-polib.spec ++ --- /var/tmp/diff_new_pack.EnQ5o1/_old 2012-09-20 15:43:56.0 +0200 +++ /var/tmp/diff_new_pack.EnQ5o1/_new 2012-09-20 15:43:56.0 +0200 @@ -18,7 +18,7 @@ Name: python-polib -Version:1.0.0 +Version:1.0.1 Release:0 Url:http://bitbucket.org/izi/polib/ Summary:A library to manipulate gettext files ++ polib-1.0.0.tar.bz2 - polib-1.0.1.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polib-1.0.0/CHANGELOG new/polib-1.0.1/CHANGELOG --- old/polib-1.0.0/CHANGELOG 2012-06-07 22:10:37.0 +0200 +++ new/polib-1.0.1/CHANGELOG 2012-09-11 10:54:22.0 +0200 @@ -2,14 +2,19 @@ Changelog = +Version 1.0.1 (2012/09/11) +-- + - speed up POFile.merge method (thanks @encukou) + - allow comments starting with two '#' characters (thanks @goibhniu) + Version 1.0.0 (2012/06/08) -- Yeah... after nearly 6 years, polib reaches the stable state :) -Changes and fixes in this release: -- polib.pofile and polib.mofile functions can now return a custom class (thanks Craig Blaszczyk) -- polib now can find the metadata entry no matter where it is located (thanks François Poirotte) -- fixed issue #28 (IOError on reading obsolete previous msgid entries) (thanks James Ni) -- Dropped python 2.4 support +Changes and fixes in this release : + + - polib.pofile and polib.mofile functions can now return a custom class (thanks Craig Blaszczyk) + - polib now can find the metadata entry no matter where it is located (thanks François Poirotte) + - fixed issue #28 (IOError on reading obsolete previous msgid entries) (thanks James Ni) Version 0.7.0 (2011/07/14) -- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polib-1.0.0/LICENSE new/polib-1.0.1/LICENSE --- old/polib-1.0.0/LICENSE 2011-08-01 18:45:10.0 +0200 +++ new/polib-1.0.1/LICENSE 2012-06-08 21:51:15.0 +0200 @@ -1,4 +1,4 @@ -Copyright (c) 2006-2011 David Jean Louis. +Copyright (c) 2006-2012 David Jean Louis. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software), to deal diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polib-1.0.0/PKG-INFO new/polib-1.0.1/PKG-INFO --- old/polib-1.0.0/PKG-INFO2012-06-08 19:02:28.0 +0200 +++ new/polib-1.0.1/PKG-INFO2012-09-11 10:56:32.0 +0200 @@ -1,12 +1,12 @@ Metadata-Version: 1.0 Name: polib -Version: 1.0.0 +Version: 1.0.1 Summary: A library to manipulate gettext files (po and mo files). Home-page: http://bitbucket.org/izi/polib/ Author: David Jean Louis Author-email: izimo...@gmail.com License: MIT -Download-URL: http://bitbucket.org/izi/polib/downloads/polib-1.0.0.tar.gz +Download-URL: http://bitbucket.org/izi/polib/downloads/polib-1.0.1.tar.gz Description: .. contents:: Table of Contents @@ -38,14 +38,19 @@ Changelog = +Version 1.0.1 (2012/09/11) +-- + - speed up POFile.merge method (thanks @encukou) + - allow comments starting with two '#' characters (thanks @goibhniu) + Version 1.0.0 (2012/06/08) -- Yeah... after nearly 6 years, polib reaches the stable state :) -Changes and fixes in this release: -- polib.pofile and polib.mofile functions can now return a custom class (thanks Craig Blaszczyk) -- polib now can find the metadata entry no matter where it is located (thanks François Poirotte) -- fixed issue #28 (IOError on reading obsolete previous msgid entries)
commit python-polib for openSUSE:Factory
Hello community, here is the log from the commit of package python-polib for openSUSE:Factory checked in at 2012-06-14 22:26:32 Comparing /work/SRC/openSUSE:Factory/python-polib (Old) and /work/SRC/openSUSE:Factory/.python-polib.new (New) Package is python-polib, Maintainer is Changes: --- /work/SRC/openSUSE:Factory/python-polib/python-polib.changes 2012-02-17 12:08:58.0 +0100 +++ /work/SRC/openSUSE:Factory/.python-polib.new/python-polib.changes 2012-06-14 22:26:34.0 +0200 @@ -1,0 +2,13 @@ +Wed Jun 13 00:41:24 UTC 2012 - os-...@jacraig.com + +- Update to 1.0.0: + * polib.pofile and polib.mofile functions can now return a custom class +(thanks Craig Blaszczyk) + * polib now can find the metadata entry no matter where it is located (thanks +François Poirotte) + * fixed issue #28 (IOError on reading obsolete previous msgid entries) +(thanks James Ni) + * Dropped python 2.4 support +- Add %check section to run unit tests + +--- Old: polib-0.7.0.tar.bz2 New: polib-1.0.0.tar.bz2 Other differences: -- ++ python-polib.spec ++ --- /var/tmp/diff_new_pack.tTkbb9/_old 2012-06-14 22:26:36.0 +0200 +++ /var/tmp/diff_new_pack.tTkbb9/_new 2012-06-14 22:26:36.0 +0200 @@ -16,8 +16,9 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + Name: python-polib -Version:0.7.0 +Version:1.0.0 Release:0 Url:http://bitbucket.org/izi/polib/ Summary:A library to manipulate gettext files @@ -73,6 +74,9 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot} %fdupes -s %{buildroot}/%{_prefix} +%check +./runtests.sh + %files %defattr(-,root,root) %doc LICENSE CHANGELOG README.rst ++ polib-0.7.0.tar.bz2 - polib-1.0.0.tar.bz2 ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polib-0.7.0/CHANGELOG new/polib-1.0.0/CHANGELOG --- old/polib-0.7.0/CHANGELOG 2011-07-14 14:32:11.0 +0200 +++ new/polib-1.0.0/CHANGELOG 2012-06-07 22:10:37.0 +0200 @@ -2,6 +2,15 @@ Changelog = +Version 1.0.0 (2012/06/08) +-- +Yeah... after nearly 6 years, polib reaches the stable state :) +Changes and fixes in this release: +- polib.pofile and polib.mofile functions can now return a custom class (thanks Craig Blaszczyk) +- polib now can find the metadata entry no matter where it is located (thanks François Poirotte) +- fixed issue #28 (IOError on reading obsolete previous msgid entries) (thanks James Ni) +- Dropped python 2.4 support + Version 0.7.0 (2011/07/14) -- This version adds support for python 3 (thanks to Vinay Sajip). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polib-0.7.0/PKG-INFO new/polib-1.0.0/PKG-INFO --- old/polib-0.7.0/PKG-INFO2011-07-14 14:34:33.0 +0200 +++ new/polib-1.0.0/PKG-INFO2012-06-08 19:02:28.0 +0200 @@ -1,12 +1,12 @@ Metadata-Version: 1.0 Name: polib -Version: 0.7.0 +Version: 1.0.0 Summary: A library to manipulate gettext files (po and mo files). Home-page: http://bitbucket.org/izi/polib/ Author: David Jean Louis Author-email: izimo...@gmail.com License: MIT -Download-URL: http://bitbucket.org/izi/polib/downloads/polib-0.7.0.tar.gz +Download-URL: http://bitbucket.org/izi/polib/downloads/polib-1.0.0.tar.gz Description: .. contents:: Table of Contents @@ -38,6 +38,15 @@ Changelog = +Version 1.0.0 (2012/06/08) +-- +Yeah... after nearly 6 years, polib reaches the stable state :) +Changes and fixes in this release: +- polib.pofile and polib.mofile functions can now return a custom class (thanks Craig Blaszczyk) +- polib now can find the metadata entry no matter where it is located (thanks François Poirotte) +- fixed issue #28 (IOError on reading obsolete previous msgid entries) (thanks James Ni) +- Dropped python 2.4 support + Version 0.7.0 (2011/07/14) -- This version adds support for python 3 (thanks to Vinay Sajip). Files old/polib-0.7.0/docs/.index.rst.un~ and new/polib-1.0.0/docs/.index.rst.un~ differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/polib-0.7.0/docs/conf.py new/polib-1.0.0/docs/conf.py --- old/polib-0.7.0/docs/conf.py2011-07-13 14:18:07.0 +0200 +++ new/polib-1.0.0/docs/conf.py2011-08-01 18:45:10.0 +0200 @@ -18,6 +18,8 @@ #
commit python-polib for openSUSE:Factory
Hello community, here is the log from the commit of package python-polib for openSUSE:Factory checked in at 2012-02-17 12:08:56 Comparing /work/SRC/openSUSE:Factory/python-polib (Old) and /work/SRC/openSUSE:Factory/.python-polib.new (New) Package is python-polib, Maintainer is Changes: --- /work/SRC/openSUSE:Factory/python-polib/python-polib.changes 2011-09-23 12:43:06.0 +0200 +++ /work/SRC/openSUSE:Factory/.python-polib.new/python-polib.changes 2012-02-17 12:08:58.0 +0100 @@ -1,0 +2,6 @@ +Tue Jan 31 10:59:13 UTC 2012 - sasc...@suse.de + +- Resolved spec file conflict +- Remove obsolete SUSE version check (for 10.1) + +--- @@ -30,9 +35,0 @@ - -* Mon Feb 04 2008 - nagap...@gmail.com -- polib 0.3.1 -* Thu Nov 08 2007 - nagap...@gmail.com -- Updated URL -* Wed Nov 07 2007 - nagap...@gmail.com -- polib 0.3.0 -* Mon Jul 02 2007 - anagap...@novell.com -- polib 0.1.0 Other differences: -- ++ python-polib.spec ++ --- /var/tmp/diff_new_pack.hj1HPc/_old 2012-02-17 12:08:59.0 +0100 +++ /var/tmp/diff_new_pack.hj1HPc/_new 2012-02-17 12:08:59.0 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-polib # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2011 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -16,29 +16,23 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # - - Name: python-polib Version:0.7.0 -Release:3 +Release:0 Url:http://bitbucket.org/izi/polib/ Summary:A library to manipulate gettext files License:MIT Group: Productivity/Other Source: polib-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-Sphinx -%if 0%{?suse_version} -%py_requires -%if 0%{?suse_version} 1010 BuildRequires: fdupes -%endif -%if 0%{?suse_version} 1110 +BuildRequires: python-Sphinx +BuildRequires: python-devel +%if 0%{?suse_version} 0%{?suse_version} = 1110 +%{!?python_sitelib: %global python_sitelib %(%{__python} -c from distutils.sysconfig import get_python_lib; print get_python_lib())} +%else BuildArch: noarch %endif -%endif -%{!?python_sitelib: %global python_sitelib %(%{__python} -c from distutils.sysconfig import get_python_lib; print get_python_lib())} %description polib allows you to manipulate, create, modify gettext catalogs (.pot, .po and @@ -51,8 +45,6 @@ POEntry and MOEntry for creating new files/entries. %package doc - - Summary:A library to manipulate gettext files Group: Productivity/Other Requires: %{name} = %{version} @@ -79,9 +71,7 @@ %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} -%if 0%{?suse_version} 1010 %fdupes -s %{buildroot}/%{_prefix} -%endif %files %defattr(-,root,root) -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit python-polib for openSUSE:Factory
Hello community, here is the log from the commit of package python-polib for openSUSE:Factory checked in at 2011-12-06 18:57:04 Comparing /work/SRC/openSUSE:Factory/python-polib (Old) and /work/SRC/openSUSE:Factory/.python-polib.new (New) Package is python-polib, Maintainer is Changes: Other differences: -- ++ python-polib.spec ++ --- /var/tmp/diff_new_pack.v7vjkI/_old 2011-12-06 19:29:50.0 +0100 +++ /var/tmp/diff_new_pack.v7vjkI/_new 2011-12-06 19:29:50.0 +0100 @@ -23,7 +23,7 @@ Release:3 Url:http://bitbucket.org/izi/polib/ Summary:A library to manipulate gettext files -License:X11/MIT +License:MIT Group: Productivity/Other Source: polib-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit python-polib for openSUSE:Factory
Hello community, here is the log from the commit of package python-polib for openSUSE:Factory checked in at Mon Sep 5 17:03:00 CEST 2011. --- python-polib/python-polib.changes 2011-08-15 09:57:07.0 +0200 +++ python-polib/python-polib.changes 2011-08-16 09:48:34.0 +0200 @@ -1,0 +2,6 @@ +Tue Aug 16 07:46:58 UTC 2011 - sasc...@suse.de + +- Fix build on SLE_10 by adding a version check around fdupes and + by removing the %check section + +--- calling whatdependson for head-i586 Other differences: -- ++ python-polib.spec ++ --- /var/tmp/diff_new_pack.6fLVOc/_old 2011-09-05 17:02:45.0 +0200 +++ /var/tmp/diff_new_pack.6fLVOc/_new 2011-09-05 17:02:45.0 +0200 @@ -20,7 +20,7 @@ Name: python-polib Version:0.7.0 -Release:1 +Release:3 Url:http://bitbucket.org/izi/polib/ Summary:A library to manipulate gettext files License:X11/MIT @@ -30,8 +30,10 @@ BuildRequires: python-devel BuildRequires: python-Sphinx %if 0%{?suse_version} -BuildRequires: fdupes %py_requires +%if 0%{?suse_version} 1010 +BuildRequires: fdupes +%endif %if 0%{?suse_version} 1110 BuildArch: noarch %endif @@ -50,6 +52,7 @@ %package doc + Summary:A library to manipulate gettext files Group: Productivity/Other Requires: %{name} = %{version} @@ -76,13 +79,10 @@ %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} -%if 0%{?suse_version} +%if 0%{?suse_version} 1010 %fdupes -s %{buildroot}/%{_prefix} %endif -%check -sh ./runtests.sh - %files %defattr(-,root,root) %doc LICENSE CHANGELOG README.rst Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org
commit python-polib for openSUSE:Factory
Hello community, here is the log from the commit of package python-polib for openSUSE:Factory checked in at Thu Aug 18 00:06:58 CEST 2011. New Changes file: --- /dev/null 2010-08-26 16:28:41.0 +0200 +++ python-polib/python-polib.changes 2011-08-15 09:57:07.0 +0200 @@ -0,0 +1,32 @@ +--- +Mon Aug 15 07:55:03 UTC 2011 - sasc...@suse.de + +- Spec file cleanup: + * Remove authors from description + * Much simpler docs generation and installation (don't install +Makefile and reStructuredText sources) + +--- +Sun Aug 14 23:29:00 CEST 2011 - h...@urpla.net + +- install docs in the package doc dir + +--- +Sat Aug 13 11:58:29 CEST 2011 - h...@urpla.net + +- Release 0.7.0 +- create and package docs + +--- +Mon Sep 20 15:15:09 UTC 2010 - fcro...@novell.com + +- Release 0.5.3 + +* Mon Feb 04 2008 - nagap...@gmail.com +- polib 0.3.1 +* Thu Nov 08 2007 - nagap...@gmail.com +- Updated URL +* Wed Nov 07 2007 - nagap...@gmail.com +- polib 0.3.0 +* Mon Jul 02 2007 - anagap...@novell.com +- polib 0.1.0 calling whatdependson for head-i586 New: polib-0.7.0.tar.bz2 python-polib.changes python-polib.spec Other differences: -- ++ python-polib.spec ++ # # spec file for package python-polib # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2011 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An Open Source License is a # 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/ # Name: python-polib Version:0.7.0 Release:1 Url:http://bitbucket.org/izi/polib/ Summary:A library to manipulate gettext files License:X11/MIT Group: Productivity/Other Source: polib-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel BuildRequires: python-Sphinx %if 0%{?suse_version} BuildRequires: fdupes %py_requires %if 0%{?suse_version} 1110 BuildArch: noarch %endif %endif %{!?python_sitelib: %global python_sitelib %(%{__python} -c from distutils.sysconfig import get_python_lib; print get_python_lib())} %description polib allows you to manipulate, create, modify gettext catalogs (.pot, .po and binary .mo files). You can load existing files, iterate through it's entries, add, modify entries, comments or metadata, etc... or create new po/pot files from scratch. polib provides a simple and pythonic API, exporting only two convenience functions 'pofile' and 'mofile', and the 4 core classes: POFile, MOFile, POEntry and MOEntry for creating new files/entries. %package doc Summary:A library to manipulate gettext files Group: Productivity/Other Requires: %{name} = %{version} %description doc polib allows you to manipulate, create, modify gettext catalogs (.pot, .po and binary .mo files). You can load existing files, iterate through it's entries, add, modify entries, comments or metadata, etc... or create new po/pot files from scratch. polib provides a simple and pythonic API, exporting only two convenience functions 'pofile' and 'mofile', and the 4 core classes: POFile, MOFile, POEntry and MOEntry for creating new files/entries. %prep %setup -q -n polib-%{version} %build python setup.py build pushd docs make html rm _build/html/.buildinfo popd %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} %if 0%{?suse_version} %fdupes -s %{buildroot}/%{_prefix} %endif %check sh ./runtests.sh %files %defattr(-,root,root) %doc LICENSE CHANGELOG README.rst %{python_sitelib}/* %files doc %defattr(-,root,root) %doc docs/_build/html %changelog Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org