Accepting request 1200812 from devel:tools:scm
OBS-URL: https://build.opensuse.org/request/show/1200812 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mercurial-extension-hg-evolve?expand=0&rev=12
This commit is contained in:
commit
d27b2a84ed
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 12 18:05:51 UTC 2024 - Lukas Müller <expeehaa@outlook.com>
|
||||
|
||||
- Use existing python RPM macros instead of defining custom ones.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 11 18:30:16 UTC 2024 - Lukas Müller <expeehaa@outlook.com>
|
||||
|
||||
|
@ -18,21 +18,12 @@
|
||||
|
||||
%if 0%{?suse_version} > 1600
|
||||
# Tumbleweed
|
||||
%define pythons python3
|
||||
%define mercurial_python python3
|
||||
%define mercurial_python_executable python3
|
||||
%define pythons python3
|
||||
%else
|
||||
%if 0%{?sle_version} >= 150600
|
||||
%{?sle15_python_module_pythons}
|
||||
# Leap 15.6
|
||||
%if %pythons == "python311"
|
||||
%define mercurial_python python311
|
||||
%define mercurial_python_executable python3.11
|
||||
%endif
|
||||
%else
|
||||
%define pythons python3
|
||||
%define mercurial_python python3
|
||||
%define mercurial_python_executable python3
|
||||
%define pythons python3
|
||||
%endif
|
||||
%endif
|
||||
|
||||
@ -45,13 +36,13 @@ Group: Development/Tools/Version Control
|
||||
URL: https://www.mercurial-scm.org/doc/evolution/
|
||||
Source0: https://files.pythonhosted.org/packages/source/h/hg-evolve/hg-evolve-%{version}.tar.gz
|
||||
Source90: tests.blacklist
|
||||
BuildRequires: %{mercurial_python}
|
||||
BuildRequires: %{pythons}
|
||||
# python311-flake8 is not available on Leap 15.6.
|
||||
%if 0%{?suse_version} > 1600 || 0%{?sle_version} < 150600
|
||||
BuildRequires: %{mercurial_python}-flake8
|
||||
BuildRequires: %{python_module flake8}
|
||||
%endif
|
||||
BuildRequires: %{mercurial_python}-pyflakes
|
||||
BuildRequires: %{mercurial_python}-setuptools
|
||||
BuildRequires: %{python_module pyflakes}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: mercurial
|
||||
BuildRequires: mercurial-tests
|
||||
@ -80,7 +71,7 @@ rm %{buildroot}%{python_sitelib}/hgext3rd/__pycache__/__init__*.pyc
|
||||
|
||||
%check
|
||||
cd tests
|
||||
%{mercurial_python_executable} %{_datadir}/mercurial/tests/run-tests.py --with-hg=%{_bindir}/hg --blacklist=%{SOURCE90}
|
||||
%python_exec %{_datadir}/mercurial/tests/run-tests.py --with-hg=%{_bindir}/hg --blacklist=%{SOURCE90}
|
||||
|
||||
%files
|
||||
%doc CHANGELOG README.rst
|
||||
|
Loading…
Reference in New Issue
Block a user