2013-07-29 07:45:25 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-translationstring
|
|
|
|
|
#
|
2015-02-06 16:21:23 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
|
# Copyright (c) 2015 LISA GmbH, Bingen, Germany.
|
2013-07-29 07:45:25 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
2015-02-06 16:21:23 +00:00
|
|
|
|
2013-07-29 07:45:25 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2015-02-06 16:21:23 +00:00
|
|
|
|
2013-07-29 07:45:25 +00:00
|
|
|
Name: python-translationstring
|
2015-02-06 16:21:23 +00:00
|
|
|
Version: 1.3
|
2013-07-29 07:45:25 +00:00
|
|
|
Release: 0
|
|
|
|
|
Url: http://www.repoze.org
|
|
|
|
|
Summary: Utility library for i18n relied on by various Repoze and Pyramid packages
|
2013-12-16 17:35:04 +00:00
|
|
|
License: SUSE-Repoze
|
2013-07-29 07:45:25 +00:00
|
|
|
Group: Development/Languages/Python
|
|
|
|
|
Source: translationstring-%{version}.tar.gz
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
BuildRequires: python-pylons_sphinx_theme
|
|
|
|
|
BuildRequires: python-setuptools
|
2013-07-29 07:47:54 +00:00
|
|
|
# Documentation requirements:
|
2013-07-29 07:45:25 +00:00
|
|
|
BuildRequires: python-Sphinx
|
2013-07-29 07:47:54 +00:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
|
%else
|
2013-07-29 07:45:25 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
2013-07-29 07:47:54 +00:00
|
|
|
A library used by various Pylons Project packages for internationalization
|
|
|
|
|
(i18n) duties related to translation.
|
2013-07-29 07:45:25 +00:00
|
|
|
|
|
|
|
|
This package provides a translation string class, a translation string factory
|
|
|
|
|
class, translation and pluralization primitives, and a utility that helps
|
2013-07-29 07:47:54 +00:00
|
|
|
Chameleon templates use translation facilities of this package. It does not
|
|
|
|
|
depend on Babel, but its translation and pluralization services are meant to
|
|
|
|
|
work best when provided with an instance of the babel.support.Translations class.
|
2013-07-29 07:45:25 +00:00
|
|
|
|
|
|
|
|
%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
|