14
0
forked from pool/python-polib
Files
python-polib/python-polib.spec
Tomáš Chvátal 80e28e02ee - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-polib?expand=0&rev=28
2018-01-25 15:45:53 +00:00

89 lines
2.9 KiB
RPMSpec

#
# spec file for package python-polib
#
# 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
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-polib
Version: 1.1.0
Release: 0
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
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-Sphinx
BuildArch: noarch
%python_subpackages
%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 -n python-polib-doc
Summary: A library to manipulate gettext files - documentation
Group: Documentation/Other
Provides: %{python_module polib-doc = %{version}}
%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
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.
This package contains documentation in HTML format.
%prep
%setup -q -n polib-%{version}
%build
%python_build
pushd docs
make %{?_smp_mflags} html
rm _build/html/.buildinfo
popd
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec tests/tests.py
%files %{python_files}
%doc LICENSE CHANGELOG README.rst
%{python_sitelib}/*
%files -n python-polib-doc
%doc docs/_build/html
%changelog