14
0

3 Commits

2 changed files with 6 additions and 34 deletions

View File

@@ -1,32 +1,8 @@
-------------------------------------------------------------------
Fri Jan 24 14:57:30 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
Wed Feb 5 15:27:05 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
- Use libalternatives instead of update-alternatives, bsc#1235786
-------------------------------------------------------------------
Mon Feb 26 12:47:18 UTC 2024 - Robert Schweikert <rjschwei@suse.com>
- Remove the forced switch to Python 3.11 in SLE 15 SP4 and
openSUSE Leap 15.4 and later. However the updated version will only
be available as a Python 3.11 build. (jsc#PED-4514)
-------------------------------------------------------------------
Thu Feb 1 21:08:03 UTC 2024 - Robert Schweikert <rjschwei@suse.com>
- Switch users of SLE 15 SP4 and openSUSE Leap 15.4 and later to the
Python 3.11 build (jsc#PCT-371). The Python 3.6 build will no longer be
maintained
-------------------------------------------------------------------
Thu Feb 1 14:09:31 UTC 2024 - Dirk Müller <dmueller@suse.com>
- switch to PEP517 / wheel build
-------------------------------------------------------------------
Sun Jun 11 14:05:39 UTC 2023 - ecsos <ecsos@opensuse.org>
- Add %{?sle15_python_module_pythons}
-------------------------------------------------------------------
Fri Feb 10 09:10:10 UTC 2023 - Matej Cepl <mcepl@suse.com>
@@ -44,7 +20,7 @@ Sat Sep 17 15:41:47 UTC 2022 - Dirk Müller <dmueller@suse.com>
Mon Sep 27 03:03:07 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
- Add patch remove-nose.patch:
* Remove use of nose in the tests.
* Remove use of nose in the tests.
-------------------------------------------------------------------
Mon May 31 08:00:06 UTC 2021 - pgajdos@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-jmespath
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -15,14 +15,12 @@
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-jmespath
Version: 1.0.1
Release: 0
@@ -32,11 +30,9 @@ URL: https://github.com/jmespath/jmespath.py
Source: https://github.com/jmespath/jmespath.py/archive/refs/tags/%{version}.tar.gz#/jmespath-%{version}.tar.gz
# Testing
BuildRequires: %{python_module hypothesis}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module ply >= 3.4}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-ply >= 3.4
@@ -85,10 +81,10 @@ The expression: foo.*.name will return ["one", "two"].
%autosetup -p1 -n jmespath.py-%{version}
%build
%pyproject_wheel
%python_build
%install
%pyproject_install
%python_install
mv %{buildroot}%{_bindir}/jp.py %{buildroot}%{_bindir}/jp
%python_clone -a %{buildroot}%{_bindir}/jp
%python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -111,7 +107,7 @@ mv %{buildroot}%{_bindir}/jp.py %{buildroot}%{_bindir}/jp
%license LICENSE.txt
%doc README.rst
%{python_sitelib}/jmespath
%{python_sitelib}/jmespath-%{version}.dist-info
%{python_sitelib}/jmespath-%{version}*-info
%python_alternative %{_bindir}/jp
%changelog