From 2ce44ec8013e8268bc3d05c1fd299387d3d4bdba233ccab2d4db7b1898682684 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 15 Dec 2022 10:12:42 +0000 Subject: [PATCH] Accepting request 1043020 from home:jayvdb:branches:devel:languages:python - Remove pr_10.patch merged upstream - Update to v0.1.1 OBS-URL: https://build.opensuse.org/request/show/1043020 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-srcinfo?expand=0&rev=7 --- pr_10.patch | 23 ----------------------- python-srcinfo.changes | 6 ++++++ python-srcinfo.spec | 24 ++++++++---------------- srcinfo-0.0.8.tar.gz | 3 --- srcinfo-0.1.1.tar.gz | 3 +++ 5 files changed, 17 insertions(+), 42 deletions(-) delete mode 100644 pr_10.patch delete mode 100644 srcinfo-0.0.8.tar.gz create mode 100644 srcinfo-0.1.1.tar.gz diff --git a/pr_10.patch b/pr_10.patch deleted file mode 100644 index b919984..0000000 --- a/pr_10.patch +++ /dev/null @@ -1,23 +0,0 @@ -From 5f0bec161836dc7d0726b3fe5ed5f9442acb46fd Mon Sep 17 00:00:00 2001 -From: John Vandenberg -Date: Sun, 13 Oct 2019 13:33:08 +0700 -Subject: [PATCH] Add Python 2.7 compatibility - -Index: python-srcinfo-0.0.8/setup.py -=================================================================== ---- python-srcinfo-0.0.8.orig/setup.py -+++ python-srcinfo-0.0.8/setup.py -@@ -1,3 +1,4 @@ -+# -*- coding: utf-8 -*- - import os - from setuptools import setup - -Index: python-srcinfo-0.0.8/srcinfo/parse.py -=================================================================== ---- python-srcinfo-0.0.8.orig/srcinfo/parse.py -+++ python-srcinfo-0.0.8/srcinfo/parse.py -@@ -1,3 +1,4 @@ -+from __future__ import absolute_import - from parse import parse - - arrays = ['pkgname', 'arch', 'license', 'groups', 'options', diff --git a/python-srcinfo.changes b/python-srcinfo.changes index d646408..b498643 100644 --- a/python-srcinfo.changes +++ b/python-srcinfo.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Dec 14 23:16:31 UTC 2022 - John Vandenberg + +- Remove pr_10.patch merged upstream +- Update to v0.1.1 + ------------------------------------------------------------------- Mon Nov 23 12:56:19 UTC 2020 - John Vandenberg diff --git a/python-srcinfo.spec b/python-srcinfo.spec index b0bbf56..935280e 100644 --- a/python-srcinfo.spec +++ b/python-srcinfo.spec @@ -1,7 +1,7 @@ # # spec file for package python-srcinfo # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,26 +16,23 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-srcinfo -Version: 0.0.8 +Version: 0.1.1 Release: 0 Summary: Python library to parse Arch SRCINFO files License: ISC Group: Development/Languages/Python URL: https://github.com/kyrias/python-srcinfo -Source: https://github.com/kyrias/python-srcinfo/archive/%{version}.tar.gz#/srcinfo-%{version}.tar.gz -# Backport of https://github.com/kyrias/python-srcinfo/pull/10 -Patch0: pr_10.patch +Source: https://files.pythonhosted.org/packages/source/s/srcinfo/srcinfo-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-parse +Requires: python-parse >= 1.19.0 Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives BuildArch: noarch # SECTION test requirements -BuildRequires: %{python_module parse} +BuildRequires: %{python_module parse >= 1.19.0} BuildRequires: %{python_module pytest} # /SECTION %python_subpackages @@ -44,14 +41,9 @@ BuildRequires: %{python_module pytest} Python library to parse Arch .SRCINFO files. %prep -%setup -q -n python-srcinfo-%{version} -%patch0 -p1 +%setup -q -n srcinfo-%{version} mv test/__init__.py test_srcinfo.py -# Only needed until 0.0.9 is released -# https://github.com/kyrias/python-srcinfo/pull/8 -sed -i '/nose/d' setup.py - %build %python_build @@ -73,6 +65,6 @@ sed -i '/nose/d' setup.py %doc README.rst %license LICENSE %python_alternative %{_bindir}/parse_srcinfo -%{python_sitelib}/* +%{python_sitelib}/srcinfo*/ %changelog diff --git a/srcinfo-0.0.8.tar.gz b/srcinfo-0.0.8.tar.gz deleted file mode 100644 index f451322..0000000 --- a/srcinfo-0.0.8.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b39ea3a296ed7410fbbd65774f430b3962ea1f5f46d375f557f99c93ebd96bd5 -size 4531 diff --git a/srcinfo-0.1.1.tar.gz b/srcinfo-0.1.1.tar.gz new file mode 100644 index 0000000..a7347e7 --- /dev/null +++ b/srcinfo-0.1.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f620ec0697ab7419e85afd37c5737660b9978b463672e25b5b7ee610fc540757 +size 5172