forked from pool/python-confpy
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 36d5b66bb1 | |||
| 6411155760 | |||
| c0691222f4 | |||
| 623c74d1bf |
@@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 4 14:47:10 UTC 2025 - Felix Stegmeier <felix.stegmeier@suse.com>
|
||||||
|
|
||||||
|
- Migration to libalternatives
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
Tue Nov 17 05:41:43 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-confpy
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%bcond_without libalternatives
|
||||||
Name: python-confpy
|
Name: python-confpy
|
||||||
Version: 0.11.0
|
Version: 0.11.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -25,8 +25,12 @@ License: MIT
|
|||||||
URL: https://github.com/kevinconway/confpy
|
URL: https://github.com/kevinconway/confpy
|
||||||
Source: https://files.pythonhosted.org/packages/source/c/confpy/confpy-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/c/confpy/confpy-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module Jinja2}
|
BuildRequires: %{python_module Jinja2}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: alts
|
||||||
|
Requires: alts
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Suggests: python-Jinja2
|
Suggests: python-Jinja2
|
||||||
@@ -41,26 +45,25 @@ Config file parsing and option management.
|
|||||||
find . -name '*.pyc' -delete
|
find . -name '*.pyc' -delete
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/confpy-generate
|
%python_clone -a %{buildroot}%{_bindir}/confpy-generate
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%pytest
|
%pytest
|
||||||
|
|
||||||
%post
|
%pre
|
||||||
%python_install_alternative confpy-generate
|
# Removing old update-alternatives entries.
|
||||||
|
%python_libalternatives_reset_alternative confpy-generate
|
||||||
%postun
|
|
||||||
%python_uninstall_alternative confpy-generate
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%python_alternative %{_bindir}/confpy-generate
|
%python_alternative %{_bindir}/confpy-generate
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/confpy
|
||||||
|
%{python_sitelib}/confpy-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user