14
0
forked from pool/python-polib

Accepting request 490075 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/490075
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-polib?expand=0&rev=19
This commit is contained in:
2017-05-06 16:27:28 +00:00
committed by Git OBS Bridge
4 changed files with 48 additions and 21 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:20d2a0d589a692c11df549bd7cda83c665eef2a83e017b843fecdf956edbad74
size 155877

3
polib-1.0.8.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5affe3d915eb5b4773f4ce164817e383eea0306115cdaf9b64008b3aea8202df
size 160670

View File

@@ -1,3 +1,23 @@
-------------------------------------------------------------------
Sun Apr 23 20:18:09 UTC 2017 - toddrme2178@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.
-------------------------------------------------------------------
Mon May 11 13:09:37 UTC 2015 - benoit.monin@gmx.fr

View File

@@ -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 @@ 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
%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 @@ This package contains documentation in HTML format.
%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