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
This commit is contained in:
Dirk Mueller 2017-03-22 13:30:16 +00:00 committed by Git OBS Bridge
parent 00f2854c81
commit bacf888368
4 changed files with 25 additions and 16 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a4ec1aff59b95a14b45eb2e23761a0179e98319da5a7eb76b56ea8cdc7b871c3
size 13416

3
MarkupSafe-1.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a6be69091dac236ea9c6bc7d012beab42010fa914c459791d627dad4910eb665
size 14356

View File

@ -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

View File

@ -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/