- 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
This commit is contained in:
committed by
Git OBS Bridge
parent
b554870354
commit
80e28e02ee
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user