forked from pool/python-polib
Accepting request 155141 from home:Lazy_Kent:branches:devel:languages:python
Cosmetic changes in spec. Built with Python3 (https://build.opensuse.org/package/show?package=python3-polib&project=home%3ALazy_Kent). Please link to python3-polib. OBS-URL: https://build.opensuse.org/request/show/155141 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-polib?expand=0&rev=16
This commit is contained in:
committed by
Git OBS Bridge
parent
578c4c7173
commit
3dd8a750aa
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4fc010807c64e3cfb6484490181bf282b305e3486fd953a6557beb33c75f3f4f
|
||||
size 122880
|
||||
3
polib-1.0.3.tar.gz
Normal file
3
polib-1.0.3.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7b281e5ca799f9061bf029f2e911e99df483a1a02ef2ffaaf73fe80222f26aff
|
||||
size 149954
|
||||
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 11 17:31:17 UTC 2013 - lazy.kent@opensuse.org
|
||||
|
||||
- Correct RPM group.
|
||||
- Use full URL as a source.
|
||||
- Doesn't require fdupes.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Feb 9 18:47:20 UTC 2013 - p.drouand@gmail.com
|
||||
|
||||
|
||||
@@ -23,10 +23,9 @@ 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
|
||||
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 @@ POEntry and MOEntry for creating new files/entries.
|
||||
|
||||
%package doc
|
||||
Summary: A library to manipulate gettext files
|
||||
Group: Productivity/Other
|
||||
Group: Documentation/Other
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description doc
|
||||
@@ -60,6 +59,8 @@ 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}
|
||||
|
||||
@@ -72,7 +73,6 @@ popd
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%fdupes -s %{buildroot}/%{_prefix}
|
||||
|
||||
%check
|
||||
./runtests.sh
|
||||
|
||||
5
python3-polib.changes
Normal file
5
python3-polib.changes
Normal file
@@ -0,0 +1,5 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 11 17:29:25 UTC 2013 - lazy.kent@opensuse.org
|
||||
|
||||
- Initial package created - 1.0.3.
|
||||
|
||||
79
python3-polib.spec
Normal file
79
python3-polib.spec
Normal file
@@ -0,0 +1,79 @@
|
||||
#
|
||||
# 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} \
|
||||
--root=%{buildroot}
|
||||
|
||||
%check
|
||||
./runtests.sh
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc CHANGELOG LICENSE README.rst
|
||||
%{python3_sitelib}/*
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root,-)
|
||||
%doc docs/_build/html
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user