From 243ee02fb16ddf222eda470f2e6a40090f6c94a71983105aa780ec932a041f31 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 12 Apr 2023 15:49:16 +0000 Subject: [PATCH 1/2] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-proselint?expand=0&rev=28 --- python-proselint.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-proselint.spec b/python-proselint.spec index 27a92bc..7b765e3 100644 --- a/python-proselint.spec +++ b/python-proselint.spec @@ -1,7 +1,7 @@ # # spec file for package python-proselint # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed From baf3527946f83bf3766e354602aabd2bec5de3f4f4478de16d2a8ada68cdd971 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 1 Sep 2023 04:53:34 +0000 Subject: [PATCH 2/2] - Remove future requirement, not required. - Switch to autosetup. - Drop python2 leftovers. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-proselint?expand=0&rev=29 --- python-proselint.changes | 7 +++++++ python-proselint.spec | 10 +--------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/python-proselint.changes b/python-proselint.changes index e1a9a42..013373b 100644 --- a/python-proselint.changes +++ b/python-proselint.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Sep 1 04:53:07 UTC 2023 - Steve Kowalik + +- Remove future requirement, not required. +- Switch to autosetup. +- Drop python2 leftovers. + ------------------------------------------------------------------- Thu Oct 20 10:05:08 UTC 2022 - pgajdos@suse.com diff --git a/python-proselint.spec b/python-proselint.spec index 7b765e3..b6aa3aa 100644 --- a/python-proselint.spec +++ b/python-proselint.spec @@ -16,8 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without python2 %define modname proselint Name: python-proselint Version: 0.13.0 @@ -34,18 +32,13 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-click Requires: python-dbm -Requires: python-future Requires(post): update-alternatives Requires(postun):update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module click} BuildRequires: %{python_module dbm} -BuildRequires: %{python_module future} BuildRequires: %{python_module pytest} -%if %{with python2} -BuildRequires: python-mock -%endif # /SECTION %python_subpackages @@ -58,8 +51,7 @@ Proselint is a command-line utility that can be integrated into existing tools. %prep -%setup -q -n proselint-%{version} -%autopatch -p1 +%autosetup -p1 -n proselint-%{version} sed -i -e '/^#!\//, 1d' proselint/*.py