Hello community, here is the log from the commit of package python-Mako for openSUSE:Factory checked in at 2017-04-19 18:08:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Mako (Old) and /work/SRC/openSUSE:Factory/.python-Mako.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Mako" Wed Apr 19 18:08:02 2017 rev:26 rq:486119 version:1.0.6 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Mako/python-Mako.changes 2017-02-15 10:02:05.180700392 +0100 +++ /work/SRC/openSUSE:Factory/.python-Mako.new/python-Mako.changes 2017-04-19 18:08:03.565320599 +0200 @@ -1,0 +2,12 @@ +Thu Apr 6 11:38:50 UTC 2017 - [email protected] + +- restore compatibility Provides + +------------------------------------------------------------------- +Wed Mar 1 16:14:57 UTC 2017 - [email protected] + +- Converted to single-spec +- Switched source URL to pypi.io +- Removed update-alternative + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Mako.spec ++++++ --- /var/tmp/diff_new_pack.72HUc8/_old 2017-04-19 18:08:04.769150311 +0200 +++ /var/tmp/diff_new_pack.72HUc8/_new 2017-04-19 18:08:04.769150311 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-Mako # -# 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,34 +16,35 @@ # +%define oldpython python +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-Mako Version: 1.0.6 Release: 0 -Url: http://www.makotemplates.org/ Summary: A super-fast Python templating language License: MIT Group: Development/Languages/Python -Source: https://files.pythonhosted.org/packages/source/M/Mako/Mako-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-MarkupSafe -BuildRequires: python-devel -BuildRequires: python-mock -BuildRequires: python-pbr -BuildRequires: python-pytest -BuildRequires: python-setuptools +Url: http://www.makotemplates.org/ +Source: https://pypi.io/packages/source/M/Mako/Mako-%{version}.tar.gz +BuildRequires: %{python_module MarkupSafe} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module pbr} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros Requires: python-MarkupSafe -Provides: python-mako = %{version} -%if 0%{?suse_version} Recommends: python-Beaker >= 1.1 -%endif +Provides: python-mako = %{version} Obsoletes: python-mako < %{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 +%ifpython2 +Provides: %{oldpython}-mako = %{version} +Obsoletes: %{oldpython}-mako < %{version} %endif -Requires(post): update-alternatives -Requires(preun): update-alternatives +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +%python_subpackages %description Mako is a template library written in Python. It provides a familiar, non-XML @@ -59,35 +60,20 @@ %setup -q -n Mako-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} - -# Prepare for update-alternatives usage -mkdir -p %{buildroot}%{_sysconfdir}/alternatives -mv %{buildroot}%{_bindir}/mako-render %{buildroot}%{_bindir}/mako-render-%{py_ver} -ln -s -f %{_sysconfdir}/alternatives/mako-render %{buildroot}%{_bindir}/mako-render - -%post -%_sbindir/update-alternatives \ - --install %{_bindir}/mako-render mako-render %{_bindir}/mako-render-%{py_ver} 30 - -%preun -if [ $1 -eq 0 ] ; then - %_sbindir/update-alternatives --remove mako-render %{_bindir}/mako-render-%{py_ver} -fi +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} %check -python setup.py test +%python_exec setup.py test -%files +%files %{python_files} %defattr(-,root,root,-) %doc CHANGES LICENSE README.rst %doc examples -%{_bindir}/mako-render -%{_bindir}/mako-render-%{py_ver} -%ghost %{_sysconfdir}/alternatives/mako-render +%python3_only %{_bindir}/mako-render %{python_sitelib}/mako/ %{python_sitelib}/Mako-%{version}-py*.egg-info
