commit c81dc3b80754e720a613679c6a62edac7592f03feb6edf9e2bbd43f2804201d4 Author: Marcus Rueckert Date: Wed Aug 17 22:06:50 2011 +0000 Accepting request 78853 from devel:languages:python OBS-URL: https://build.opensuse.org/request/show/78853 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-polib?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/polib-0.7.0.tar.bz2 b/polib-0.7.0.tar.bz2 new file mode 100644 index 0000000..4bcff35 --- /dev/null +++ b/polib-0.7.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:35b0cdd16d9ec29bedd8625f7674433db68e69541b1a0d42632c4f0c4c8b5a3f +size 120501 diff --git a/python-polib.changes b/python-polib.changes new file mode 100644 index 0000000..500e67a --- /dev/null +++ b/python-polib.changes @@ -0,0 +1,32 @@ +------------------------------------------------------------------- +Mon Aug 15 07:55:03 UTC 2011 - saschpe@suse.de + +- Spec file cleanup: + * Remove authors from description + * Much simpler docs generation and installation (don't install + Makefile and reStructuredText sources) + +------------------------------------------------------------------- +Sun Aug 14 23:29:00 CEST 2011 - hpj@urpla.net + +- install docs in the package doc dir + +------------------------------------------------------------------- +Sat Aug 13 11:58:29 CEST 2011 - hpj@urpla.net + +- Release 0.7.0 +- create and package docs + +------------------------------------------------------------------- +Mon Sep 20 15:15:09 UTC 2010 - fcrozat@novell.com + +- Release 0.5.3 + +* Mon Feb 04 2008 - nagappan@gmail.com +- polib 0.3.1 +* Thu Nov 08 2007 - nagappan@gmail.com +- Updated URL +* Wed Nov 07 2007 - nagappan@gmail.com +- polib 0.3.0 +* Mon Jul 02 2007 - anagappan@novell.com +- polib 0.1.0 diff --git a/python-polib.spec b/python-polib.spec new file mode 100644 index 0000000..a7ae3e6 --- /dev/null +++ b/python-polib.spec @@ -0,0 +1,86 @@ +# +# spec file for package polib +# +# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2011 LISA GmbH, Bingen, Germany. +# +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +Name: python-polib +Version: 0.7.0 +Release: 0 +URL: http://bitbucket.org/izi/polib/ +Summary: A library to manipulate gettext files +License: X11/MIT +Group: Productivity/Other +Source: polib-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: python-devel +BuildRequires: python-Sphinx +%if 0%{?suse_version} +BuildRequires: fdupes +%py_requires +%if 0%{?suse_version} > 1110 +BuildArch: noarch +%endif +%endif +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +%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 doc +Summary: A library to manipulate gettext files +Group: Productivity/Other +Requires: %{name} = %{version} + +%description 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. + +%prep +%setup -q -n polib-%{version} + +%build +python setup.py build +pushd docs +make html +rm _build/html/.buildinfo +popd + +%install +python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%if 0%{?suse_version} +%fdupes -s %{buildroot}/%{_prefix} +%endif + +%check +sh ./runtests.sh + +%files +%defattr(-,root,root) +%doc LICENSE CHANGELOG README.rst +%{python_sitelib}/* + +%files doc +%defattr(-,root,root) +%doc docs/_build/html + +%changelog