forked from pool/python-iniconfig
Eliminate the need for setuptools_scm by adding no-setuptools_scm.patch.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-iniconfig?expand=0&rev=23
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-iniconfig
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,7 +16,6 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == "test"
|
||||
%define psuffix -%{flavor}
|
||||
@@ -35,10 +34,12 @@ Group: Development/Languages/Python
|
||||
URL: https://github.com/RonnyPfannschmidt/iniconfig
|
||||
Source: https://files.pythonhosted.org/packages/source/i/iniconfig/iniconfig-%{version}.tar.gz
|
||||
Source1: https://github.com/pytest-dev/iniconfig/archive/refs/tags/v%{version}.tar.gz#/iniconfig-%{version}-tests.tar.gz
|
||||
# PATCH-FIX-OPENSUSE no-setuptools_scm.patch mcepl@suse.com
|
||||
# don't use setuptools_scm
|
||||
Patch0: no-setuptools_scm.patch
|
||||
BuildRequires: %{python_module base >= 3.8}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools >= 77}
|
||||
BuildRequires: %{python_module setuptools-scm >= 8}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
@@ -61,7 +62,7 @@ having a unique set of features:
|
||||
* iniconfig raises an Error if two sections have the same name.
|
||||
|
||||
%prep
|
||||
%setup -q -n iniconfig-%{version} -a1
|
||||
%autosetup -p1 -n iniconfig-%{version} -a1
|
||||
|
||||
%if !%{with test}
|
||||
%build
|
||||
|
||||
Reference in New Issue
Block a user