From bacf8883686955bb59b1d4879ab4548b902715a944f4e519d73d6aaa08658217 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 22 Mar 2017 13:30:16 +0000 Subject: [PATCH] Accepting request 481979 from home:tbechtold:branches:devel:languages:python - update to 1.0.0 + No upstream changelog - Switch to singlespec approach OBS-URL: https://build.opensuse.org/request/show/481979 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-MarkupSafe?expand=0&rev=21 --- MarkupSafe-0.23.tar.gz | 3 --- MarkupSafe-1.0.tar.gz | 3 +++ python-MarkupSafe.changes | 7 +++++++ python-MarkupSafe.spec | 28 +++++++++++++++------------- 4 files changed, 25 insertions(+), 16 deletions(-) delete mode 100644 MarkupSafe-0.23.tar.gz create mode 100644 MarkupSafe-1.0.tar.gz 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..0810047 100644 --- a/python-MarkupSafe.changes +++ b/python-MarkupSafe.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +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..78cbd13 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,24 @@ # +%{?!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://pypi.io/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 -%endif +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +%ifpython2 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)")} +%endif + +%python_subpackages %description Implements a unicode subclass that supports HTML strings. This can be used to @@ -42,15 +43,16 @@ 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 %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/