From d5089f31a1e82d2455adbb9125117a86177d0202178831687179abe50a9433cb Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 17 Jan 2024 23:07:16 +0000 Subject: [PATCH] Clean up patches. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-screenplain?expand=0&rev=19 --- fix_entry_point.patch | 15 +-------------- python-screenplain.spec | 4 ++-- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/fix_entry_point.patch b/fix_entry_point.patch index 8abf4f6..34a8afc 100644 --- a/fix_entry_point.patch +++ b/fix_entry_point.patch @@ -1,7 +1,6 @@ --- screenplain/main.py | 2 +- - setup.cfg | 3 +++ - 2 files changed, 4 insertions(+), 1 deletion(-) + 1 file changed, 1 insertion(+), 1 deletion(-) --- a/screenplain/main.py +++ b/screenplain/main.py @@ -14,15 +13,3 @@ parser = OptionParser(usage=usage) parser.add_option( '-f', '--format', dest='output_format', ---- a/setup.cfg -+++ b/setup.cfg -@@ -1,6 +1,9 @@ - [metadata] - license_files = LICENSE.txt - -+[pycodestyle] -+ignore = E275,E402,W504 -+ - [egg_info] - tag_build = - tag_date = 0 diff --git a/python-screenplain.spec b/python-screenplain.spec index 3948f3e..2ad4923 100644 --- a/python-screenplain.spec +++ b/python-screenplain.spec @@ -23,7 +23,7 @@ Summary: Convert text file to viewable screenplay License: MIT Group: Development/Languages/Python URL: https://www.screenplain.com/ -# Source: https://files.pythonhosted.org/packages/source/s/screenplain/screenplain-%{version}.tar.gz +# Source: https://files.pythonhosted.org/packages/source/s/screenplain/screenplain-%%{version}.tar.gz # Tarball generated from gh#vilcans/screenplain#62 Source: screenplain-%{version}.tar.gz # PATCH-FIX-UPSTREAM fix_entry_point.patch mcepl@suse.com @@ -83,6 +83,6 @@ sed -i '1{/^#!.*env python/d}' screenplain/main.py %files %{python_files} %python_alternative %{_bindir}/screenplain %{python_sitelib}/screenplain -%{python_sitelib}/screenplain-%{version}*-info +%{python_sitelib}/screenplain-0.11.1*-info %changelog