From 45af9f93f11e808e887fb6873c1997e2cdbe9953b0cd3ca943afdcced70818c5 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 28 Oct 2023 00:19:05 +0000 Subject: [PATCH] - Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-patch-ng?expand=0&rev=2 --- python-patch-ng.changes | 5 +++++ python-patch-ng.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-patch-ng.changes b/python-patch-ng.changes index e4d7bdc..2333820 100644 --- a/python-patch-ng.changes +++ b/python-patch-ng.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Oct 28 00:18:58 UTC 2023 - Matej Cepl + +- Clean up the SPEC file + ------------------------------------------------------------------- Fri Oct 27 05:06:31 UTC 2023 - Atri Bhattacharya diff --git a/python-patch-ng.spec b/python-patch-ng.spec index 62e98d7..b600a87 100644 --- a/python-patch-ng.spec +++ b/python-patch-ng.spec @@ -24,11 +24,11 @@ License: MIT URL: https://github.com/conan-io/python-patch # PyPI sources do not include tests Source: https://github.com/conan-io/python-patch-ng/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz -BuildRequires: python-rpm-macros BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: fdupes +BuildRequires: python-rpm-macros BuildArch: noarch %python_subpackages @@ -44,16 +44,18 @@ Patch-ng is a Python library to parse and apply unified diffs. %install %pyproject_install %{python_expand %fdupes %{buildroot}%{$python_sitelib} -sed -Ei "1{\@/usr/bin/env python@d}" %{buildroot}%{$python_sitelib}/patch_ng.py +sed -Ei "1{\@%{_bindir}/env python@d}" %{buildroot}%{$python_sitelib}/patch_ng.py } %check -%python_exec tests/run_tests.py +# run_tests.py is a proprietary ultra-complicated beast +# not replaceable by anything standard +%python_exec tests/run_tests.py -v %files %{python_files} %doc README.md %{python_sitelib}/patch_ng.py -%{python_sitelib}/patch_ng-%{version}.dist-info -%pycache_only %{python_sitelib}/__pycache__ +%{python_sitelib}/patch_ng-%{version}*-info +%pycache_only %{python_sitelib}/__pycache__/patch_ng*.pyc %changelog