forked from pool/python-polib
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
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
polib-0.7.0.tar.bz2
Normal file
3
polib-0.7.0.tar.bz2
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:35b0cdd16d9ec29bedd8625f7674433db68e69541b1a0d42632c4f0c4c8b5a3f
|
||||
size 120501
|
||||
32
python-polib.changes
Normal file
32
python-polib.changes
Normal file
@@ -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
|
||||
86
python-polib.spec
Normal file
86
python-polib.spec
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user