17
0
2023-10-28 00:19:05 +00:00
committed by Git OBS Bridge
parent 842b3b161f
commit 45af9f93f1
2 changed files with 12 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Oct 28 00:18:58 UTC 2023 - Matej Cepl <mcepl@cepl.eu>
- Clean up the SPEC file
-------------------------------------------------------------------
Fri Oct 27 05:06:31 UTC 2023 - Atri Bhattacharya <badshah400@gmail.com>

View File

@@ -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