4 Commits

2 changed files with 20 additions and 5 deletions

View File

@@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue Jun 17 04:14:31 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- No more greedy globs in %files.
-------------------------------------------------------------------
Thu Feb 27 10:53:17 UTC 2025 - ecsos <ecsos@opensuse.org>
- Add %{?sle15_python_module_pythons}
-------------------------------------------------------------------
Thu Oct 13 07:18:51 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-first
#
# Copyright (c) 2022 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
@@ -16,7 +16,7 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons}
Name: python-first
Version: 2.0.2
Release: 0
@@ -25,8 +25,10 @@ License: MIT
Group: Development/Languages/Python
URL: https://github.com/hynek/first/
Source: https://files.pythonhosted.org/packages/source/f/first/first-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
@@ -39,10 +41,10 @@ A Python library that returns the first true value of an iterable.
%setup -q -n first-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -51,6 +53,8 @@ A Python library that returns the first true value of an iterable.
%files %{python_files}
%doc AUTHORS.rst README.rst
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/first.py
%pycache_only %{python_sitelib}/__pycache__/first.*.pyc
%{python_sitelib}/first-%{version}.dist-info
%changelog