From 3dd8a750aa8024e03be0d8adaa229a74e833ff6b619a821f596e79d706b2b1ef Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Wed, 13 Feb 2013 08:25:11 +0000 Subject: [PATCH] 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 --- polib-1.0.3.tar.bz2 | 3 -- polib-1.0.3.tar.gz | 3 ++ python-polib.changes | 7 ++++ python-polib.spec | 10 +++--- python3-polib.changes | 5 +++ python3-polib.spec | 79 +++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 99 insertions(+), 8 deletions(-) delete mode 100644 polib-1.0.3.tar.bz2 create mode 100644 polib-1.0.3.tar.gz create mode 100644 python3-polib.changes create mode 100644 python3-polib.spec diff --git a/polib-1.0.3.tar.bz2 b/polib-1.0.3.tar.bz2 deleted file mode 100644 index 5789cb7..0000000 --- a/polib-1.0.3.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4fc010807c64e3cfb6484490181bf282b305e3486fd953a6557beb33c75f3f4f -size 122880 diff --git a/polib-1.0.3.tar.gz b/polib-1.0.3.tar.gz new file mode 100644 index 0000000..d4eb01d --- /dev/null +++ b/polib-1.0.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7b281e5ca799f9061bf029f2e911e99df483a1a02ef2ffaaf73fe80222f26aff +size 149954 diff --git a/python-polib.changes b/python-polib.changes index fa01202..c1c0247 100644 --- a/python-polib.changes +++ b/python-polib.changes @@ -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 diff --git a/python-polib.spec b/python-polib.spec index e2fa85c..09f3722 100644 --- a/python-polib.spec +++ b/python-polib.spec @@ -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 diff --git a/python3-polib.changes b/python3-polib.changes new file mode 100644 index 0000000..ab70d94 --- /dev/null +++ b/python3-polib.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon Feb 11 17:29:25 UTC 2013 - lazy.kent@opensuse.org + +- Initial package created - 1.0.3. + diff --git a/python3-polib.spec b/python3-polib.spec new file mode 100644 index 0000000..ad8dd18 --- /dev/null +++ b/python3-polib.spec @@ -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