forked from pool/python-srcinfo
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
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
23
pr_10.patch
Normal file
23
pr_10.patch
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
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',
|
5
python-srcinfo.changes
Normal file
5
python-srcinfo.changes
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Oct 12 03:28:25 PM UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||||
|
|
||||||
|
- Added pr_10.patch for Python 2 compatibility
|
||||||
|
- Initial spec for v0.0.8
|
64
python-srcinfo.spec
Normal file
64
python-srcinfo.spec
Normal file
@@ -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
|
3
srcinfo-0.0.8.tar.gz
Normal file
3
srcinfo-0.0.8.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:b39ea3a296ed7410fbbd65774f430b3962ea1f5f46d375f557f99c93ebd96bd5
|
||||||
|
size 4531
|
Reference in New Issue
Block a user