From 7f68697ca0a0647f5f55a7def5108e8a7c8a05d5954f07f1a0ca7daa4a2ae16e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 13 Feb 2020 20:49:58 +0000 Subject: [PATCH] Accepting request 774230 from home:benoit_monin:branches:devel:languages:python - update to version 1.9.1 - remove separate license file: now included in source tarball - add fix_encoding_in_setup_py.patch to fix build failure OBS-URL: https://build.opensuse.org/request/show/774230 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-feedgenerator?expand=0&rev=8 --- LICENSE | 28 ---------------------------- feedgenerator-1.9.1.tar.gz | 3 +++ feedgenerator-1.9.tar.gz | 3 --- fix_encoding_in_setup_py.patch | 18 ++++++++++++++++++ python-feedgenerator.changes | 9 +++++++++ python-feedgenerator.spec | 9 ++++----- 6 files changed, 34 insertions(+), 36 deletions(-) delete mode 100644 LICENSE create mode 100644 feedgenerator-1.9.1.tar.gz delete mode 100644 feedgenerator-1.9.tar.gz create mode 100644 fix_encoding_in_setup_py.patch diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 742b593..0000000 --- a/LICENSE +++ /dev/null @@ -1,28 +0,0 @@ -Copyright (c) Django Software Foundation and individual contributors. -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, -are permitted provided that the following conditions are met: - - 1. Redistributions of source code must retain the above copyright notice, - this list of conditions and the following disclaimer. - - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - 3. Neither the name of Django nor the names of its contributors may be used - to endorse or promote products derived from this software without - specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON -ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - diff --git a/feedgenerator-1.9.1.tar.gz b/feedgenerator-1.9.1.tar.gz new file mode 100644 index 0000000..abcb0fd --- /dev/null +++ b/feedgenerator-1.9.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a28a5add781509390d1a6a52d017829853ee4bef1d2e7b4d5da0e9d1b395ce54 +size 25677 diff --git a/feedgenerator-1.9.tar.gz b/feedgenerator-1.9.tar.gz deleted file mode 100644 index 651d34e..0000000 --- a/feedgenerator-1.9.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5ae05daa9cfa47fa406ee4744d0b7fa1c8a05a7a47ee0ad328ddf55327cfb106 -size 4136224 diff --git a/fix_encoding_in_setup_py.patch b/fix_encoding_in_setup_py.patch new file mode 100644 index 0000000..ba3788e --- /dev/null +++ b/fix_encoding_in_setup_py.patch @@ -0,0 +1,18 @@ +--- feedgenerator-1.9.1.orig/setup.py ++++ feedgenerator-1.9.1/setup.py +@@ -3,12 +3,14 @@ + # Using setuptools rather than distutils to get the `develop` command + from setuptools import setup + ++# Needed to specify the encoding ++from io import open + + NAME = 'feedgenerator' + PACKAGES = ['feedgenerator', 'feedgenerator.django', + 'feedgenerator.django.utils'] + DESCRIPTION = 'Standalone version of django.utils.feedgenerator' +-LONG_DESCRIPTION = open('README.rst').read() ++LONG_DESCRIPTION = open('README.rst', encoding='utf-8').read() + + URL = "https://github.com/getpelican/feedgenerator" + diff --git a/python-feedgenerator.changes b/python-feedgenerator.changes index 1d2a266..db03c5d 100644 --- a/python-feedgenerator.changes +++ b/python-feedgenerator.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Sun Feb 9 20:10:45 UTC 2020 - Benoît Monin + +- update to version 1.9.1: + * Remove unnecessary files from source distribution + * Update PyPI classifiers +- remove separate license file: now included in source tarball +- add fix_encoding_in_setup_py.patch to fix build failure + ------------------------------------------------------------------- Thu Dec 6 13:27:23 UTC 2018 - Tomáš Chvátal diff --git a/python-feedgenerator.spec b/python-feedgenerator.spec index 5ab8b81..4d0f1ce 100644 --- a/python-feedgenerator.spec +++ b/python-feedgenerator.spec @@ -1,7 +1,7 @@ # # spec file for package python-feedgenerator # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,14 +18,14 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-feedgenerator -Version: 1.9 +Version: 1.9.1 Release: 0 Summary: Standalone version of django.utilsfeedgenerator, compatible with Py3k License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/getpelican/feedgenerator Source: https://files.pythonhosted.org/packages/source/f/feedgenerator/feedgenerator-%{version}.tar.gz -Source1: https://raw.githubusercontent.com/getpelican/feedgenerator/master/LICENSE +Patch0: fix_encoding_in_setup_py.patch BuildRequires: %{python_module pytz} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} @@ -43,8 +43,7 @@ It is based on the current Django Version 1.5.dev20120824122350. %prep %setup -q -n feedgenerator-%{version} -# add the missing licence -cp %{SOURCE1} LICENSE +%autopatch -p1 %build %python_build