15
0

Accepting request 184565 from home:frispete:python

needed by current pyramid project, depending on python-pylons_sphinx_theme

OBS-URL: https://build.opensuse.org/request/show/184565
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-translationstring?expand=0&rev=1
This commit is contained in:
Sascha Peilicke
2013-07-29 07:45:25 +00:00
committed by Git OBS Bridge
commit 6276fbddb0
5 changed files with 112 additions and 0 deletions

View File

@@ -0,0 +1,80 @@
#
# spec file for package python-translationstring
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 LISA GmbH, Bingen, 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: python-translationstring
Version: 1.1
Release: 0
Url: http://www.repoze.org
Summary: Utility library for i18n relied on by various Repoze and Pyramid packages
License: BSD-like (http://repoze.org/license.html)
Group: Development/Languages/Python
Source: translationstring-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-pylons_sphinx_theme
BuildRequires: python-setuptools
BuildRequires: python-Sphinx
%if 0%{?suse_version}
%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
A library used by various `Pylons Project <http://pylonsproject.org>`_ packages
for internationalization (i18n) duties related to translation.
This package provides a translation string class, a translation string factory
class, translation and pluralization primitives, and a utility that helps
`Chameleon <http://chameleon.repoze.org>`_ templates use translation facilities
of this package. It does not depend on `Babel <http://babel.edgewall.org>`_,
but its translation and pluralization services are meant to work best when
provided with an instance of the babel.support.Translations class.
Please see http://docs.pylonsproject.org/projects/translationstring/dev/ or
the docs/index.rst file in this package for the documentation.
%package doc
Summary: Utility library for i18n relied on by various Repoze and Pyramid packages
Group: Development/Languages/Python
Requires: %{name} = %{version}
%description doc
This package contains documentation files for %{name}.
%prep
%setup -q -n translationstring-%{version}
%build
python setup.py build
pushd docs && make html && rm _build/html/.buildinfo
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%defattr(-,root,root,-)
%doc *.txt
%python_sitelib/*
%files doc
%defattr(-,root,root,-)
%doc docs/_build/html
%changelog