- Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-patch-ng?expand=0&rev=2
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user