diff --git a/MarkupSafe-0.23.tar.gz b/MarkupSafe-0.23.tar.gz deleted file mode 100644 index 1393075..0000000 --- a/MarkupSafe-0.23.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a4ec1aff59b95a14b45eb2e23761a0179e98319da5a7eb76b56ea8cdc7b871c3 -size 13416 diff --git a/MarkupSafe-1.0.tar.gz b/MarkupSafe-1.0.tar.gz new file mode 100644 index 0000000..bfc3362 --- /dev/null +++ b/MarkupSafe-1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a6be69091dac236ea9c6bc7d012beab42010fa914c459791d627dad4910eb665 +size 14356 diff --git a/python-MarkupSafe.changes b/python-MarkupSafe.changes index d867b8d..41705c0 100644 --- a/python-MarkupSafe.changes +++ b/python-MarkupSafe.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +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 + +- Add missing BuildRequires for python-rpm-macros + +------------------------------------------------------------------- +Wed Mar 22 13:08:44 UTC 2017 - tbechtold@suse.com + +- update to 1.0.0 + + No upstream changelog +- Switch to singlespec approach + ------------------------------------------------------------------- Tue Jul 15 10:42:00 UTC 2014 - toddrme2178@gmail.com diff --git a/python-MarkupSafe.spec b/python-MarkupSafe.spec index 210f53b..3a60e97 100644 --- a/python-MarkupSafe.spec +++ b/python-MarkupSafe.spec @@ -1,7 +1,7 @@ # # spec file for package python-MarkupSafe # -# Copyright (c) 2014 SUSE LINUX Products 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,23 +16,26 @@ # +%define oldpython python +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-MarkupSafe -Version: 0.23 +Version: 1.0 Release: 0 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: http://pypi.python.org/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-devel -BuildRequires: python-setuptools -%if 0%{?suse_version} -%py_requires +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros +%ifpython2 +Provides: %{oldpython}-markupsafe = %{version} +Obsoletes: %{oldpython}-markupsafe < %{version} %endif -Provides: python-markupsafe = %{version} -Obsoletes: python-markupsafe < %{version} -%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} + +%python_subpackages %description Implements a unicode subclass that supports HTML strings. This can be used to @@ -42,15 +45,17 @@ safely encode strings for dynamically generated web pages. %setup -q -n MarkupSafe-%{version} %build -CFLAGS="%{optflags}" python setup.py build +export CFLAGS="%{optflags}" +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand rm %{buildroot}%{$python_sitearch}/markupsafe/_speedups.c %check -python setup.py test +%python_exec setup.py test -%files +%files %python_files %defattr(-,root,root,-) %doc AUTHORS LICENSE README.rst %{python_sitearch}/markupsafe/