Accepting request 485684 from devel:languages:python
- update source url - fix obs/prov to refer to old python - drop _speedups.c from installed directory - Add missing BuildRequires for python-rpm-macros - update to 1.0.0 + No upstream changelog - Switch to singlespec approach OBS-URL: https://build.opensuse.org/request/show/485684 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-MarkupSafe?expand=0&rev=18
This commit is contained in:
commit
8c4cea7b6e
@ -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
3
MarkupSafe-1.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a6be69091dac236ea9c6bc7d012beab42010fa914c459791d627dad4910eb665
|
||||
size 14356
|
@ -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
|
||||
|
||||
|
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user