forked from pool/python-j2gen
Compare commits
4 Commits
Author | SHA256 | Date | |
---|---|---|---|
2acb9c0c14 | |||
5329754443 | |||
4bb9c9531f | |||
2bbe9c5445 |
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 9 08:52:50 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to libalternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 30 08:35:58 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to pip-based build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 3 08:08:50 UTC 2021 - pgajdos@suse.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-j2gen
|
||||
#
|
||||
# Copyright (c) 2021 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,8 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python2 1
|
||||
%bcond_without libalternatives
|
||||
Name: python-j2gen
|
||||
Version: 0.1.0
|
||||
Release: 0
|
||||
@@ -27,13 +26,15 @@ Group: Development/Languages/Python
|
||||
URL: https://github.com/toabctl/j2gen
|
||||
Source: https://files.pythonhosted.org/packages/source/j/j2gen/j2gen-%{version}.tar.gz
|
||||
BuildRequires: %{python_module pbr}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: alts
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: alts
|
||||
Requires: python-Jinja2
|
||||
Requires: python-PyYAML
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module Jinja2}
|
||||
@@ -51,26 +52,25 @@ Jinja2 template renderer with yaml input files
|
||||
%setup -q -n j2gen-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/j2gen
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pyunittest discover -v
|
||||
|
||||
%post
|
||||
%python_install_alternative j2gen
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative j2gen
|
||||
%pre
|
||||
# removing old update-alternatives entries
|
||||
%python_libalternatives_reset_alternative j2gen
|
||||
|
||||
%files %{python_files}
|
||||
%doc AUTHORS ChangeLog README.rst
|
||||
%license LICENSE
|
||||
%python_alternative %{_bindir}/j2gen
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/j2gen
|
||||
%{python_sitelib}/j2gen-%{version}*-info
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user