Hello community, here is the log from the commit of package python-translationstring for openSUSE:Factory checked in at 2017-09-26 21:12:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-translationstring (Old) and /work/SRC/openSUSE:Factory/.python-translationstring.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-translationstring" Tue Sep 26 21:12:46 2017 rev:5 rq:509011 version:1.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-translationstring/python-translationstring.changes 2016-03-16 10:34:30.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-translationstring.new/python-translationstring.changes 2017-09-26 21:13:16.596063230 +0200 @@ -1,0 +2,6 @@ +Sun Jul 9 07:37:49 UTC 2017 - aloi...@gmx.com + +- Converted to single-spec +- Enabled tests + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-translationstring.spec ++++++ --- /var/tmp/diff_new_pack.8126dS/_old 2017-09-26 21:13:17.147985619 +0200 +++ /var/tmp/diff_new_pack.8126dS/_new 2017-09-26 21:13:17.147985619 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-translationstring # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2015 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -17,24 +17,24 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-translationstring Version: 1.3 Release: 0 -Url: http://www.repoze.org Summary: Utility library for i18n relied on by various Repoze and Pyramid packages License: SUSE-Repoze Group: Development/Languages/Python -Source: translationstring-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-pylons_sphinx_theme -BuildRequires: python-setuptools -# Documentation requirements: -BuildRequires: python-Sphinx -%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 +Url: http://www.repoze.org +Source: https://files.pythonhosted.org/packages/source/t/translationstring/translationstring-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +# SECTION documentation requirements +BuildRequires: %{python_module Sphinx} +BuildRequires: %{python_module pylons-sphinx-themes} +# /SECTION +BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildArch: noarch -%endif +%python_subpackages %description A library used by various Pylons Project packages for internationalization @@ -46,32 +46,38 @@ 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. -%package doc -Summary: Utility library for i18n relied on by various Repoze and Pyramid packages +%package -n %{name}-doc +Summary: Documentation files for %{name} Group: Development/Languages/Python Requires: %{name} = %{version} +Provides: %{python_module translationstring-doc = %{version}} -%description doc +%description -n %{name}-doc This package contains documentation files for %{name}. %prep %setup -q -n translationstring-%{version} # drop build date from doc to fix build-compare sed -i "s/\(html_last_updated_fmt = \).*/\\1None/" docs/conf.py +rm -rf translationstring.egg-info %build -python setup.py build +%python_build pushd docs && make html && rm _build/html/.buildinfo %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} + +%check +%python_exec setup.py test -%files +%files %{python_files} %defattr(-,root,root,-) %doc *.txt -%python_sitelib/* +%{python_sitelib}/* -%files doc +%files -n %{name}-doc %defattr(-,root,root,-) %doc docs/_build/html