From eff3370cacec9167612635da4caa34e1d869cf1b8d1d4d84f4403885a3217122 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Fri, 9 Mar 2018 07:34:15 +0000 Subject: [PATCH] fix patch file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-exrex?expand=0&rev=2 --- add-license.patch | 20 +++++++++++++++++++- python-exrex.spec | 7 ++++--- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/add-license.patch b/add-license.patch index f5227c6..54461b0 100644 --- a/add-license.patch +++ b/add-license.patch @@ -1,7 +1,7 @@ From 2e56d83e0b52fc96d4f39692d794ab5549570e7f Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Thu, 8 Mar 2018 21:59:17 +0100 -Subject: [PATCH] Add full license file +Subject: [PATCH 1/2] Add full license file --- COPYING | 661 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ @@ -675,3 +675,21 @@ index 0000000..be3f7b2 +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU AGPL, see +. + +From 247e53e190442b1cebbedfb1ff902dde1cf80875 Mon Sep 17 00:00:00 2001 +From: Sebastian Wagner +Date: Thu, 8 Mar 2018 22:02:38 +0100 +Subject: [PATCH 2/2] Add MANIFEST to include metafiles + +--- + MANIFEST.in | 1 + + 1 file changed, 1 insertion(+) + create mode 100644 MANIFEST.in + +diff --git a/MANIFEST.in b/MANIFEST.in +new file mode 100644 +index 0000000..b5aeb38 +--- /dev/null ++++ b/MANIFEST.in +@@ -0,0 +1 @@ ++include COPYING README.markdown diff --git a/python-exrex.spec b/python-exrex.spec index 7e05824..93b2452 100644 --- a/python-exrex.spec +++ b/python-exrex.spec @@ -13,23 +13,24 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-exrex Version: 0.10.5 Release: 0 -License: AGPL-3.0+ Summary: Irregular methods for regular expressions -Url: https://github.com/asciimoo/exrex +License: AGPL-3.0-or-later Group: Development/Languages/Python +Url: https://github.com/asciimoo/exrex Source: https://files.pythonhosted.org/packages/source/e/exrex/exrex-%{version}.tar.gz # PATCH-FIX-UPSTREAM add-license.patch Patch0: https://github.com/asciimoo/exrex/pull/32.patch#/add-license.patch -BuildRequires: python-rpm-macros BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildArch: noarch %python_subpackages