forked from pool/python-glob2
- Switch to autosetup and pyproject macros.
- No more greedy globs in %files. - Add patch support-pytest-8.patch: * Use correct setup/teardown methods for Pytest 8. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-glob2?expand=0&rev=7
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-glob2
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,17 +16,19 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-glob2
|
||||
Version: 0.7
|
||||
Release: 0
|
||||
Summary: Glob module recursive wildcards support
|
||||
License: BSD-2-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://pypi.python.org/pypi/glob2
|
||||
Source: https://files.pythonhosted.org/packages/source/g/glob2/glob2-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM gh#miracle2k/python-glob2#31
|
||||
Patch0: support-pytest-8.patch
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
@@ -45,13 +47,13 @@ module with the following additions:
|
||||
glob on virtual filesystems.
|
||||
|
||||
%prep
|
||||
%setup -q -n glob2-%{version}
|
||||
%autosetup -p1 -n glob2-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
@@ -60,6 +62,7 @@ module with the following additions:
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.rst CHANGES
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/glob2
|
||||
%{python_sitelib}/glob2-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user