15
0
forked from pool/python-confpy

Accepting request 1280117 from home:mcalabkova:branches:devel:languages:python

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/request/show/1280117
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-confpy?expand=0&rev=3
This commit is contained in:
2025-05-26 11:34:19 +00:00
committed by Git OBS Bridge
parent 9224834631
commit 074f0f5a87
2 changed files with 12 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 26 10:46:45 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Tue Nov 17 05:41:43 UTC 2020 - John Vandenberg <jayvdb@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-confpy
#
# Copyright (c) 2020 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,6 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-confpy
Version: 0.11.0
Release: 0
@@ -25,8 +24,10 @@ License: MIT
URL: https://github.com/kevinconway/confpy
Source: https://files.pythonhosted.org/packages/source/c/confpy/confpy-%{version}.tar.gz
BuildRequires: %{python_module Jinja2}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Suggests: python-Jinja2
@@ -41,10 +42,10 @@ Config file parsing and option management.
find . -name '*.pyc' -delete
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/confpy-generate
%python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -61,6 +62,7 @@ find . -name '*.pyc' -delete
%doc README.rst
%license LICENSE
%python_alternative %{_bindir}/confpy-generate
%{python_sitelib}/*
%{python_sitelib}/confpy
%{python_sitelib}/confpy-%{version}*-info
%changelog