forked from pool/python-Cheetah3
Compare commits
7 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 67bba84a68 | |||
| 3d040d8267 | |||
| d48e5203c9 | |||
| 7947325dc1 | |||
| b8a39b9863 | |||
| c7374912b5 | |||
| 522227c8f4 |
@@ -1,8 +1,3 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 27 15:08:21 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to libalternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 14 05:48:43 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
|
||||
|
||||
%define modname cheetah3
|
||||
%bcond_without libalternatives
|
||||
Name: python-Cheetah3
|
||||
Version: 3.4.0
|
||||
Release: 0
|
||||
@@ -29,10 +28,8 @@ Source: https://github.com/CheetahTemplate3/cheetah3/archive/refs/tags/%
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: alts
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: alts
|
||||
Recommends: python-Markdown
|
||||
Suggests: python-Pygments
|
||||
Conflicts: python-Cheetah
|
||||
@@ -75,13 +72,15 @@ sed -Ei 's/(test6)/_\1/' Cheetah/Tests/SyntaxAndOutput.py
|
||||
%python_clone -a %{buildroot}%{_bindir}/cheetah
|
||||
%python_clone -a %{buildroot}%{_bindir}/cheetah-analyze
|
||||
%python_clone -a %{buildroot}%{_bindir}/cheetah-compile
|
||||
%python_group_libalternatives cheetah cheetah-analyze cheetah-compile
|
||||
%{python_expand rm -r %{buildroot}%{$python_sitearch}/Cheetah/Tests
|
||||
%fdupes %{buildroot}%{$python_sitearch}
|
||||
}
|
||||
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative cheetah
|
||||
%post
|
||||
%python_install_alternative cheetah cheetah-analyze cheetah-compile
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative cheetah
|
||||
|
||||
%check
|
||||
mkdir ~/bin
|
||||
|
||||
Reference in New Issue
Block a user