SHA256
1
0
forked from pool/python-j2gen

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
This commit is contained in:
Yuchen Lin 2020-05-26 15:49:17 +00:00 committed by Git OBS Bridge
commit 8a748df3b9
2 changed files with 16 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon May 25 10:59:31 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Mon Sep 30 08:26:37 UTC 2019 - Thomas Bechtold <tbechtold@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-j2gen
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -32,6 +32,8 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Jinja2
Requires: python-PyYAML
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module Jinja2}
@ -53,15 +55,22 @@ Jinja2 template renderer with yaml input files
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/j2gen
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec setup.py test
%post
%python_install_alternative j2gen
%postun
%python_uninstall_alternative j2gen
%files %{python_files}
%doc AUTHORS ChangeLog README.rst
%license LICENSE
%python3_only %{_bindir}/j2gen
%python_alternative %{_bindir}/j2gen
%{python_sitelib}/*
%changelog