forked from pool/python-srcinfo
Accepting request 1043090 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1043090 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-srcinfo?expand=0&rev=4
This commit is contained in:
23
pr_10.patch
23
pr_10.patch
@@ -1,23 +0,0 @@
|
|||||||
From 5f0bec161836dc7d0726b3fe5ed5f9442acb46fd Mon Sep 17 00:00:00 2001
|
|
||||||
From: John Vandenberg <jayvdb@gmail.com>
|
|
||||||
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',
|
|
@@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 14 23:16:31 UTC 2022 - John Vandenberg <jayvdb@gmail.com>
|
||||||
|
|
||||||
|
- Remove pr_10.patch merged upstream
|
||||||
|
- Update to v0.1.1
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Nov 23 12:56:19 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
Mon Nov 23 12:56:19 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-srcinfo
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,26 +16,23 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
Name: python-srcinfo
|
Name: python-srcinfo
|
||||||
Version: 0.0.8
|
Version: 0.1.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python library to parse Arch SRCINFO files
|
Summary: Python library to parse Arch SRCINFO files
|
||||||
License: ISC
|
License: ISC
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/kyrias/python-srcinfo
|
URL: https://github.com/kyrias/python-srcinfo
|
||||||
Source: https://github.com/kyrias/python-srcinfo/archive/%{version}.tar.gz#/srcinfo-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/s/srcinfo/srcinfo-%{version}.tar.gz
|
||||||
# Backport of https://github.com/kyrias/python-srcinfo/pull/10
|
|
||||||
Patch0: pr_10.patch
|
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-parse
|
Requires: python-parse >= 1.19.0
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun):update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module parse}
|
BuildRequires: %{python_module parse >= 1.19.0}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
@@ -44,14 +41,9 @@ BuildRequires: %{python_module pytest}
|
|||||||
Python library to parse Arch .SRCINFO files.
|
Python library to parse Arch .SRCINFO files.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n python-srcinfo-%{version}
|
%setup -q -n srcinfo-%{version}
|
||||||
%patch0 -p1
|
|
||||||
mv test/__init__.py test_srcinfo.py
|
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
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
@@ -73,6 +65,6 @@ sed -i '/nose/d' setup.py
|
|||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%python_alternative %{_bindir}/parse_srcinfo
|
%python_alternative %{_bindir}/parse_srcinfo
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/srcinfo*/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:b39ea3a296ed7410fbbd65774f430b3962ea1f5f46d375f557f99c93ebd96bd5
|
|
||||||
size 4531
|
|
3
srcinfo-0.1.1.tar.gz
Normal file
3
srcinfo-0.1.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f620ec0697ab7419e85afd37c5737660b9978b463672e25b5b7ee610fc540757
|
||||||
|
size 5172
|
Reference in New Issue
Block a user