2 Commits

2 changed files with 13 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Jun 12 10:46:13 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Sun Jun 11 13:53:35 UTC 2023 - ecsos <ecsos@opensuse.org>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-serpent
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,9 @@ Summary: Serialization based on astliteral_eval
License: MIT
URL: https://github.com/irmen/Serpent
Source: https://files.pythonhosted.org/packages/source/s/serpent/serpent-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
@@ -46,17 +48,19 @@ and de-serialize it there.
%setup -q -n serpent-%{version}
%build
%python_build
%pyproject_wheel
%check
%pytest
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/serpent.py
%pycache_only %{python_sitelib}/__pycache__/serpent*
%{python_sitelib}/serpent-%{version}*-info
%changelog