Hello community, here is the log from the commit of package python-FormEncode for openSUSE:Factory checked in at 2017-10-11 22:56:24 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-FormEncode (Old) and /work/SRC/openSUSE:Factory/.python-FormEncode.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-FormEncode" Wed Oct 11 22:56:24 2017 rev:11 rq:522042 version:1.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-FormEncode/python-FormEncode.changes 2016-03-16 10:34:29.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-FormEncode.new/python-FormEncode.changes 2017-10-11 22:56:25.481866597 +0200 @@ -1,0 +2,7 @@ +Thu Aug 24 13:38:57 UTC 2017 - [email protected] + +- singlespec auto-conversion +- common -doc subpackage +- improve packaging of docs + +------------------------------------------------------------------- @@ -255,0 +263 @@ + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-FormEncode.spec ++++++ --- /var/tmp/diff_new_pack.9U20qU/_old 2017-10-11 22:56:26.377827305 +0200 +++ /var/tmp/diff_new_pack.9U20qU/_new 2017-10-11 22:56:26.397826428 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-FormEncode # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,42 +16,43 @@ # +%define oldpython python +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-FormEncode Version: 1.3.0 Release: 0 -Url: http://formencode.org Summary: HTML form validation, generation, and conversion package License: Python-2.0 Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/F/FormEncode/FormEncode-%{version}.zip +Url: http://formencode.org +Source: https://files.pythonhosted.org/packages/source/F/FormEncode/FormEncode-%{version}.zip Source1: FormEncode-doc-infrastructure.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build +# Documentation requirements: +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: python-rpm-macros +BuildRequires: python3-Sphinx BuildRequires: unzip -Provides: python-formencode = %{version} -Obsoletes: python-formencode < %{version} -# 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 +BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch +%ifpython2 +Provides: %{oldpython}-formencode = %{version} +Obsoletes: %{oldpython}-formencode < %{version} %endif +%python_subpackages %description FormEncode validates and converts nested structures. It allows for a declarative form of defining the validation, and decoupled processes for filling and generating forms. -%package doc +%package -n %{name}-doc Summary: HTML form validation, generation, and conversion package Group: Development/Libraries/Python -Requires: %{name} = %{version} +Provides: %{python_module FormEncode-doc = %{version}} -%description doc +%description -n %{name}-doc This package contains documentation files for %{name}. %prep @@ -61,29 +62,25 @@ sed -i '/^:date:/d' docs/*.txt # fix build-compare %build -python setup.py build -python setup.py build_sphinx && rm build/sphinx/html/.buildinfo +%python_build +%{_python_use_flavor python3} +python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo && mv build/sphinx/html html %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install # install documentation -rm -r %{buildroot}/%{python_sitelib}/docs # remove misplaced documentation -mkdir -p %{buildroot}%{_docdir}/%{name} -cp -r README.rst build/sphinx/html %{buildroot}%{_docdir}/%{name}/ +rm -r %{buildroot}%{python_sitelib}/docs # remove misplaced documentation -%fdupes %{buildroot}/%{_prefix} +%fdupes %{buildroot}%{_prefix} -%files +%files %{python_files} %defattr(-,root,root,-) -%exclude %{_docdir}/%{name}/html -%doc %dir %{_docdir}/%{name}/ -%doc %{_docdir}/%{name}/README.rst +%doc README.rst %{python_sitelib}/* -%files doc +%files -n %{name}-doc %defattr(-,root,root,-) -%doc %dir %{_docdir}/%{name}/html -%doc %{_docdir}/%{name}/html/* +%doc html %changelog
