commit 9134c4c953143064adb122759d9a77d086293f075b3ad242f1b4424aa6d287c3 Author: Tomáš Chvátal Date: Mon Oct 14 06:58:22 2019 +0000 Accepting request 738137 from home:jayvdb:py-new Needed for https://build.opensuse.org/package/show/home:jayvdb:py-new/python-pkgbuilder p.s. would be nice to get some help with https://build.opensuse.org/request/show/738133 and https://build.opensuse.org/request/show/695108 (six months old; needed for improving python-stdeb) OBS-URL: https://build.opensuse.org/request/show/738137 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-srcinfo?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pr_10.patch b/pr_10.patch new file mode 100644 index 0000000..b919984 --- /dev/null +++ b/pr_10.patch @@ -0,0 +1,23 @@ +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 new file mode 100644 index 0000000..2dd5da9 --- /dev/null +++ b/python-srcinfo.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sat Oct 12 03:28:25 PM UTC 2019 - John Vandenberg + +- Added pr_10.patch for Python 2 compatibility +- Initial spec for v0.0.8 diff --git a/python-srcinfo.spec b/python-srcinfo.spec new file mode 100644 index 0000000..8fa4a09 --- /dev/null +++ b/python-srcinfo.spec @@ -0,0 +1,64 @@ +# +# spec file for package python-srcinfo +# +# Copyright (c) 2019 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-srcinfo +Version: 0.0.8 +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 +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-parse +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module nose} +BuildRequires: %{python_module parse} +# /SECTION +%python_subpackages + +%description +Python library to parse Arch .SRCINFO files. + +%prep +%setup -q -n python-srcinfo-%{version} +%patch0 -p1 + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%python_exec setup.py test + +%files %{python_files} +%doc README.rst +%license LICENSE +%python3_only %{_bindir}/parse_srcinfo +%{python_sitelib}/* + +%changelog diff --git a/srcinfo-0.0.8.tar.gz b/srcinfo-0.0.8.tar.gz new file mode 100644 index 0000000..f451322 --- /dev/null +++ b/srcinfo-0.0.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b39ea3a296ed7410fbbd65774f430b3962ea1f5f46d375f557f99c93ebd96bd5 +size 4531