diff --git a/python-MarkupSafe.changes b/python-MarkupSafe.changes index 77eb84f..41705c0 100644 --- a/python-MarkupSafe.changes +++ b/python-MarkupSafe.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Apr 4 15:13:20 UTC 2017 - jmatejek@suse.com + +- update source url +- fix obs/prov to refer to old python +- drop _speedups.c from installed directory + ------------------------------------------------------------------- Wed Mar 22 15:11:29 UTC 2017 - tbechtold@suse.com diff --git a/python-MarkupSafe.spec b/python-MarkupSafe.spec index a84ae14..3a60e97 100644 --- a/python-MarkupSafe.spec +++ b/python-MarkupSafe.spec @@ -16,6 +16,7 @@ # +%define oldpython python %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-MarkupSafe Version: 1.0 @@ -24,14 +25,14 @@ Url: http://dev.pocoo.org/ Summary: Implements a XML/HTML/XHTML Markup safe string for Python License: BSD-3-Clause Group: Development/Languages/Python -Source: https://pypi.io/packages/source/M/MarkupSafe/MarkupSafe-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/M/MarkupSafe/MarkupSafe-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros %ifpython2 -Provides: python-markupsafe = %{version} -Obsoletes: python-markupsafe < %{version} +Provides: %{oldpython}-markupsafe = %{version} +Obsoletes: %{oldpython}-markupsafe < %{version} %endif %python_subpackages @@ -49,6 +50,7 @@ export CFLAGS="%{optflags}" %install %python_install +%python_expand rm %{buildroot}%{$python_sitearch}/markupsafe/_speedups.c %check %python_exec setup.py test