Hello community, here is the log from the commit of package python-Tempita for openSUSE:Factory checked in at 2017-07-11 08:24:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Tempita (Old) and /work/SRC/openSUSE:Factory/.python-Tempita.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Tempita" Tue Jul 11 08:24:58 2017 rev:12 rq:507965 version:0.5.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Tempita/python-Tempita.changes 2016-11-15 18:02:39.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-Tempita.new/python-Tempita.changes 2017-07-11 08:24:59.278703497 +0200 @@ -1,0 +2,5 @@ +Mon Jul 3 14:42:19 UTC 2017 - [email protected] + +- update to singlespec + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Tempita.spec ++++++ --- /var/tmp/diff_new_pack.f3quIa/_old 2017-07-11 08:24:59.862621140 +0200 +++ /var/tmp/diff_new_pack.f3quIa/_new 2017-07-11 08:24:59.862621140 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-Tempita # -# 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,6 +16,7 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-Tempita Version: 0.5.2 Release: 0 @@ -25,15 +26,16 @@ Group: Development/Languages/Python Source: https://pypi.io/packages/source/T/Tempita/Tempita-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros +%ifpython2 Provides: python-tempita = %{version} Obsoletes: python-tempita < %{version} -%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 -BuildArch: noarch %endif +BuildArch: noarch + +%python_subpackages %description Tempita is a small templating language for text substitution. @@ -47,12 +49,12 @@ %setup -q -n Tempita-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install -%files +%files %{python_files} %defattr(-,root,root,-) %{python_sitelib}/*
