SHA256
1
0
forked from pool/python-j2gen

7 Commits

Author SHA256 Message Date
2acb9c0c14 Accepting request 1284029 from devel:languages:python
- Convert to libalternatives

OBS-URL: https://build.opensuse.org/request/show/1284029
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-j2gen?expand=0&rev=6
2025-06-10 07:07:01 +00:00
5329754443 - Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-j2gen?expand=0&rev=11
2025-06-09 08:53:35 +00:00
4bb9c9531f Accepting request 1281308 from devel:languages:python
- Convert to pip-based build

OBS-URL: https://build.opensuse.org/request/show/1281308
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-j2gen?expand=0&rev=5
2025-05-30 12:39:41 +00:00
2bbe9c5445 - Convert to pip-based build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-j2gen?expand=0&rev=9
2025-05-30 08:36:19 +00:00
780f4a5b66 Accepting request 929837 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/929837
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-j2gen?expand=0&rev=4
2021-11-08 16:24:14 +00:00
7ce622b775 Accepting request 808783 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/808783
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-j2gen?expand=0&rev=3
2020-05-26 15:49:17 +00:00
4295e1d848 Accepting request 734019 from devel:languages:python
- update to 0.1.0:
* Error out when template variables are not defined

- Format with spec-cleaner
- Do not pull in devel python module as it is not needed

OBS-URL: https://build.opensuse.org/request/show/734019
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-j2gen?expand=0&rev=2
2019-09-30 14:01:53 +00:00
2 changed files with 23 additions and 13 deletions

View File

@@ -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 Wed Nov 3 08:08:50 UTC 2021 - pgajdos@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-j2gen # 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 # 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,8 +16,7 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without libalternatives
%define skip_python2 1
Name: python-j2gen Name: python-j2gen
Version: 0.1.0 Version: 0.1.0
Release: 0 Release: 0
@@ -27,13 +26,15 @@ Group: Development/Languages/Python
URL: https://github.com/toabctl/j2gen URL: https://github.com/toabctl/j2gen
Source: https://files.pythonhosted.org/packages/source/j/j2gen/j2gen-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/j/j2gen/j2gen-%{version}.tar.gz
BuildRequires: %{python_module pbr} BuildRequires: %{python_module pbr}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: alts
Requires: python-Jinja2 Requires: python-Jinja2
Requires: python-PyYAML Requires: python-PyYAML
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch BuildArch: noarch
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module Jinja2} BuildRequires: %{python_module Jinja2}
@@ -51,26 +52,25 @@ Jinja2 template renderer with yaml input files
%setup -q -n j2gen-%{version} %setup -q -n j2gen-%{version}
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_clone -a %{buildroot}%{_bindir}/j2gen %python_clone -a %{buildroot}%{_bindir}/j2gen
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
%pyunittest discover -v %pyunittest discover -v
%post %pre
%python_install_alternative j2gen # removing old update-alternatives entries
%python_libalternatives_reset_alternative j2gen
%postun
%python_uninstall_alternative j2gen
%files %{python_files} %files %{python_files}
%doc AUTHORS ChangeLog README.rst %doc AUTHORS ChangeLog README.rst
%license LICENSE %license LICENSE
%python_alternative %{_bindir}/j2gen %python_alternative %{_bindir}/j2gen
%{python_sitelib}/* %{python_sitelib}/j2gen
%{python_sitelib}/j2gen-%{version}*-info
%changelog %changelog