2013-07-29 07:45:25 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-translationstring
|
|
|
|
|
#
|
2021-01-13 14:44:26 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2015-02-06 16:21:23 +00:00
|
|
|
# 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
|
|
|
|
2020-07-23 14:28:38 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-07-29 07:45:25 +00:00
|
|
|
#
|
|
|
|
|
|
2015-02-06 16:21:23 +00:00
|
|
|
|
2023-06-11 11:29:17 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2013-07-29 07:45:25 +00:00
|
|
|
Name: python-translationstring
|
2020-07-23 14:28:38 +00:00
|
|
|
Version: 1.4
|
2013-07-29 07:45:25 +00:00
|
|
|
Release: 0
|
|
|
|
|
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
|
2020-07-23 14:28:38 +00:00
|
|
|
URL: https://github.com/Pylons/translationstring
|
2017-07-09 10:44:02 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/t/translationstring/translationstring-%{version}.tar.gz
|
2021-01-13 14:44:26 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2017-07-09 10:44:02 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
BuildRequires: fdupes
|
2018-02-14 18:52:07 +00:00
|
|
|
BuildRequires: git
|
2017-07-09 10:44:02 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2020-07-23 14:28:38 +00:00
|
|
|
BuildArch: noarch
|
2018-02-14 18:52:07 +00:00
|
|
|
# SECTION documentation requirements
|
|
|
|
|
BuildRequires: python3-Sphinx
|
|
|
|
|
BuildRequires: python3-pylons-sphinx-themes
|
|
|
|
|
# /SECTION
|
2017-07-09 10:44:02 +00:00
|
|
|
%python_subpackages
|
2013-07-29 07:45:25 +00:00
|
|
|
|
|
|
|
|
%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
|
|
|
|
2017-07-09 10:44:02 +00:00
|
|
|
%package -n %{name}-doc
|
|
|
|
|
Summary: Documentation files for %{name}
|
2013-07-29 07:45:25 +00:00
|
|
|
Group: Development/Languages/Python
|
2017-07-09 10:44:02 +00:00
|
|
|
Provides: %{python_module translationstring-doc = %{version}}
|
2013-07-29 07:45:25 +00:00
|
|
|
|
2017-07-09 10:44:02 +00:00
|
|
|
%description -n %{name}-doc
|
2013-07-29 07:45:25 +00:00
|
|
|
This package contains documentation files for %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n translationstring-%{version}
|
2016-03-09 16:23:14 +00:00
|
|
|
# drop build date from doc to fix build-compare
|
|
|
|
|
sed -i "s/\(html_last_updated_fmt = \).*/\\1None/" docs/conf.py
|
2017-07-09 10:44:02 +00:00
|
|
|
rm -rf translationstring.egg-info
|
2013-07-29 07:45:25 +00:00
|
|
|
|
|
|
|
|
%build
|
2017-07-09 10:44:02 +00:00
|
|
|
%python_build
|
2013-07-29 07:45:25 +00:00
|
|
|
|
|
|
|
|
%install
|
2017-07-09 10:44:02 +00:00
|
|
|
%python_install
|
2018-02-14 18:52:07 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
# Need package installed before building docs
|
|
|
|
|
pushd docs && PYTHONPATH=%{buildroot}%{python3_sitelib} make html && rm _build/html/.buildinfo
|
|
|
|
|
popd
|
2017-07-09 10:44:02 +00:00
|
|
|
|
|
|
|
|
%check
|
2021-01-13 14:44:26 +00:00
|
|
|
%pytest
|
2013-07-29 07:45:25 +00:00
|
|
|
|
2017-07-09 10:44:02 +00:00
|
|
|
%files %{python_files}
|
2020-07-23 14:28:38 +00:00
|
|
|
%license LICENSE.txt
|
|
|
|
|
%doc CONTRIBUTORS.txt COPYRIGHT.txt README.rst
|
2017-07-09 10:44:02 +00:00
|
|
|
%{python_sitelib}/*
|
2013-07-29 07:45:25 +00:00
|
|
|
|
2017-07-09 10:44:02 +00:00
|
|
|
%files -n %{name}-doc
|
2013-07-29 07:45:25 +00:00
|
|
|
%doc docs/_build/html
|
|
|
|
|
|
|
|
|
|
%changelog
|